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 [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org