Hi Joël.

Joël Vedrenne schrieb:

I would like to play video with OpenSG. My goal is to play 2 videos with 2 PC and that these 2 videos will be synchronize.

In the first time I would like to play one video.

This should be no problem, although it will not work the way you planned...

First, I try to do a “video texturing” and I try the 10loading tutorial example for that. I use Maya to create my “wall” with texture on it and convert it into VRML format for 10loadging could read….

This will not work, OpenSG can't use videos in that way.

I tried it with an simple image and all works fine but when I use Maya to convert an animation into VRML, the result does not work with 10loading: probably, the video could not be read…

Do I use the correct manner to do that (read a video file with openGS) ?

No.

Is there another way to do it ?

Yes. I use video textures for quite a while now in my animation system - nevertheless, you will encounter some drawbacks.

The way I go is the following:

* Load your object.
* Apply a texturechunk to the geometry you want your video on (to simplify things a little bit, apply a dummy image that has the same resolution / bpp like your video). * Start an extra thread, decode the video to the memory of your dummy image and call imageContentChanged if a new frame is decoded. (I use the ffmpeg libraries (avcodec/avformat) here, but although they are fast and can decode nearly everything, the code and the docs are a complete mess... Uh, and don't dare to ask a question on their mailing list if you don't use the latest CVS version (although they break backwards compatibilty regularly...) *sigh*)

Ok, now the bad news:
* If you do it this way, all your video data goes via the network uncompressed. With 640x480x24bppx25fps you will have about 22MB/sec data. With two videos you double that which will lead already to some hangs because your network adapter / program / etc... will probably not reassemble the data fast enough to keep the 60 fps.

An alternative would be to write a VideoChunk, that does exactly the same, but localy on the renderServers, I started that (and saw a video, sometimes... ; ) ) but there were some ugly bugs (and other drawbacks for my app domain) so I didn't finished it. If I find some time I can have a look at it again / send it to the list for further refinement....

Is there somebody that use the VRML Maya exporter to do that ?

No.

Is there a magic option I forgot ?

Unfortunately, again, no....

Thanks in advance for all your response ?

Tchuss !

Joël.

HTH, yours,
Dominik

P.S.: Please don't use HTML-Mails in mailinglists...



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to