Hi Austin,

By self illuminated, do you mean to switch off OpenGL lighting so that
its rendered in its standard colour.  If so you need GL_LIGHTING, OFF.
I'm doing exactly this on a project I'm working on right now:

group->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);


Robert.

On 6/23/06, austincb <[EMAIL PROTECTED]> wrote:
Hello all,

New here (and with OSG). Working in a CAVE environment, and trying to
code a floating menu screen which can be toggled on and off by the user.
My current issue is getting the text to be self illuminated and not
impacted by lights in the scene. I've tried state setting on the geode
my text objects are underneath with this code:

osg::StateSet *geodeStateSet = menuGeode->getOrCreateStateSet();
menuGeode->setMode(GL_LIGHTING,
osg::StateAttribute::ON|osg::StateAttribute::PROTECTED);

I do this immediately after I create the geode in scene initialization.
Setting it to ON or OFF has no impact.

Thanks for any help!

-Austin
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to