Sign in to follow this  

DirectX video textures

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this