DDS vs. CompressTexture true

Tips for creating and manipulating planet textures for Celestia.
Guest

DDS vs. CompressTexture true

Post #1by Guest » 09.09.2003, 04:18

What is the difference between using a DDS texture and specifing "CompressTexture true" in your config?

Can anyone provide a good expaination of "CompressTexture true", is it as simple as specifying it for each object to compress all their textures?

Miserableman
Posts: 65
Joined: 03.04.2002
With us: 22 years 3 months
Location: Brighton, England
Contact:

Post #2by Miserableman » 10.09.2003, 09:16

I haven't looked at this for a very long time, but DDS textures are precompressed to a format that graphics cards can read very quickly. Thus if you can get a texture into DDS format, it is very small to store and takes no time at all to decompress.

CompressTexture True I can only guess tries to compress jpg or png textures further in video memory, but this will take a short time to do, meaning textures pause even longer whilst loading/unloading them.

Now for someone to come along and tell the real story!

Mikeydude750
Posts: 169
Joined: 31.01.2002
With us: 22 years 5 months
Location: Wisconsin

Post #3by Mikeydude750 » 13.09.2003, 17:34

You are right in that DDS is in a format that the graphics card can natively deal with. Basically...all the time spent "loading" the DDS texture is reading it off the hard drive and into video memory...where the video card can read nearly instantly.

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 5 months
Location: Seattle, Washington, USA

Post #4by chris » 13.09.2003, 18:42

CompressTexture true will convert a non-DDS texture to a hardware compressed format at load time. As people who have worked with large DDS textures know, this process can take a long time. If you want to compressed textures you're much better off creating a DDS file, as it will load a lot faster.

--Chris


Return to “Textures”