Yes, I believe so. I don't want any scene lights to impact it. I did the
same thing as I mentioned in my first message, but the text still
renders the same when I set it to OFF.
I've set most of the texts color value to (0.0,1.0,0.0,1.0) which I
thought would give me a 100% bright green.
Is applying that StateSet on the geode incorrect? Does it matter whether
or not I do it before or after I add the text objects as drawables to
the geode?
Thanks,
-Austin
Robert Osfield wrote:
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/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/