Path: chuka.playstation.co.uk!news From: Alex Herbert Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Transparent Color Date: Fri, 03 Apr 1998 20:34:26 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 43 Message-ID: <352539C1.9C8119A@ndirect.co.uk> References: <352228A8.7960@telecom.at> Reply-To: aherbert@ndirect.co.uk NNTP-Posting-Host: dialin0-22.ndirect.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) To: Harald Ploch Right, this is how I beleive tranparency works. If the semi-trans bit in the attribute for sprites etc is off, then transparency works as follows: If the transparency bit is set in the CLUT or 16-bit image, then it is totally transparent without hue. Otherwise it is solid. (Best used with the Transparent for Black in TimUtil.) If the semi-trans bit in the attribute is on, then transparency works as follows: If the trans bit in the CLUT is set, then it will be semi-transparent. (See the transparency modes for the attribute as there are 4 different ways semi-trans can be processed, i.e. additive, subtractive, average etc.) If not then it will be solid. Obviously, semi-trans black is the same as totally transparent. (Use Transparent Except Black in TimUtil to set the tranparency bit for all other colours.) I have not tried combining solid and semi-tranparent colours in sprites yet as TimUtil doesn't let you set this for indiviual colours. However, it should be quite easy to experiment by setting the 16th bit in individual colours of the CLUT in your code. But I have sprites with all colours semi-transparent by setting both Trans options in TimUtil. Works a treat for lighting effects/explosions, especially when combined with tweaked r,g,b values to change colours or to fade. Hope this helps... Alex Herbert Harald Ploch wrote: > Hello! > > How do I specify the color which will be transparent when I display a > sprite ? > > Thanx