c#/vb .net: video on 3d surfaces

Started by
4 comments, last by BillOB1 18 years, 9 months ago
hi, i am new to programming dx3d and .net (i am coming from vb6)! what i want to do is this: i would like to play videos on 3d surfaces like vmr9 does is this possible with c# or vb .net?? do i need to use the interop function to call the com version of dx or is it possible with the managed version too? where can i find examples? thx and greets natarius
Advertisement
Hi!

The AudioVideoPlayback namespace is what you need!
The Video class can raise an event giving you a texture to render with even!
Check it out! [grin]

There might even be a sample in the SDK...
I can tell you this in advance that the render loop must be completely in the OnTextureReady event. Otherwise it plays horrible video and audio. But a solution is available at the following link:

http://directshownet.sourceforge.net/

Check it out.

Greetz,

Cloudius
That is cool CLoudius!
thank you guys...i will have a look
Hi, actually I am using C++ and cannot get around the problem that the rendering must be done in that one fuction inside the custom allocator.I really do not want to change the game's achitecture.Is it possible to do so in C++?

I have read that writing a derived Video Renderer would actually work but I have not seen any examples that worked this out.Any suggestions or ideas?

This topic is closed to new replies.

Advertisement