Path: chuka.playstation.co.uk!news From: Ira Rainey Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: GetTPage and transparency Date: Thu, 12 Jun 1997 07:40:16 +0100 Organization: shadow developments Lines: 20 Message-ID: <339F99CF.ADE@netcomuk.co.uk> References: <339F84A8.4DBD@concentric.net> NNTP-Posting-Host: dialup-08-34.netcomuk.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Macintosh; I; PPC) dsyaroze wrote: > > Why is it GetTPage needs to know the transparency > value of the what you're looking at? It seems to > me it's just doing a simple conversion from frame > buffer coordinates to tpage number. > > Scott Thats right. Try using this: sprite.tpage = GetTPage((image.pmode & 0x03),0, image.px, image.py); Where sprite = GsSPRITE and image = GsIMAGE. This will get the tpage for any image. -- "Never take life too seriously, 'cause you know you're not getting out of it alive." - Bugs Bunny