Path: chuka.playstation.co.uk!news From: Developer Support Newsgroups: scee.yaroze.beginners Subject: Re: Ok, truly stuck again. Date: Fri, 15 Aug 1997 10:29:19 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 30 Message-ID: <33F4216F.73BC@interactive.sony.com> References: <33F2E8E3.167E@ulst.ac.uk> <5svsq5$d3t1@chuka.playstation.co.uk> NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Mark Green wrote: > > JACKPOT!!!!! > Just today I tried changing the screen to NTSC mode, and it worked.. > I was wondering if my RFU was broken, but your solution makes perfect > sense - I haven't had time to try it yet, but it ties in with everything - > and I forgot to check those coordinates in timutil.. > Next thing. Just recently I tried to add another sprite to the program - > the laser that the rotating ship the previous code was supposed to produce > can fire. It's in ok, but when I tried to draw it, despite using the > values from the GetTimInfo() as the texture coordinate, I get the wrong > coordinates. If, however, I modify the texture u+v values it works. Now, > I think this is the following thing: How exactly does GetTPage() work? > Does it return a magic value calculated from the inputs? Or does it poke > the inputs into a table somewhere in the GPU and return a value? (ie, > is it safe to do: for t=1 to 5 sprite[x].tpage = GetTPage(x,y,z,a) and expect > all the values will be the same, or should I copy the GetTPage value into a > variable first?) The fact that you can modify the u,v and thereby make it work tells you something about your TIM file and how you are drawing it with a sprite; specifically, how to make it work correctly. You could make the u,vs modifiable at runtime (modified using controller) to see exactly what is going on. The better method is to use pre-built functions from sample code; the SCEE sample programs 2d and 2d2 (and mny others) show a clean, clear way to link a sprite to any image; using those you can get a laser working in not time, and they will show you how to use GetTPage.