HI Gianluca, There is no primary colour in OpenGL. There is no primary colour in the OSG.
I've written all I can on this topic in my previous email, you just need to go and do your background reading now. Robert. On Tue, Nov 18, 2008 at 1:52 PM, Gianluca Natale <[EMAIL PROTECTED]> wrote: > …and if I get the primary color and the state of lighting, inside the > draw function of the drawable, these are the results: > primary color = what I set as the diffuse material props; > > LIGHTING is OFF. > > > > It seems a contradiction, since the primary color should be used > if the LIGHTING is disabled, and the material props only if > the LIGHTING is enabled. > Am I wrong? > > > > Thanks > > > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gianluca > Natale > Sent: martedì 18 novembre 2008 11.27 > To: Osg Users > Subject: [osg-users] material properties and primary color in OSG ver 1.3 > > > > Hi All. > I'm using an old version of OSG, ver 1.3. > I noticed a very strange behavior. > I set the material props (actually just the DIFFUSE component) > in the state set of a geode. > But, by mistake, I had also disabled lighting. > So, I would have expected that the object was drawn > using the default primary color of OpenGL, but it wasn't. > The object was drawn using as the primary color what I set > as the diffuse component of the material props. > How is it possible? > Obviously if I did it using pure OpenGL, when lighting is > disabled it always uses the primary color. > > Thanks, > Gianluca Natale > > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.175 / Virus Database: 270.9.4/1789 - Release Date: 11/14/2008 > 7:32 PM > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

