Thank you Jean,
I'm still new to all this. All I found on emissive color is the following:
glMaterial Default Parameters
GL_EMISSION (0.0, 0.0, 0.0, 1.0) emissive color of material
Is this what you had in mind:
osg::StateSet* state = geode->getOrCreateStateSet();
state ->setMode(GL_COLOR_MATERIAL,osg::StateAttribute::ON);
osg::ref_ptr<osg::Material> mat = new osg::Material;
mat->setColorMode(osg::Material::EMISSION);
state->setAttribute(mat.get()
Thanks again
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien
Guay
Sent: Monday, September 24, 2007 11:52 AM
To: [email protected]
Subject: Re: [osg-users] PrimitiveSet lighting issues
Hello Nelson,
> I'm drawing osg::PrimitiveSet::LINES deep inside my node
> architecture. The lines come up the right color, but depending on the
> camera position, the line tends to turn black. I would like the line
> color to stay constant regardless of the camera position.
If you want a constant color and no shading at all, you can just use
the emissive color in the object's material. It is independent of view
and lighting conditions.
Good luck,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
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