Hello Michael,

On 02/10/2011 02:07 AM, Michael Raab wrote:
> MPM
> - ChunkMaterial_1
> -- MaterialChunk
> --- Lit = True
> --- ColorMaterial = GL_AMBIENT_AND_DIFFUSE
> --- BackColorMaterial = GL_AMBIENT_AND_DIFFUSE
> - ChunkMaterial_2
> -- MaterialChunk
> --- Diffuse (0.3;0.4;1.0)
> --- Lit = False
> --- ColorMaterial = GL_FALSE
> --- BackColorMaterial = GL_FALSE
> -- PolygonChunk
> --- CullFaces GL_NONE
> --- FrontMode GL_LINE
> --- BackMode GL_LINE
> -- LineChunk

i can reproduce that, but i'm afraid that's just the way OpenGL works:
you turn off lighting in the second material chunk, but material 
properties are only used for lighting calculation, so if you turn those 
off, color information comes from the current color (which changes per 
vertex since your geometry has a color property).

        Cheers,
                Carsten

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to