Hi Chris,
I create my Text in response to a keystroke, and add it to the scene.
The next keystroke removes and deletes it. Each time I create it, the
initial rendered text string does not change.
This is more of a workaround than an actual fix, but why are you
adding/removing/deleting the object in that case? Why not just add it
once, and then set its node mask to 0 when it should not be visible and
0xFFFFFFFF when it should be? Or add it under an osg::Switch and use
that when you need to control whether it's visible or not.
For that matter, even if the text string changed, I'd do it that way if
I needed a keypress to control visibility of the osgText::Text. No use
adding/removing things from the scene graph in that case, as the node
mask or osg::Switch will have the same result (rendering cost will be
virtually nil).
BTW I noticed there were some nvidia problems in the archives; I do have
an NVidia driver (my machine is a Toshiba Tecra M4, Geforge Go 6200
(three years old), driver date 3/14/2005, version 7.1.4.1 <http://7.1.4.1> )
You might want to update your video card driver, I don't know if 7.1.4.1
is accurate but we're now in the 170.xx range, and in particular
threading issues related to the graphics driver were very frequent in
older releases (because they were not often tested in multithreaded
contexts, since apps that took advantage of multithreading were less
widespread than they are now).
It's just a shot in the dark of course, but it might help.
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org