Hello all,  I have been working with OSG for a while with a little game demo
I've been creating.  I've run into a wierd bug that happens randomly.  With
this bug my entire scene loses all of its texture color and turns white!
Whenever I shoot a fireball a new osg::light/osg::lightsrc is created and
all is well again, so I am guessing this is an issue with me accidently
overwriting/deleting the global osg::light/osg::lightsrc (which is connected
to a transform on the controllable player).  Odd thing is, the global
light/lightsrc is maintained as a private variable by the manager class,
which doesn't terminate until Esc is pressed.  So I can't see how I am
accidently deleting this data.

Another thing that makes this bug wierd is that it occasionally takes one of
my objects along with it.  The object's instance is still there, it still
prints to the debug, but I cannot see it.

I have obviously deleted something somewhere that would cause this to
happen.  If it is the light, however, I thought the scene would turn black,
not white.  Is this an issue arising from deleting a light or is there
another possibility?  How do I turn on debugging in OSG to make the run time
tell me when things are getting deleted?  So far I can only figure out (in
Windows) how to turn the Notification level higher.

Another thing to note is that I am not using osg::viewer, I created my own
viewer using SDL and osgUtil::SceneView.

Thanks in advance for any thoughts.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to