Hi Paul, The osg::AutoTransform enables billboard like functionality for whole subgraphs that it decorates.
Robert. On 28 March 2016 at 20:01, Paul Leopard <[email protected]> wrote: > Hi, > > I have a need to load 3D model files from disk (using > osg::readNodeFile(string) ), orient them, then preserve that orientation > regardless of the camera position/orientation. Essentially this is > billboarding a 3D model. > > osg::Billboard ( Derived from osg::Geode) has a method: > void addDrawable( osg::Drawable* pDrawable) > > If I can load a 3d model from disk, gain access to a drawable within that > Node that draws the model, make a deep copy of it, then I can use the above > method to satisfy my needs. > > 1) How would I gain access to the osg::Drawable associated with a 3D model > loaded with osg::readNodeFile(...)? > > 2) Can I make a deep copy of it then pass it to osg::Billboard? > > 3) Am I just being crazy? Is there a better way to do this? > > > > Thank you! > > Cheers, > Paul > > ------------------------ > things are more like they are now than they have ever been before > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=66643#66643 > > > > > > _______________________________________________ > 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

