• Advertisement


This topic is now archived and is closed to further replies.

How to show large bitmap in D3D?

This topic is 6322 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 have a animation file and I want to show it in D3D.I know I can load the animation file and decode each frame in animation and use SetTexture to set the frame as a texture . But the problem is the dimension of each frame in the animation file is larger than 256x256.Somebody say the texture used in D3D shoud be smaller than 256x256 because some video cards don''t support the texture larger than 256xz256. How can I show the animation without splitting each frame into two parts? Thanks.

Share this post

Link to post
Share on other sites
You many choises:

1) if you use D3D8 you may set the image as the cursor image and display it, the only draw back is that it has to be an image whit is dimensions power of 2
2) Else you strink the image in to a 256*256 one and make your poly a 2d poly with you desired dimension and DrawPrimitive it
3) Manualy draw on the back surface (Make yoursef a blit)
4)Brake your image in small ones and use them with more poly


100 = 64 + 32 + 4

And make 3 poly one for the new texture 100. one for 32 and one for 4

hope this help

If you wnat some codes for D3D8 send me an email at ChMar@hotmail.com

Share this post

Link to post
Share on other sites

  • Advertisement