Re: [cgkit-user] video as a texture
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2010-11-14 17:26:54
|
On 14.11.10 00:39, Samuel Potter wrote: > I was wondering if anyone had any ideas as to how to use a video as a > texture? Or, better, be able to "animate" what image file I'm using > as a source. You can set a new image name whenever you want to change a texture, but this will reload the file which may be too slow for smooth playback if the files are large. Streaming a video is not directly supported. You would have to decode the video yourself and replace the image data on the GLTexture object (using the "image" property). There are some initial ffmpeg wrappers in the git repository which you could use for decoding a video file. Cheers, - Matthias - |