David Cofer wrote:
I am new to OSG, so perhaps this is simple and I do not understand how something is working. I want to scale a terrain once immediately after it is loaded, but before it is added to the scenegraph. I know I can do this by adding it to a matrixtransform node that is scaled, but that seems inefficient. It seems like it would have have to mess with the scaling every time the scenegraph is processed instead of just having to scale things once when it is loaded.
Is there a way to apply a transform once in this manner? Am I misunderstanding
how the scenegraph is processed and why I believe this would be more efficient?
You could run the osgUtil::Optimizer with the FLATTEN_STATIC_TRANSFORMS
visitor.
-Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org