Hi Andres,

On 2/15/07, Anders Backman <[EMAIL PROTECTED]> wrote:
Well then it is optimized away during the load, and not in the optimizer...
Because the call to osgDB::readNodeFile() returns a scene with the node (the
pointer adress is the same, with the same name, same type etc, but with no
description attached).

I would expect the optimizer to remove any STATIC transforms etc. after it
has actually traversed the scene, not before?

Or is the Optimizer incorporated into the loader nowadays?

I have just done an osgconv on your file, and the descriptions remain
in place when the Optimizer is switch off, but are optimized away
along with the static MatrixTransform they are attached too.

Obviously the Optimizer isn't checking for presence of descriptions
when deciding whether it can optimizer away a node.  It does check for
a number of parameters such as callbaks, so adding a test for
descriptions should be easy.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to