Sign in to follow this  

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

This topic is 4528 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

This topic is 4528 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this