DirectX 9 Texture Image Format
Posted 05 February 2012 - 09:23 AM
Does anybody knows what is the best image format to use for textures in DirectX 9 ?
I have read somewhere that DDS format is Microsoft format for DirectX so I guess this is most optimized format to use ?
Thanks and regards,
Senior Software Developer
Posted 06 February 2012 - 07:07 AM
quickly written, so i dont recommend it, i recommend using more already worldly known formats, that actually are supported by art programs etc.
use pngs, they are losslessly compressed and can contain an alpha channel.
if you want even more compression jpg is the way to go, megatexture uses lossy jpg compression.
but it doesnt matter what you use, what video memory format you load them in as can be compressed too, but its lossy
so its best to have things in vram lossless and raw data.
Posted 06 February 2012 - 08:52 AM
Posted 06 February 2012 - 10:29 AM
Here is a video tutorial that shows how to integrate the png loader into OpenGL. You should be able to do the same sort of thing using DirectX.
Play my free games: Ghost Toast, Zing
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users