Jump to content
  • Advertisement
Sign in to follow this  
Zaris

Image format

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

Advertisement
.BMP, because it's easy to read from. Also I know that if you have Adobe Photoshop, you can save BMPs in different quality modes and do other such stuff.

If you don't agree with me, then try [google].

Share this post


Link to post
Share on other sites
orcfan32, I'd like to direct you to a quote in the For Beginners forum FAQ:
Quote:

Don’t answer questions that you don’t know the answer to. When you’re a beginner, there is nothing worse than bad information so please know what you’re saying before you say it.


The best image format for a 2D game depends on what you want to use the images for. For example, for creating rectangular (non-isometric) tiles on a single layer, you may want to use BMP. However if you want to create isometric tiles then you either need to add a image mask or an alpha channel. Adding an image mask to the BMP often requires doubling the storage size needed, and BMPs don't support alpha. In that case you may want to go TGA or PNG since both those support alpha channel. This also goes for if you wish to create multiple layers since that is also more easily done by using alpha channels. For sprites, image formats with alpha channels are also more easy to work with than BMPs with image masks.

In my current game project I use SVG for my image format, since that way I get rotation and zooming with no quality loss.

So if you want to mention what kind of 2D game you are creating we can give you a more focused suggestion.

Share this post


Link to post
Share on other sites
For a 2D game you will probably want an image type with lossless compression. My personal preference is PNG. If you are using DX the D3DX texture loading functions can handle it. SDL's SDL_Image lib supports them too. And there is always libPNG if your graphics API doesn't support it.

Share this post


Link to post
Share on other sites
The game is 2D non isometric tile base; I'm switch from using window based graphic functions to SDL.

Share this post


Link to post
Share on other sites
Then just use SDL_Image. It will allow you to load most of the graphics formats you are likely going to use. So you can probably safely go with either PNG or TGA.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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