Yes, this is because osgText sets its own GL states bypassing OSG state machine.
You need to call osgText::setColor() without using any osg::Material.

Igor.


[EMAIL PROTECTED] wrote:

A new question from me, regarding the osgText::Text this time.

I have a set of nodes in this structure:

osg::Group
 +--- osg::StateSet
 |       +--- osg::Material
 |
+--- osg::Geode
 |      +--- <Some Drawable>
+--- osg::Geode
 |      +--- <Some Drawable>

I want to change the material of all these nodes by changing the material
on the stateset attached to the top-level group node for optimalization of
the scenegraph/renderingstate swithces. All the Geode children are of the
same "type" and should all have the same material.

This works very fine in the "normal cases", but when I add an osgText::Text
node in the drawable above, it is not affected by the parent material
state?

So the question is, do I really have to set the color on each of the
individual Text nodes in my tree??


Regards Werner Lindgård.


_______________________________________________
Werner Lindgård, Programmerer
Telephone   +47 67 81 70 00
Direct line     +47 67 81 70 68
[EMAIL PROTECTED]

ViaNova Systems AS
Leif Tronstads Plass 4, P.O.Box 434
N-1302 Sandvika, Norway
________________________________________________

http://www.vianova.no
http://www.novapoint.com

________________________________________________

_______________________________________________
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