Hi Paul, A couple more hints on pseudoloaders:
The .scale pseudoloader also supports a single-argument form (eg cow.osg.5.scale) for uniform scaling. The triple-argument form is only necessary if non-uniform scaling is desired. The .rot and .trans PLs support enclosing their args in parens, useful for non-integer values with contain decimal points that would confuse the tokenizer when looking for dot-delimited file extensions. There are a wide range of other utility PLs at http://osgtoy.sourceforge.net/ eg the globe loader which maps an image on a sphere: earth.jpg.10.globe The comments inside the (usually very simple) pseudoloader source code is pretty good at documenting the arguments. See also http://www.openscenegraph.org/osgwiki/pmwiki.php/KnowledgeBase/PseudoLoa der Cheers -- mew > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Paul Martz > Sent: Wednesday, December 19, 2007 12:47 PM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] DepthPartitionNode,was: Really Big Scenes and > clipping > ... > One thing you should know about are the "pseudoloaders". These are > plugins > that use another plugin under the hood to load the model, then parent > the > loaded scene graph to an additional decorator node to achieve some > effect. > For example, you can do the following: > readNodeFile( "foo.3ds.4,4,4.scale" ); > > This invokes the "scale" pseudoloader. It parses the file name to > determine > what file to load and how to scale the loaded model. In this case, it > uses > the 3ds plugin under the hood to load the model, then parents it to a > MatrixTransform containing a uniform scale transformation of 4 units in > x, > y, and z. > > Note that you could just as easily do this yourself by loading the 3ds > file > as usual without the pseudoloader, and then creating your own > MatrixTransform to scale the model. In your case, you'd have to write > code > either way. Where the pseudoloaders really come in handy is as command > line > arguments to osgviewer. For example, compare these two commands: > osgviewer cow.osg axes.osg > osgviewer cow.osg.10,0,0.trans axes.osg > > Hope that helps. > -Paul > > _______________________________________________ > 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