Archived

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

Mauzoleum

Problem with big textures

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.
http://www.mvps.org/directx/articles/splash_screen.htm

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