I think you would want to put MatrixTransform on top of the pyramid node and update its matrix either thru updatecallback or outside your frame. Something like this
class UpdatePyramidNodeCallback : public NodeCallback { virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) { osg::MatrixTransform* mx = dynamic_cast<osg::MatrixTransform*>(node); //here you set up your matrix with your XYZ HPR mx->setMatrix(mx) } }; main(...) { ... osg::MatrixTransform* mx = new osg::MatrixTransform; mx->addChilc(pyramidNode); mx->setUpdateCallback( new UpdatePyramidNodeCallback ) -Nick On Fri, Mar 5, 2010 at 3:03 AM, John Galt <manu9ak...@gmail.com> wrote: > Hi, > > I want to move a pyramid based on a defined path (X,Y,Z) of its peak and > the Roll, Pitch, Yaw. > > I have the details of X, Y, Z, Roll, Pitch, Yaw coming from another c++ > code and is updated in real time. > > Does anyone have any suggestions as to how to go about moving it in OSG > without the obvious frame change algorithm? > > > Thank you! > > Cheers, > John > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=25220#25220 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org