dds or jpeg
-
Topic authorVincent (France)
dds or jpeg
I've made a dds texture (5 Mb) and a jpg texture (1 MB) for mercury : the two textures have nearly the same quality and look nearly the same in Celestia.
So here is my question : Is it true that it's better for cpu to use the dds texture even if it's heavier ? And why ?
Thanks
Vincent
So here is my question : Is it true that it's better for cpu to use the dds texture even if it's heavier ? And why ?
Thanks
Vincent
-
Topic authorVincent (France)
Vincent (France) wrote:OK, but then why is dds 5 times heavier than jpg ? As dds is more compressed, shouldn't it be the contrary ?
I don't understand how a 5Mb texture is easier to load than an only 1 Mb file...
The JPG is only compressed while being on disk. Celestia has to decompress it before it can be used by the graphics card, which requires significant amount of CPU time, and it's geting pretty large after decompression (width * height * 3 [bytes]), and it uses up that much memory either in main memory or in the graphics card memory.
DDS on the other hand doesn't need to be decompressed at all before getting used (the graphics card can decompress it in real time when using it), so it takes practically no CPU at all and only as much main/graphics card memory as it takes on disk (typically 1/6th the full size). It does however have worse(!) visual quality then JPGs, and not all graphics card can use it, but DDS can be much faster to load then JPG and allow higher resolution textures with the same amount of graphics card memory.
HTH,
Harald
-
Topic authorVincent (France)
Vincent,
you could do that, but you should be a bit carefull to achieve the best possible quality. It is not always obvious how to get it with this tool.
But usually every bigger celestia jpg-texture on the net should have an equal dds-texture at it's side. So perhaps you just need to download.
maxim
you could do that, but you should be a bit carefull to achieve the best possible quality. It is not always obvious how to get it with this tool.
But usually every bigger celestia jpg-texture on the net should have an equal dds-texture at it's side. So perhaps you just need to download.
maxim
-
Topic authorVincent (France)
Thanks Maxim. And I agree with you when you say that, even with some experience, we have to be carefull with Photoshop and more particularly with dds files.
If you still have some time (and space ) for my questions, I realised that some dds files have MIP maps. I've tried to save these files without keeping the MIP maps and then, I noticed that the sides of the planets were 'glittering' because resolution seemed to be upper...
So are these MIP maps used to avoid this glittering ?
Vincent
If you still have some time (and space ) for my questions, I realised that some dds files have MIP maps. I've tried to save these files without keeping the MIP maps and then, I noticed that the sides of the planets were 'glittering' because resolution seemed to be upper...
So are these MIP maps used to avoid this glittering ?
Vincent
kikinho wrote:Because dds textuures are compressed. And dds textures spend less time to appear in Celestia than PNG and JPG.
How did you think about JPEG 2000 ?
It's also open source: http://www.ece.uvic.ca/~mdadams/jasper/
Nameless wrote:How did you think about JPEG 2000?
You can't beat DDS when it comes to performance, but you can easily beat it when it comes to quality - JPG is pretty good in most cases and offers good compression ratios, and for perfect quality (and alpha layer) you can use PNG.
JPEG 2000 would offer smaller files (or better quality), but I am not sure that this would make a huge difference. It does also have an alpha layer, which could be very useful (e.g. to replace huge PNG textures). However I am not sure it's worth the work to include it, and there aren't yet that many programs which support it.
Harald