Jump to content
  • Advertisement
Sign in to follow this  
thmfrnk

OpenGL DX9 Getting a Video on Texture

This topic is 1835 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

Hey,

 

so I'm looking for a way to render multiple video files (at the same time) on textures in realtime. In my old OpenGL applications I did in delphi I was using an AVI API to read the Framebuffer directly to the TextureMemory. This was ok, but with a lot of codec problems.. So for now SlimDX and DirectX 9 in .NET I'm looking for a better and cleaner way. I have found a lot about DirectShow.NET but its not really clear to me how to use it with SlimDX.  Does anybody have a tutorial or Demo shows me how to use it? 

 

Thx,

 

Thomas

Share this post


Link to post
Share on other sites
Advertisement
I'd recommend you check out the Texture3D9 DirectShow Sample. You could write a C++/CLI dll to wrap the C++ code with a .NET interface. From that you can just 'new' it like a regular object.

Share this post


Link to post
Share on other sites

I have downloaded the Platform SDK for win7 but cannot find this sample.. Or is there maybe an easier solution as with DirectShow?

Share this post


Link to post
Share on other sites

Eww, I don't recommend DirectShow, I've had a magnitude of problems errupt with that when using it with DirectX 9.

Share this post


Link to post
Share on other sites

If you want a fully hardware accelerated video solution you will need to look at writing a custom EVR presenter which will provide the rendered video to you as an off-screen texture.

 

EVR presenters can be used with both the DirectShow and Media Foundation frameworks.

 

links:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb530107%28v=vs.85%29.aspx

http://msdn.microsoft.com/en-us/library/windows/desktop/bb970434%28v=vs.85%29.aspx

 

You can also have a look at MediaKit which probably does alot of what you need to be doing:

http://wpfmediakit.codeplex.com/

Edited by Kjell Andersson

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!