Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Sebastian Messerschmidt

Sorry, mixed it up with DOFTransform.
Indeed the osg::Sequence is the appropriate class.

Cheers
Sebastian

Hi Sebastian

osgSim::Animation doesn't appear to be in 3.4.0. Do you mean 
osgAnimation::Animation?

Cheers,
Tony

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





___
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


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Voerman, L.
Hi Tony,

small note: for what you're doing it might be usefull to take a look
at OpenSceneGraph\src\osgPlugins\pfb\ConvertFromPerformer.cpp
it has a function to convert pfSequence to osg::Sequence
(called ConvertFromPerformer::visitSequence) - seems to me osg::Sequence is
a good match.
Regards, Laurens.

On Thu, Aug 27, 2015 at 1:42 PM, Tony Vasile  wrote:

> Hi Sebastian
>
> osgSim::Animation doesn't appear to be in 3.4.0. Do you mean
> osgAnimation::Animation?
>
> Cheers,
> Tony
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64921#64921
>
>
>
>
>
> ___
> 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


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Tony Vasile
Hi Sebastian

osgSim::Animation doesn't appear to be in 3.4.0. Do you mean 
osgAnimation::Animation?

Cheers,
Tony

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Sebastian Messerschmidt

Hi Tony
Maybe osgSim::Animation is what you are after. I think its design 
originates from the OpenFlight-flipbook animations, so may a look at the 
openFlight importer is worth a shot.


Cheers
Sebastian

Once again Robert to the rescue. Thanks for that. It will do for the first part 
of this port but in the future we may need to do something different. The 
timing for the sequence is in the comment field for the node in the OpenFlight 
file.

Cheers,
Tony

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





___
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


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Tony Vasile
Once again Robert to the rescue. Thanks for that. It will do for the first part 
of this port but in the future we may need to do something different. The 
timing for the sequence is in the comment field for the node in the OpenFlight 
file.

Cheers,
Tony

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Tony Vasile
Once again Robert to the rescue. Thanks for that. It will do for the first part 
of this port but in the future we may need to do something different. The 
timing for the sequence is in the comment field for the node in the OpenFlight 
file.

Cheers,
Tony

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Robert Osfield
On 27 August 2015 at 09:51, Tony Vasile  wrote:

> We are in the middle of porting some Performer code and I have across some
> code which uses pfSequence to do some simple animation. Is there an
> equivalent class in OpenSceneGraph?
>

I don't recall the specifics of pfSequence (it's been 16 years since I
used  Performer) but perhaps osg::Sequence wlll fit the bill.

If this doesn't map well enough then a subclassing from osg::Group or
osg::Switch, or using a osg::NodeCallback on osg::Group to override the
traversal would do the trick.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org