[osg-users] Billboarding 3D models loaded from a file
Paul Leopard
paul.leopard at gmail.com
Mon Mar 28 12:01:18 PDT 2016
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
More information about the osg-users
mailing list