Jump to content
  • Advertisement
Sign in to follow this  
natarius

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

This topic is 4748 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
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...

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
Guest Anonymous Poster
thank you guys...i will have a look

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!