View Single Post
Re: HL1 For other platforms?
Old
  (#21)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default 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.


sfx1999.postcount++

Last edited by sfx1999; 04-09-2005 at 21:32..
  
Reply With Quote