Hi Vincent,

To make a little update : I've made my own nodevisitor to clone the shared stateset, and it work well and fast. Be carefull : the osgUtil::optimizer share duplicated node/stateset by default...

The Optimizer will only share state sets which are not marked DYNAMIC.

We had this problem with the osgmanipulator example a few months back, where clicking on a single manipulator would turn all the manipulators yellow because the Optimizer had combined all their state sets so they all pointed to the same one. Setting the data variance to DYNAMIC fixed it.

So perhaps instead of cloning all the state sets, a better solution in the long run would be setting the state sets which you don't want shared to DYNAMIC data variance. Then the Optimizer can do its work and the result will still be good, but with some state sets shared where they can be.

Hope this helps,

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

Reply via email to