Jump to content
  • Advertisement
Sign in to follow this  
BNY

DirectX video textures

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

I'm just about complete with code to play videos on a texture... and this leaves me with some issues. If I load directly to a texture, and the video width and height are not a power of 2, I have to choose the next bigger texture size to fit everything on it. Most videos are going to require a 512 x 512 or 1024 x 1024 size, and then there's the uncertainty that the video hardware will support it, but I assume just about everything these days will have larger texture support. I originally planned on making a surface to draw the video to and then copying it to a texture, but unfortunately there's no easy way to strech it (I use DirectX 8.1 and there doesn't seem to be something like StrechRect()). Is it unreasonable to use larger video sizes and hope the hardware supports it, or would I be better off writing a point resize routine when copying the pixels from the video to the texture? Not really something I would want to do though. Any other suggestions for textures and video would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!