David, After looking into Paul's suggestion, I believe that (for static terrain) if you add your terrain to your scaling node, and then use Paul's suggestion on the scaling node, you may get what you're looking for. The Optimizer is much simpler than my original suggestion, although you may still want to look at those other classes for future work.
Again, if your terrain has levels of detail, I would recommend just using the MatrixTransform approach. I hope this helps... D.J. On Thu, Feb 25, 2010 at 5:05 PM, Paul Martz <[email protected]> wrote: > 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 > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

