Robert,

Well spotted, I added a ClusterCullingCallback to the text so the it disappears when it goes round the other side of the earth. Without this the example looks really odd.

Ok, with the ClusterCullingCallback turned off everything looks as I expected it to.

In my own code I have discovered that everything works fine if I use getOrCreateStateSet on the Text object to turn off depth test. If I create my own state set with depth test turned off and apply that state set to my Text, it doesn't work. Even if I first apply my own state set to the Text object and then use getOrCreateStateSet it doesn't work. So it seems like I'm replacing an existing state set with one that doesn't do the job properly. Is it generally a bad idea to replace the state set directly on an osgText::Text? In your example your state set is on the group above.

Actually I'm using a class of my own, inheriting from osgText::Text. If I use osgText::Text directly it seems to work. So it's probably something fishy with this inheritance, even if my own class is very simplistic, only overriding the constructor and copy-constructor, both calling osgText::Text(). Anyway, I can always use the getOrCreateStateSet approach, even if it seems unnecessary. But I do wonder why this is, seems too basic to be a bug somewhere in osg...

You cannot see what is not there?  Get some sleep!! ;-)

Yeah, sounds serious, doesn't it? :-) Off to get some shut-eye right now...

/Andreas

--
________________________________________________________________________
Andreas Ekstrand
Remograph
Rekrytgatan 10
SE-582 14 Linköping
SWEDEN
Website: http://www.remograph.com
E-mail: [EMAIL PROTECTED]

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

Reply via email to