Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: jamin1@psu.edu (Jamin Frederick) Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Help on transparency, anyone? Date: Tue, 01 Jul 1997 20:24:28 GMT Organization: SCEA Net Yaroze News Lines: 63 Message-ID: <33b9626f.27390820@news.scea.sony.com> References: <01bc85ff$1417f3c0$35a2cdcd@nsantos> <33b92a03.2267974@205.149.189.29> NNTP-Posting-Host: nbppp99.cac.psu.edu X-Newsreader: Forte Free Agent 1.11/32.235 I noticed that there's an extra STP/RGB combination that wasn't mentioned in the manuals but it was in the file formats documentation. It's this: STP = 1, RGB = (0,0,0) This means black is treated as solid So basically, you got an STP flag for non-black colors, and an STP flag for black colors. Setting it for non-black colors makes the non-black colors translucent, and setting it for black colors makes the black colors solid (not transparent). I don't think black colors can be made translucent. I think TRANSLUCENT EXCEPT BLACK turns on the non-black STP, and TRANSPARENT FOR BLACK turns off the black STP. So shouldn't it be TRANSPARENT FOR BLACK that's affecting the black color, not the TRANSLUCENT EXCEPT BLACK? Anyways, I've gotten it to work for my sprites, I've had (00) a tank with transparency (no black borders), (01) a tank with no transparency (black borders), a cursor with translucency and transparency (11), but I haven't tried (10) no transparency but translucency. Good Luck! Jamin On Tue, 01 Jul 1997 16:08:32 GMT, mperdue@iquest.net (Mario Perdue) wrote: >Nelson, > >I've looked at TIMUTIL a bit this morning and found that it didn't >work exactly as I thought it should. In the Transparency settings >there are two check boxes. One is TRANSLUCENT EXCEPT BLACK, the other >is TRANSPARENT FOR BLACK. I would have thought that TRANSLUCENT EXCEPT >BLACK would have left the value of black at 0x0000, but it doesn't, it >changes it to 0x8000. However, if you check both boxes, it looks like >it sets the data correctly. I havn't actually looked at it on the >screen, but it looks right in a hex editor. > >Mario > >On 1 Jul 1997 06:09:22 GMT, "Nelson Santos" wrote: > >>Hasn't anyone who uses sprites in TIM files come across the same problem I >>have? >> >>When drawing my sprites, I used color #0, which I have set to black, for >>the sprite background color. Now, when I display these sprites on the >>Yaroze, the black actually comes out as a solid color instead of coming out >>transparent. This means, that when sprites overlap, you can see the >>"square" drawn around the sprite. >> >>I would like to ask the SCEE Developers (or anyone else who can help) on >>how to fix this problem. Is it something I am doing wrong? >> >>Please help! My games will be useless if I can't fix this! >> >>Nelson. >> >