Re: [info-performer] how to play a movie file in Performer ?

Date view Thread view Subject view Author view

From: Goncalo Nuno Moutinho de Carvalho (c3099023++at++tees.ac.uk)
Date: 11/22/2003 03:15:20


pfHey,

Yes, it is possible. There are plenty of ways of doing it.

One way is:

1. You can read all your frames into memory.

2. Setup your objects and specify a texture for each containing one
frame data.

3. Put them all in a pfSequence object.

Another way is:

1. mmap your video file.

2. setup a texture for your object.

3. make sure your texture data is taken from a pfFlux object.

4. copy each frame data to the pfFlux and subload the texture in a draw
callback. Your texture format needs to be configured with proper tokens.
Check the man pages for pfTexture and look for subload.

For reading video files:

On IRIX I've used dmSDK for this.
On Linux you can xine-lib.
On Win32 I've used DShow. In this case I was streaming a web camera to a
Onyx using the second approach above.

I haven't tried OpenML yet (shame on me!).

Cheers,

Goncalo

> Hi to all,
> I need to play a movie file (whichever format)
> in OpenGL Performer on a 3D Object (for example
> a plane); it's possible ? Which classes I must use ?
> Where I can find the right documentation ?
>
>

-- 
Goncalo Nuno M. de Carvalho            http://www.cryogenicgraphics.com
Web3D Shaders Co-Chair   http://www.web3d.org/WorkingGroups/x3d-shaders/


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Nov 22 2003 - 03:56:24 PST