• Advertisement
Sign in to follow this  

[Release] DXT Compressor

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

I posted my algorithm in the past for creating DXT-compressed images.

I have finally finished my tool for DXT compression.
You can read about it and find the download link [url="http://lspiroengine.com/?p=516"]here[/url].
There are many options already supported and many more to come. I made the commands mostly compatible with those of nVidia’s tool to make it easier for those using it.


Feedback is welcome.
The algorithm is posted here:
[url="http://lspiroengine.com/?p=312"]DXT Compression Revisited[/url]


L. Spiro Edited by L. Spiro

Share this post


Link to post
Share on other sites
Advertisement
Great work spiro, tough I have one question.

How does it affect channels ? In other words, how good is it when used with more technically textures (normal maps with only two channesl, alpha channel etc.) ?

Share this post


Link to post
Share on other sites
You have full control. The -weight switch allows you to customize the weights of each channel.
For DXT5 compressions, the alpha is always “maximal” compressed. That is it is encoded with the provably most optimal key colors, so it works well with the standard way of storing normal maps with only the green and alpha channels used.

For anything else, the weights of each channel are in your hands.
It also has the option to normalize mipmaps.


L. Spiro

Share this post


Link to post
Share on other sites
ah maybe a suggestion if you don't have it already (not seeing it in the option list), you have a swap R and B, which is great. But you should also have "redirect luminance into alpha" and a totally free swizzle system. Like in your weight option, you could make a little grammar where the weights are followed by a literal (optional) indicating the source channel.
so 0.5G 1R 1B 1A would go the grba swizzle.

Share this post


Link to post
Share on other sites
[quote name='Lightness1024' timestamp='1349945884' post='4989028']
ah maybe a suggestion if you don't have it already (not seeing it in the option list), you have a swap R and B, which is great. But you should also have "redirect luminance into alpha" and a totally free swizzle system. Like in your weight option, you could make a little grammar where the weights are followed by a literal (optional) indicating the source channel.
so 0.5G 1R 1B 1A would go the grba swizzle.
[/quote]
If you could combine your channels from different files would be really cool [img]http://public.gamedev.net//public/style_emoticons/default/ph34r.png[/img] [img]http://public.gamedev.net//public/style_emoticons/default/ph34r.png[/img] [img]http://public.gamedev.net//public/style_emoticons/default/ph34r.png[/img]

Share this post


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

  • Advertisement