Jump to content
  • Advertisement

Archived

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

Evening

How to load a very large bitmap in DX8 ??

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

since, old video can only support 256*256 texture size. How can i load the texture which is bigger than 256*256 ? i tried to use a surface to contain the bmp. but the problem is that i don''t know how to cut the surface into small square and load it as a texture? if I need to display 640*480 image .. how to do it ? can anyone provide some tutorial for me ? thanks all ~~~

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
you wouldn''t load a 640x480 image because it''s not a texture that is a power of 2. All textures must be a power of two or you''ll slow down your rendering speed alot. other than that you just load it like any other texture, or you can use s3 texture compression.

Share this post


Link to post
Share on other sites
if i first load the bitmap(640*480) into a surface, then copy some 256*256 Rects from the surface as a texture . And then render all texture at the right position to form the bitmap again, will it work ?

Share this post


Link to post
Share on other sites
What you should do is write up a class to load a bitmap and split it up into smaller sections. That way with older video cards you would be safe.

- torquel

Share this post


Link to post
Share on other sites

  • 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!