31 Jul 2012 22:10
animation on HUD geomtries
Hi,
I was wondering if somebody made animation on HUD.
basically, I am modifying osgpick example trying to animate the 5 geometries rendered as HUD. I am using
PositionAttitudeTransform, but all I got is the static geometries. Is it impossible to animate 2D nodes
rendered as HUD, please hint me if I am missing something?
Here is the code
osg::PositionAttitudeTransform *pat;
/* update function*/
void update(float dt) {
pat->setPosition(osg::Vec3(dt, dt, 0));
}
/* main function */
int main()
{
....
osg::ref_ptr<osgText::Text> updateText = new osgText::Text;
// add the HUD subgraph.
osg::ref_ptr<osg::Node> hudCam = createHUD(updateText.get());
(Continue reading)
RSS Feed