Hello, David. If your terrain is static, I would recommend an osg::NodeVisitor used on your terrain in combination with osgUtil::TransformAttributeFunctor used on the drawables of your terrain. As far as I know, this is a custom solution, so you'll have to look into both of these classes to see how to apply them correctly.
If your terrain has levels of detail, I would recommend using the osg::MatrixTransform node, or your levels of detail may not get the right scaling applied. I hope this helps. D.J. On Thu, Feb 25, 2010 at 4:58 PM, David Cofer <dco...@mindcreators.com> 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? > > Thanks for you help, > David > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=24888#24888 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org