Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Elliott Lee Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Dim bloke with a TIM Date: Thu, 17 Sep 1998 11:23:05 -0700 Organization: Bwahaha Lines: 70 Message-ID: <36015389.64776317@shell.jps.net> References: <3600BC16.1B1AD4F9@cwmail.com> Reply-To: tenchi@shell.jps.net NNTP-Posting-Host: dhcp-m-62-237.cisco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; U) If you're going to use TimUtil, then: - put your sprites somewhere in the (320,0)-(1023,511) region. the entire left side (0,0)-(319,511) will probably be consumed by your frame buffers. - make sure those sprites' upper left corners are aligned on 16-pixel boundaries and fit within a texture page. Otherwise interesting things will happen. - position the CLUTs so their leftmost pixel is also aligned on 16-pixel boundaries (on the X axis, Y axis can be anything) - make sure there is no overlap - one exception on overlap: if the CLUTs are identical, then you can overlap probably without problem. The CLUT palette sizes are: TIM type Width Height --------------- ------- ------- 4-bit 16 1 8-bit 256 1 16-bit n/a n/a I usually throw all my sprites in the upper left area and the CLUTs in the lower right. Oh yeah, play around with the CLUTs too---you can accomplish color cycling with that, too. - e! Tones wrote: > > Hello again! > > At the risk of sounding completely stupid, I need some help with TIMS. > Basically, I've got an 8 bit sprite 72x33, which I put alongside the > double buffers at 320,0. However, one thing that slightly confuses me > is the pallette location. I use TimUtil to set these values up, but I > can never work out where to put the pallette. Firsly, what are the > width and height values of the pallette ? Hmmm. I am getting confused > ;) > > Secondly, using the above example, where would I put the pallette (X,Y) > ? > > Trust me, I have scanned all of the available documentation I've got > (plus the 'net) - which does include Ira Rainey's superb sprite > tutorial, but still can't seem to get my head round this hurdle. > > BTW, the reason I ask this question is that I have two TIMS the same > size - I put the first one at 320,0 - The second (same size) at 320,34, > and both pallettes at 320,200 and 320,220 respectively. However, I > seemed to keep getting problems displaying the sprites on the screen at > the same time (I.e. either color clash, or total disappearance of the > second tim!). > > Ahhh! It's doing my head in >: ( !!!# > > Any help mucho appreciated!! > > Thanks, > > Tones -- Mata ne, ... ... - e! ::' tenchi@shell.jps.net ':: (Protocol) :: ACiD -/- ACS -/- pHluid -/- Yaroze -/- Nemesis :: (Tenchikun) ::. http://www.jps.net/tenchi .:: ''' '''