Transparent Colors On Sprites

oloffeoloffe 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

Comments

  • Cloud_KingCloud_King Join Date: 2002-11-18 Member: 9154Members
    You need to set your last color to #FE02E6 in your color palette and compile with alphatest.
  • SnappyCrunchSnappyCrunch Join Date: 2004-08-03 Member: 30328Members, Constellation
    From the <a href='http://collective.valve-erc.com/index.php?doc=1043360861-70912800' target='_blank'>VERC Model Transparency Tutorial</a>:
    <!--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.
  • Mr_HeadcrabMr_Headcrab Squee&#33;~ Join Date: 2002-11-20 Member: 9392Members, Constellation
    easiest way i do transparent is with a full blue

    #0000FF

    R 0
    G 0
    B 255

    always works for me
  • oloffeoloffe Sweden Join Date: 2005-03-07 Member: 44227Members
    hmmm... don't wotk! <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad-fix.gif' border='0' style='vertical-align:middle' alt='mad-fix.gif' /><!--endemo--> .. but maby it because when Im making my palet, I build a palet and after, I chose the last as the transparent color.. (?)
    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--> )
Sign In or Register to comment.