[osg-users] newbie question (UNCLASSIFIED)

Konkle, Daniel T AMRDEC/Dynetics Daniel.Konkle at us.army.mil
Wed Mar 11 07:36:44 PDT 2009


Classification:  UNCLASSIFIED 
Caveats: NONE

thanks.  that seems to have been my problem.

> -----Original Message-----
> From: osg-users-bounces at lists.openscenegraph.org [mailto:osg-users-
> bounces at lists.openscenegraph.org] On Behalf Of Jean-Sébastien Guay
> Sent: Wednesday, March 11, 2009 9:31 AM
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] newbie question (UNCLASSIFIED)
> 
> Hello Daniel,
> 
> > 	    translate->addChild( rotate.get() );
> > 	    camera->addChild(translate.get());
> > 	    translate->addChild( triangle.get() );
> 
> You're adding the triangle to the translate, but the rotate is also a
> child of the translate, so they're siblings. The triangle should be
> under both the translate and rotate, so it should be a child of rotate.
> 
>   	    rotate->addChild( triangle.get() );
>   	    translate->addChild( rotate.get() );
>   	    camera->addChild(translate.get());
> 
> Hope this helps,
> 
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com
>                                 http://www.cm-labs.com/
>                          http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
Classification:  UNCLASSIFIED 
Caveats: NONE




More information about the osg-users mailing list