Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Thread Tools
Old 01-25-07, 09:27 AM   #1
Registered User
Join Date: Aug 2006
Posts: 38
Default Texturecompression

I've done some texturecompression experiments:

The original picture is only for referenz, the DXT1 picture I've create with a gimp exporter and the indexed picture is only for filling the space :P
Only the DXT5 verion is important. I use this steps to create it:
1. Load a image in gimp.
2. Create a Alphachanel from the Black Color (Colors->Color to Alpha)
3. Export the result as dds with DXT5 compression

The GPU is able to decompress in realtime and the shader needs only one additional multiplication. An verry simple GLSL fragmentshader for example:
uniform sampler2D Colormap;
void main(void){
        vec4 color = texture2D(Colormap, vec2(gl_TexCoord[0]));
        gl_FragColor = color * color.a;
Teoretical it should be possble de decompress that with only using blending (ugly old stuff)
With a own specilised exporter the Quality could get close to the original. In special cases this algorithm would be able to store pictures with up to 16 bit dynamic range.
Attached Thumbnails
Click image for larger version

Name:	compression1.jpg
Views:	357
Size:	262.6 KB
ID:	23699  
Will code GLSL for food.
oc2k1 is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 04:43 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.