Hi Andy,

On Fri, Aug 1, 2008 at 10:04 AM, Preece, Andy (GE EntSol,  Intelligent
Platforms) <[EMAIL PROTECTED]> wrote:
> Hi All,
>
>
>
> I have found a possible bug in osg::Sequence. Can anyone confirm this and/or
> let me know if it is fixed in a newer release than 2.4?

Look at the svn log via:

cd OpenSceneGraph/src/osg
svn log Sequence.cpp

I last change to Seequence.cpp was:

r7765 | robert | 2008-01-04 15:33:21 +0000 (Fri, 04 Jan 2008) | 2 lines

>From Glenn Waldron, "I found that
osg::Sequence::setDuration(speed,reps) was not changing the animation
speed factor as expected. The one-line fix (line 312) is attached"


Which is before the 2.4 release, so it looks like the problem is
likely to still exist.

> To reproduce the bug:
>
> Create a template osg::Sequence node (and underlying geometry) but do not
> attach the node to the current active scenegraph.
> At some point during the rendering loop (perhaps on a keystroke) clone the
> sequence node (I use the call:
>
>        dynamic_cast<osg::Node*>(templateNode -> clone( osg::CopyOp(
> (osg::CopyOp::CopyFlags)osg::CopyOp::DEEP_COPY_NODES ) ) )
>
> Set the cloned sequence node duration to a value that makes the animation
> run slower (i.e. 2.0).
> Start the cloned sequence (using setMode()).
> Repeat steps 2 – 4 and observe that the cloned sequences do not run slow but
> run as fast, appearing to ignore the duration that has been set on them.
>
>
>
> Looking at the 'good documentation' (2.4 source code), I see that _start is
> being set to _now (osg::Sequence::setMode(), line 192). Should this not
> _start not be set to -1.0?
>
>
>
> PS: It is also interesting to note that when loading OpenFlight file with
> the frameTime set to 0.0, setting duration will have no effect. Perhaps the
> OpenFlight loader should provide a very small default frameTime value if the
> incoming value from the OpenFlight file is 0.0.
>
>
>
> PS2: It also looks like the _nrepRemain value is not being reset when
> setMode( START ) is called. To reset the value you must call setDuration
> again.

I have lots of catching up to do w.r.t mail and submissions, so it'd
be if others can dive in a have a look at this issue.

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

Reply via email to