Skip to main content
GameDev.net gamedev.net
🔒 Locked

video using direct show....

Started by aayushkaistha Jan 19, 2007 at 6:23 AM 0 replies 300+ views
Original Post
aayushkaistha
aayushkaistha
hii there... im developing a game using directX 8 in vc++ 6.0 i've written a code that can play mp3 files using IGraphBuilder and IMediaPlayer control. it works fine.. the sample given in sdk plays video files also using the same code. the prob is that, in the sdk they have drawn the video in a standard windows form, and i want to render the video when my game starts ie within my DX application.. any help would be appreciated... thanx in advance...
darookie
darookie
Instead of rendering to window's device context, render into a surface and blit the surface to a render texture via D3DXLoadSurfaceFromSurface. This will do the necessary scaling for you.

HTH,
Pat.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.