Well, some of you may have seen me ask a few times in the past what the
best way was to "grab" every frame OSG renders prior to it calling
SwapBuffers or the equivalent so I could grab that frame, encode it into
YUV, and send it to some video library like libavcodec or theora.

Well, since no one ever responded (!!!), I figured I'd set out and try
to discover an existing solution. :) (My suspicion was that the best way
to do this was to render to an image instead of the default color
buffer, but I never got around to actually trying it).

I found a project called Yukon which I have, since finding, joined in
and aided with development.

http://www.neopsis.com/projects/yukon

You can find some sample videos I made w/ Yukon in Linux using Cal3D and
OSG that I made for the Cal3D project here:

http://home.gna.org/cal3d

Yukon (and the backend library Seom) work by temporarily intercepting
calls to glXSwapBuffers and just before invoking the REAL function, copy
the color buffer and send it off for parsing (either into a local file
or over the network). In this way it is very generic, and works with
almost any OpenGL application. It's not perfect, however, and I've seen
a few crashes on my own machine which I'm trying to track down.

I know I'm not the only person who wants to do this in Linux, as Yukon
has been picking up speed lately and a lot of different people are
popping into IRC with various bug reports or feature requests.

Anyway, I just wanted to give a quick heads up and get any opinions
anyone might have. :)

P.S. There's a new site design for Cal3D we just pushed about an hour
ago. Thanks to DanLabG for his help... and sorry it took so long for us
to get it up! :)

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to