Advertisement

choice of image format

Started by August 31, 2011 04:00 PM
3 comments, last by SiCrane 13 years, 3 months ago
my doubt is about the perfomance that each format of image have. I dunno if this have any influence on frame rate. How I see this? Before I thougth that the size is the factor. But if this true, all choose a compressed format, not BMP. Then... Somebody help me?
It would help if you specified what context you were asking about. For example, many libraries uncompress all images into memory upon loading. On the other hand, if you're working with DirectX or some library that wraps DirectX some compressed formats are loaded into video memory directly.
Advertisement
It's like you say: the source format does not matter, only the data you're uploading to the graphics card. You should have a look at the .DDS format, which supports compression and optionally stores mipmaps. NVIDIA's texture tools include an exporter for Photoshop: http://developer.nvidia.com/nvidia-texture-tools-adobe-photoshop
Wunderwerk Engine is an OpenGL-based, shader-driven, cross-platform game engine. It is targeted at aspiring game designers who have been kept from realizing their ideas due to lacking programming skills.

blog.wunderwerk-engine.com

It would help if you specified what context you were asking about. For example, many libraries uncompress all images into memory upon loading. On the other hand, if you're working with DirectX or some library that wraps DirectX some compressed formats are loaded into video memory directly.


Oh, sry. I'm learn SDL. I want to create a adventure 2D game, like maniac mission. I will use many images in same time.

edit----

[color=#1C2837][size=2]It's like you say: the source format does not matter, only the data you're uploading to the graphics card. You should have a look at the .DDS format, which supports compression and optionally stores mipmaps. NVIDIA's texture tools include an exporter for Photoshop: http://developer.nvi...adobe-photoshop [/quote]

Oh. I wiil read about. THX
SDL and SDL_Image will uncompress all the image file types when loading. The image format will affect things like size on disk and whether or not there will be an alpha channel, but otherwise it doesn't really matter what you use as long as it supports the data you want.

This topic is closed to new replies.

Advertisement