I had a brief look into this recently, and looked into the use of the OSG
Xine plugin functionality for this.
It appears Xine uses some timing control to keep video playback speed
constant, which also seemed to work fine from slow- or fast-running OSG apps
with integrated video(s) (It appears to skip or repeat frames, respectively)
Although the plugin doesn't directly make speed control available, you can
extend it by sending commands to xine such as:
xine_set_param (_stream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_2);
for finer control, according to source code documentation from xine, you can
use more precise speed parameters:
XINE_PARAM_SPEED / 4 <-> XINE_PARAM_FINE_SPEED / 1000000
Probably you can tune this to achieve 25fps from within OSG, but I have no
experience up to what accuracy this is.
Hope this helps,
Gerwin

On Mon, Jun 23, 2008 at 2:52 PM, Art Tevs <[EMAIL PROTECTED]> wrote:

> I think there is no such node kit, because this is actually very simple
> thing to do.
>
> First take a look into the osgViewer::Viewer class, it provides you with
> some methods to setup your own time. Hence you just set on every new frame a
> new time, which is based on your desired fps.
>
> Second after each frame you render the content of your main camera to the
> texture. You can either take a look into the osgscreencapture example or use
> osgPPU for this task.
>
>
> Best regards,
> Art
>
>
>
>      __________________________________________________________
> Gesendet von Yahoo! Mail.
> Dem pfiffigeren Posteingang.
> http://de.overview.mail.yahoo.com
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to