Hi Austin,
When you switch off OpenGL lighting there isn't an actual computed
illumination, the colour of the object (including text) comes entirely
from the current colour assigned by glColor or via glColorArray. This
means that the colour set by an osg::Material will have no effect
since it only affects the lighting model that OpenGL uses when
lighting is on.
If you want to set the colour simple set the colour directly on the Text object.
Robert.
On 7/11/06, austincb <[EMAIL PROTECTED]> wrote:
Hi,
I had the question several weeks ago about self illuminated text. I
took a break from it and am now returning to it for a while. Following
the suggestions I got, I placed all the text objects underneath a
Geonode, and turned GL Lighting off for it, which should have carried
down to the text objects but doesn't seem to be working (I don't *think*
I'm overriding it anywhere else). Is it possible to assign a material to
that Geonode, and only set an ambient level to it? The text objects
below have specific colors and I don't want them all to have just one
color (the one of the geonode). 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/