Re: [osg-users] Problem with osgmovie

2010-01-08 Thread Robert Osfield
Hi Shiina,

On Fri, Jan 8, 2010 at 1:37 AM, Shiina Ringo osgfo...@tevs.eu wrote:
 Right now I just simply control the movie by setting the time limit, when 
 time's up and I just quit this movie.

Good to hear you've found a solution, not ideal of course as it
requires hardwiring of the app to the movies.

I has occurred to me that you could try polling the StreamStatus
ImageStream::getStatus() although just reviewing the code it looks
like we'll need to make sure the subclasses of ImageStream set it when
the movies finish.  Adding one to two new ENUM's to StreamStatus would
appropriate as well.

As a general note, don't look at the OSG code base as static and
something that you needn't ammend yourselves, if there is feature that
doesn't work for you or is not implemented in way that helps you, or
is just missing then just coding a solution and posting it to
osg-submissions can both help yourself achieve your own goals as well
as move the OSG forward.  This is how the OSG project has moved
forward so efficiently over the years, users with the itch scratch
it ;-)

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


Re: [osg-users] Problem with osgmovie

2010-01-07 Thread Robert Osfield
Hi Shinna,

Currently there aren't any events mechanism in
osg::Image/osg::ImageStream for tells apps that a movie has completed.
 To achieve this we'll need to add an event/callback mechanism into
osg::ImageStream to pass back details of a movie completing, and then
extend the movie reading plugins to call this.  I'm open to
suggestions for API/implementations.

Robert.

On Thu, Jan 7, 2010 at 4:48 AM, Shiina Ringo osgfo...@tevs.eu wrote:
 Hi,

 Recently I just added the osgmovie in my object , to play as a media 
 player. But here I have a question , that is , is there any method to detect 
 if the movie has been over , and then I could switch to other scene.

 Any advice would be appreciated.


 Thank you very much!

 Cheers,
 Shiina

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





 ___
 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] Problem with osgmovie

2010-01-07 Thread Shiina Ringo
Hi,Robert


Thanks for your advice.

Right now I just simply control the movie by setting the time limit, when 
time's up and I just quit this movie.

Cheers,
Shiina

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





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


[osg-users] Problem with osgmovie

2010-01-06 Thread Shiina Ringo
Hi,

Recently I just added the osgmovie in my object , to play as a media player. 
But here I have a question , that is , is there any method to detect if the 
movie has been over , and then I could switch to other scene.

Any advice would be appreciated.


Thank you very much!

Cheers,
Shiina

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





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