Hi Nick,

Great. Yeas, that is what I was thinking as well. the sun direction set dirties the scene so the init is called over and over again. I am not into the details of osgscene too much, but for me it looks like an overhead to recreate just about everything on sun position change.

init() should free things cleanly though, if everything is in ref_ptrs and is removed from the scene correctly. And the sun position should not be set each frame anyways, only if needed...

I'll check it out tomorrow.

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to