Re: [osg-users] How to get Sequence node to contorl animaton

2012-09-07 Thread Ulrich Hertlein
Hi Koduri,

On 6/09/12 23:58, Koduri Lakshmi wrote:
 Hi,
 
 I have an OSG file contains a sequence of objects. I read this OSG file and 
 assigned to a transformation matrix. 
 
 Now I want to get back the sequence to the OSG::Sequence object from the 
 transformation matrix to control animation.
 
 How can I get sequence and control the animaton?
 
 Can you please help me what to do?

I'm not quite sure what you're trying to do, but I can explain a bit what 
osg::Sequence
does.  osg::Sequence acts like a switch node, that automatically (based on 
simulation
time) enables its children in sequence.

So what you have to do is to create a Sequence node and add the children that 
you want to
switch between to it.

Maybe if you could post a code snippet it would help people (me included) to 
figure out
what you're trying to do.

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


[osg-users] How to get Sequence node to contorl animaton

2012-09-06 Thread Koduri Lakshmi
Hi,

I have an OSG file contains a sequence of objects. I read this OSG file and 
assigned to a transformation matrix. 

Now I want to get back the sequence to the OSG::Sequence object from the 
transformation matrix to control animation.

How can I get sequence and control the animaton?

Can you please help me what to do?
... 

Thank you!

Cheers,
Koduri

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




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