Hi Robert,

Thank you very much for replying.

I will do some tests and post here if any questions.
Maia
 

robertosfield wrote:
> HI Maia,
> 
> A osg::Switch node would be appropriate for toggling between
> subgraphs, while an update callback would be appropriate for the time
> based changes in state, and an event callback would be appropriate for
> handling the events.
> 
> Robert.
> 
> On 6 July 2012 20:40, Maia Randria
> <> wrote:
> 
> > Hi,
> > 
> > I'd like to have some advice on the best way to do the following algorithm 
> > with OSG.
> > 
> > I have two lists of objects (a first list of images and a second list of 
> > texts).
> > 
> > My algorithm is:
> > - display an image from the first list for a fixed time duration (suppose t 
> > seconds)
> > - once t seconds is elapsed, display the first text of the second list and 
> > wait until the user clicks on the screen with a mouse
> > - once the mouse event is detected, show a second image for a fixed t 
> > seconds.
> > - after t seconds, display the second text of the second list and wait 
> > again until the user clicks on the screen with a mouse
> > etc...
> > 
> > I have looked at osg::Animation and osg::Sequence but I am not sure they 
> > are the way to go (in addition to GuiEventHandler).
> > 
> > 
> > Sorry if this is obvious but I am a beginner in OSG.
> > Best regards,
> > 
> > Thank you!
> > 
> > Cheers,
> > Maia
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=48736#48736
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


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





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

Reply via email to