Re: [osg-users] Node visitor pattern

2013-07-30 Thread michael kapelko
Hi. I finally started to implement the described Timer functionality and was faced with almost the same question: how do I subscribe to osgViewer each frame update? Should I add my class to osgViewer::ViewerBase::setUpdateVisitor? 2012/6/22 Robert Osfield robert.osfi...@gmail.com Hi Michael,

Re: [osg-users] Node visitor pattern

2013-07-30 Thread Robert Osfield
Hi Micahel, On 31 July 2013 05:17, michael kapelko korn...@gmail.com wrote: Hi. I finally started to implement the described Timer functionality and was faced with almost the same question: how do I subscribe to osgViewer each frame update? Should I add my class to

Re: [osg-users] Node visitor pattern

2012-06-22 Thread Robert Osfield
Hi Michael, The way the OSG applications normally manage updates to the scene graph is to either use a NodeCallback attached as UpdateCallback on nodes or for the application to run the updates manually during the frame loop - just by adding calls in between the viewer.advance() and the

Re: [osg-users] Node visitor pattern

2012-06-22 Thread michael kapelko
Am I understanding correctly that Object::STATIC is a flag that says something won't be traversed/updated each frame (based on some internal decision), and Object::DYNAMIC says: traverse/update it each frame? ___ osg-users mailing list

Re: [osg-users] Node visitor pattern

2012-06-22 Thread Robert Osfield
Hi Michael, On 22 June 2012 10:30, michael kapelko korn...@gmail.com wrote: Am I understanding correctly that Object::STATIC is a flag that says something won't be traversed/updated each frame (based on some internal decision), and Object::DYNAMIC says: traverse/update it each frame?

[osg-users] Node visitor pattern

2012-06-21 Thread michael kapelko
Hi. I'm going to use OSG as one of my game engine components. Currently I have Timer singleton. Classes that wish to be notified regularly should inherit from TimerListener and add themselves to the queue like Timer-addListener(this, 30); where 30 is 30 milliseconds, i.e., they will be notified