Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## [Algorithms] DXTC Compressor

 [Algorithms] DXTC Compressor From: Jason Dorie - 2001-01-30 23:24:31 Attachments: OldMethod.jpg     NewMethod.jpg ```For those who care, I made a small modification to my DXTC compressor - After finding the two best endpoints for my texture within the input colors, I use those as inputs to the next algorithm: Best[0] = Endpoint 1 Best[1] = Endpoint 2 For each color channel { For values +/- some amount of Best[0][Channel] { For values +/- some amount of Best[1][Channel] { Test the two "jittered" colors to see if they're closer than the current best values } } } 3DFX's code for the FXT1 compressor does this, but they use the min/max values of each color channel as their starting values. I can't tell if that's a clear enough description - If not, say so and I'll elaborate. The zoomed results for a test image are attached. Jason Dorie ```

 [Algorithms] DXTC Compressor From: Jason Dorie - 2001-01-30 23:24:31 Attachments: OldMethod.jpg     NewMethod.jpg ```For those who care, I made a small modification to my DXTC compressor - After finding the two best endpoints for my texture within the input colors, I use those as inputs to the next algorithm: Best[0] = Endpoint 1 Best[1] = Endpoint 2 For each color channel { For values +/- some amount of Best[0][Channel] { For values +/- some amount of Best[1][Channel] { Test the two "jittered" colors to see if they're closer than the current best values } } } 3DFX's code for the FXT1 compressor does this, but they use the min/max values of each color channel as their starting values. I can't tell if that's a clear enough description - If not, say so and I'll elaborate. The zoomed results for a test image are attached. Jason Dorie ```