Re: [osg-users] osg sequence timing

2008-08-27 Thread Robert Osfield
HI Max, If you have got things working could you post the changed file to osg-submissions, and if possible include an OpenFlight file and test problem that reproduces the problem before so that we can reproduce then confirm the fix. I very concerned that you fix will fix one type of usage and bre

Re: [osg-users] osg sequence timing

2008-08-26 Thread Max Bandazian
Hi, I'm not sure if this should go on osg-submissions instead, or if it's even a submission at all (deletion?), but simply removing line 192 (_start = _now) fixes the problem. The bug is that the openflight loader sets the sequence's mode to START before it's in the scene graph, so the _start tim

Re: [osg-users] osg sequence timing

2008-08-14 Thread Robert Osfield
Hi Max, My guess is that your Viewer's SimulationTime is up and running by the time the new model is loaded, rather than starting off at 0.0 which is causing the problems. The actual implementation details of osg::Sequence is something that community members have working on over the years, rather

Re: [osg-users] osg sequence timing

2008-08-14 Thread Max Bandazian
Thanks for the responses. I'm not sure what "stopping the frame loop refers to", since something like while(!viewer->done()) { if (viewer->getFrameStamp()->getFrameNumber() == 500) { rootNode->addChild( osgDB::readNodeFile("some_animation.flt")); } viewer->frame(); }

Re: [osg-users] osg sequence timing

2008-08-12 Thread Robert Osfield
Hi Max, Stopping the frame loop and restarting it without explictly adjusting the simulation time to account for your frameloop stop is something that I'd expect to cause problems - I also can't see how the OSG could automatically catch this particular usage model. Robert. On Thu, Aug 7, 2008 at

Re: [osg-users] osg sequence timing

2008-08-12 Thread Robert Osfield
Hi Max, Stopping the frame loop and restarting it without explictly adjusting the simulation time to account for your frameloop stop is something that I'd expect to cause problems - I also can't see how the OSG could automatically catch this particular usage model. Robert. On Thu, Aug 7, 2008 at

Re: [osg-users] osg sequence timing

2008-08-08 Thread Preece, Andy (GE EntSol, Intelligent Platforms)
Andy From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max Bandazian Sent: 07 August 2008 18:26 To: osg-users@lists.openscenegraph.org Subject: [osg-users] osg sequence timing Hi, I am experiencing some buggy behavior relating to loaded openflight files conta

[osg-users] osg sequence timing

2008-08-07 Thread Max Bandazian
Hi, I am experiencing some buggy behavior relating to loaded openflight files containing sequences, and I would appreciate any suggestions. When such a file is loaded after the viewer has been running for a bit, the animation runs at the wrong speed. Here's some sample code that illustrates the pro