Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Jack Copper Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: More GsBG questions Date: Wed, 28 May 1997 21:33:07 -0400 Organization: ArcanaTech Lines: 50 Message-ID: <338CDCD3.567@earthlink.net> References: <335F08E0.7758@charlie.cns.iit.edu> <335f711f.2848316@205.149.189.29> <33767A65.85D@earthlink.net> <338600ae.70475903@news.scea.sony.com> NNTP-Posting-Host: 1Cust53.Max6.Cleveland.OH.MS.UU.NET Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Jamin Frederick wrote: > > Yea, this got me wondering...I took a look at some TIM files with a > hex editor and looked at the corresponding bit values...apparently > this is the way the TIM flag is supposed to be: > > bits meaning > 210 > > 000 4-bit CLUT > 001 8-bit CLUT > 010 15-bit direct > 100 24-bit direct? > > bit meaning > 3 > > 0 No CLUT block > 1 Has CLUT block > > bits 4 - 31 always 0 > > I wish Sony would just write out the bit fields like this in the first > place. I'm going nuts trying to figure out if > > 1. > 2. > 3. > 4. > > SNIP my message Well Jamin, we agree on the first 2 bits, so to speak. But I'm still a bit puzzled. You and I both empirically concluded that bit 3, when set, indicates the presence of a CLUT. So, the question is, what represents 24-bit direct mode? 0x4 (0100B) or 0x3 (0011B) ?? I guessed 3, since for the Sony documentation to have any semblance of consistency, if the reference to 1 and 2 were bit positions, the reference to 0 would also be a bit position.. but bit 0 when set yields 1 (we both discovered that an 8 bit CLUT is 0x9 which is 1001- so 1 can't represent a 4 bit CLUT). Someday I'll try loading a 24 bit direct file and see... Or maybe Sony will fix the docs.. Jack Copper