Hi Mark.

Am 25.09.2007 um 22:01 schrieb Mark Dubin:

>
>  From previous exchanges I think this may be possible. Can I embed a
> "movie texture" (such as a Quicktime mov file or an avi file or an
> mp3 file) using OpenSG 1.8 and Vr Juggler (2.0.3-1 OR 2.2.0)? If so,
> where can I look to find the details of doing so, or can someone
> quickly tell me how to proceed?
>


You can achieve that with the help of ffmpeg. Decode the video,  
convert it from YUV to RGB and put the data into a texture by using a  
dumy image and a texture chunk. We work a lot with video textures  
here (in fact I'm currently sitting in Düsseldorf on a trade fair  
with  4 interactive systems playing videos that way behind me ;) ). I  
wrote a wrapper for ffmpeg on basis of some tutorials (http:// 
www.dranger.com/ffmpeg/ffmpeg.html) and ffplay that can be used under  
LGPL (if you compile ffmpeg accordingly). It needs some cleanup, but  
if it's urgent, I can send it to you as it is. It makes also some use  
of SDL (EventHandling, Threading) and can't handle videos without  
sound so far, but you might get an idea how to use it.


> I tried the simple-minded approach of adding the following code to a
> VRML file in an appropriate place, and it did not work (of course):
>
> texture MovieTexture {
>      url "moviename.mpg"
>      }


That would be cool, but unfortunately, this won't work... You have to  
do it the hard way.

HTH,
Dominik
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to