[osg-users] Billboarding 3D models loaded from a file

Robert Osfield robert.osfield at gmail.com
Tue Mar 29 00:56:17 PDT 2016


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 <paul.leopard at gmail.com> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160329/ff0088c8/attachment-0002.htm>


More information about the osg-users mailing list