Hi,

if you don't want to use callbacks you can split the viewer->run() into

!done and viewer->frame();

And then just update a PositionAttitudeTransform or MatrixTransform that sits above your node you want to move between frame calls.

jp

On 21/04/10 09:54, daniele argiolas wrote:
Hi,
in my program I've external inputs that change the position of my object. I do 
this with setUpdateCallback that call a function that returns 
osg::NodeCallback*, with osg::AnimationPath* and AnimationPathCallback I set 
new position and new angle.
Is there a way more convenient to do this?
I tried to do this with TrasformationMatrix ecc but for setUpdateCallback I 
need a NodeCallback* return.
Have you some ideas?

Thank you!

Cheers,
daniele

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27052#27052





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to