There is a problem with the osg Optimizer.  I generally don't run the Optimizer on scenes because I want to preserve the node construction, but it is used by default in osgviewer and osgconv.  I discovered this problem when trying to view a model in osgviewer.

A model that exhibits the problem can be found at http://thinksplat.com/cubetest-cleanup.osg  You can ignore the textures.  If you view this with osgviewer, you'll see a cube, an outline of a cube, and another cube 7 times higher than the outline.  The correct viewing of this file should be to have the cube that is way up in the air be within the bounds of the wireframe cube.

If you modify osgviewer and comment out the optimize step, it looks like it is supposed to look.  I do not have a fix for the Optimizer, but I can give some suggestions.  The group that is offset has 7 children, and those children are offset by a factor of 7.  It looks like the problem could be in Optimizer::*::removeTransforms methods.

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

Reply via email to