Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: jamin1@psu.edu (Jamin Frederick) Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: More GsBG questions Date: Fri, 23 May 1997 20:59:07 GMT Organization: SCEA Net Yaroze News Lines: 80 Message-ID: <338600ae.70475903@news.scea.sony.com> References: <335F08E0.7758@charlie.cns.iit.edu> <335f711f.2848316@205.149.189.29> <33767A65.85D@earthlink.net> NNTP-Posting-Host: nb3ppp57.cac.psu.edu X-Newsreader: Forte Free Agent 1.11/32.235 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. just means the decimal value or enumerating bits to be flagged. Let me know if I'm wrong on this. Jamin Frederick On Sun, 11 May 1997 22:03:17 -0400, Jack Copper wrote: >Mario Perdue wrote: >> >> Hi Ed, >> > SNIP SNIP >> >> That's just the way the data is stored. I'll post my file on the TIM >> format today. It's not the 'official' document, but it's based on a >> fax of that document. It will be a lot clearer after you see the >> format. >> > >Mario, >I think there's a minor error in the TIM document- >The CF flag is actually bit 3, with the pixel mode bits being bits 0-2; >it appears that modes are stored as codes (i.e., 0,1,2,3 in bits 0-2) >and the CLUT flag is a single bit (set/clear). > >That said, I more or less figured out CLUT tables and file formats, but >I confess I don't understand the background stuff (the rest of this >connected thread). > >Put simply, I am trying to load a 512 x 240 8-bit color bitmap as a >fixed background. It shows up where I expect if I load the corresponding >TIM file into TIMTool (as an aside, any documentation on TIMtool- it's >not clear to me at all what a "project" is, or how one uses TIMtool >projects). > >Anyway, I guess the most confusing issue is the relationship between the >cell and background map structures, when what I have is the entire image >(basically, I just wanted display the image). > >I've looked at the ricochet code, as well as Ed's samples, but to no >avail. It seems to me that this ought to be simple, but.... > >TIA >Jack Copper