[osg-users] newbie question (UNCLASSIFIED)

Jean-Sébastien Guay jean-sebastien.guay at cm-labs.com
Wed Mar 11 07:30:50 PDT 2009


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/



More information about the osg-users mailing list