Jump to content
  • Advertisement


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


Texture file formats

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

This is a short thread... Which format is better to save textures? I mean that for example, a GIF file can do de work as it has alpha information for example, but the problem is that I could need 1 bit for alpha channel or 4 bits, and the same for the other channels. In a real case, I want 24 bits of color and 1 or 4 bits of transparency... which file formats support this variety?

Share this post

Link to post
Share on other sites
1. PNG is the best all-round lossless format. The D3DX libraries can load this format.

2. The usual way to do things is to store all of your source data as 32bit 8888 and scale down to whichever format you need to create the texture in at load time.

Usually you can''t guarantee a certain format will be present so you can''t pre-convert (or if you do, you need to store multiple copies in the various common formats). DXTn textures are another alternative.

Simon O''Connor
Creative Asylum Ltd

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!