Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: TIM Date: Tue, 15 Sep 1998 17:24:44 +0100 Organization: Sony Computer Entertainment Europe Lines: 22 Message-ID: <35FE94CC.F801DE5@scee.sony.co.uk> References: <35FE90A1.C741958C@augsburg.baynet.de> NNTP-Posting-Host: mailgate.scee.sony.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5b1 [en] (Win95; I) X-Accept-Language: en loonybit wrote: > > How is an 8 bit CLUT constructed or represented in memory? A CLUT entry consists of three 5 bit values packed together into two bytes. The last bit is used to turn semi-transparency on and off. This means that an 8 bit CLUT will be 512 bytes of RAM, and a 4 bit CLUT will be 32 bytes of RAM. > Are the values in the TIM file indexes for the table (0 is first entry)? Yes. Because it is an 8 bit CLUT, there is one index per byte in the file. For a 4 bit CLUT, there are 2 indexes per byte (one in the high nibble, one in the low nibble). Cheers, James -- == James_Russell@scee.sony.co.uk +44 (171) 447-1626 == Developer Support Engineer - Sony Computer Entertainment Europe Socrates last words: "I drank WHAT?"