In my experience sceneView->setDefaults() is not intended to be called multiple times. Even setSceneData() may have some problem. So I keep a group node as scene root and call setSceneData() at the beginning. The later changing/reloading will effect only children of the root node by calling addChild and removeChildren. Also, after reloading I reset view matrix by reset trackball. Seems there is nothing more left worth to be reset.

Yanling

On 5/20/06, Andreas Goebel <[EMAIL PROTECTED]> wrote:
Hi,

I would like to have the possibility to "reset" the lighting of my
sceneview to the defaults.

But if I use sceneView->setDefaults() when a scene is already loadet, it
crashes. So I guess this is not the right way to use a sceneview...

How should I "reset" the sceneview?

Thanks,

Andreas

--
Andreas Goebel

Visit http://www.raumgeometrie.de to take a look at
Archimedes Geo3D, a program for dynamic geometry
in three dimensions!

_______________________________________________
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