Hi all,

I just noticed something that made me laugh. It seems like the osgUtil::Optimizer is very effective in combining similar statesets...

If you start the osgmanipulator example with no arguments, it creates a default scene with a bunch of objects with manipulators on them. If you then press Tab and start using the manipulators, you'll notice that when you click on anything that's red (an X axis translation arrow, or the red rotation circle, etc.), *all* the red manipulator "handles" light up! (turn yellow) It seems that the optimizer has merged all red materials into a single material referenced by all objects. Same for the green and blue materials.

Setting OSG_OPTIMIZER=OFF solves the issue. Perhaps the optimizer should be run on the loaded objects but not the manipulators? Or perhaps it should just not be used in that example?

Anyways, as I said, I just found it funny.

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