Jump to content
  • Advertisement


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


Problem with big textures

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

Hello! I want to put hi-res background picture in my game menu. Not all cards supports big textures (i am using two big triangles making rectangle as background primirive). Should i cut my big texture to a smaller pieces and then use them to texture smaller rectangles? Or maybe there is simpler way. Thank you for your answers.

Share this post

Link to post
Share on other sites
Hehe, been there, done that...

You will indeed have to split up your large bitmap at load time into a batch of 256x256 textures, and just as many quads.

Thankfully you can look at this site for working code to start with.

Note that one small error snuck into his code: To avoid any troubles, make sure you use your active Backbuffer''s D3DFORMAT for all surfaces involved in the process. Anything else is asking for trouble. (Trust me on that one!)

Hope this helps.

=^.^= Leaders and teachers should remember: It is best to offer others what they Need, not what they Want.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!