Rendering Video with VMR9 on a Windows Form

יום שני, יולי 6, 2009

This week I taught a class on video and DirectShow and sat down to prepare some demos. In this demo I show how to use the Video Mixing Render 9 (VMR9) in Windowless mode to render video on the Form of a Windows Forms application. As in my posts on MSXML I found that the smart pointers of comdef.h and comip.h really helped to clean up the code. Why, programming the VMR9 in C++ can be as elegant as C# ! You can find the complete source code here. High Level Design For...
תגיות: , , , ,
4 תגובות

Mapping MediaElement onto a Sphere with WPF

יום שני, יוני 29, 2009

In my previous post I created a 3D cube, mapped a MediaElement onto each of its faces and animated the camera around the cube. In this post, I will replace the 3D cube with a sphere and wrap the video onto the surface of the sphere. I omit the camera animation for simplicity, but you can add it back, of course. You can download the source code here. In order to create the sphere mesh I made use of Charles Petzold’s elegant SphereMeshGenerator. In Chapter 6 of his book (3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation) Petzold...
תגיות: , , , ,
תגובה אחת