Transparent Colors On Sprites
oloffe
Sweden Join Date: 2005-03-07 Member: 44227Members
I use the color which is transparent on all other sprites (#FE02E6)
And I use Wavelenght Sprite Wizzard 1.1 to compile the .spr, but how di I get #FE02E6 transparet?
And what means with:
*Additive - 256 colors with <u>additive transparency.</u>
*Alphatest - 256 colors; <u>last color is transparency.</u>
Thanks to all answers
And I use Wavelenght Sprite Wizzard 1.1 to compile the .spr, but how di I get #FE02E6 transparet?
And what means with:
*Additive - 256 colors with <u>additive transparency.</u>
*Alphatest - 256 colors; <u>last color is transparency.</u>
Thanks to all answers
Comments
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->There are two types of transparency available in the Half-Life engine. The first form, Masked, will make certain pixels of your texture completely transparent - Masked will be the most common form since it allows you to add detail to a model without adding extra polygons. An example use of "Masked" trasnparency is with vegetation - a few polygons can now define entire branches full of leaves, while before they had to be made with world polygons.
The second form of transparency, Additive, allows you to achieve a full range of transparency. With Additive transparency certain pixels can be semi-transparent, which cannot be achieved with Masked transparency. An example use of Additive transparency is a vehicle window - a situation where you would want the glass to still remain semi-opaque.
<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Basically, for masked transparency you have a 256 color palette, just like all sprites(and model skins), and the last color in the palette, the 256th color, should be the color that you want to be transparent in game. Just open up your sprite in your favorite image editor, and edit the palette to make the last color in the palette the color you want to be transparent. If your image editor doesn't have a palette editor, then you need a new favorite image editor.
#0000FF
R 0
G 0
B 255
always works for me
If I remove the "transparent" color from the palet and just chose it as the last color, do you think it work then? (Not tested it yet <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> , on school <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo--> )