How can I rotate and osg::ImageSequence???
I tried with this UpdateCallback:
>
> virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)
> {
> osg::MatrixTransform* mtLeft =
> dynamic_cast<osg::MatrixTransform*>( node );
> osg::Matrix mR;
> mR.makeRotate( _angle, osg::Vec3( 0., 1., 0. ) );
> //mtLeft->setMatrix( mR * mT );
> mtLeft->setMatrix(mR);
> // Increment the angle for the next from.
>
> if (_bGiro)
> _angle += 0.005;
> else
> _angle -= 0.005;
>
> if ( (_angle > 0.2) || (_angle < -0.2) )
> _bGiro = !_bGiro;
> }
>
It works with normal textures. But, with osg::ImageSequence it doesn't work.
Why? How can I do it?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59805#59805
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org