Re: HL1 For other platforms? -
04-09-2005
I thought the palette size was 256*3. If it is 256*2, then the format would be RRRRRGGGGGGBBBBB. That is a little bit more complicated to convert. It would be like this:
red = ((entry >> 9) * 255 / 31;
green = ((entry << 5) >> 10) * 255 / 63;
blue = ((entry << 11) >> 11) * 255 / 31;
BTW, some textures are in WADs. It appears that the ones in WADs have no offset.
Last edited by sfx1999; 04-09-2005 at 21:32..
|