Re: [osg-users] newbie question (UNCLASSIFIED)

2009-03-11 Thread Konkle, Daniel T AMRDEC/Dynetics
1, 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( tr

Re: [osg-users] newbie question (UNCLASSIFIED)

2009-03-11 Thread Jean-Sébastien Guay
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 shou

[osg-users] newbie question (UNCLASSIFIED)

2009-03-11 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE I'm translating some opengl code to OpenSceneGraph. I've figured out how to most of the stuff I need except I'm having trouble getting the rotations and translations to play nice. My code example that I need to translate: glTranslatef(hud_aspect