dxt1 lookup table

Hi,

Im trying to understand whats happening with the dxt1 format.

Where im having trouble is  with the lookup table.

Im using the msdn documents to learn from, so i read the 16bit color 00 and then the 16bit color 01 and then from them i create color 02 and color 03.

Then i have 32bits remaining which are my lookup table, how do i use this

Maybe i just missing something real obvious but could anyone take the 2 or 3 mins to explain it to me.

Im using c# and mdx if anyone has done it before with these tools.

Thanks for any help,

   -Dave



Answer this question

dxt1 lookup table

  • Titus63

     REspawn wrote:
    Im using the msdn documents to learn from, so i read the 16bit color 00 and then the 16bit color 01 and then from them i create color 02 and color 03.

    Then i have 32bits remaining which are my lookup table, how do i use this

    The colour 00, 01, 02, and 03 values are your lookup table.  The remaining 32-bits are the 2-bit pixel values that you lookup in that table.

     


  • dxt1 lookup table