Transparency...
Hitman047
Join Date: 2003-05-23 Member: 16646Members
<div class="IPBDescription">HELP MEH PLZ!! KTHXBYE!</div> I have a texture already made, finished, but I can edit it easily. But the problem I'm having is that I don't quite understand how to add a transparency! All the tutorials are crap and I can't find a decent one that actually explains step by step what to do! I know I have to go into the color table but it says it has to be the last color in it to be transparent? How do i change the last color to the one I want? WTH? OMG WHAT IS GOING ON M8's!!??!1111oneoneeleven
Much appreciated if you could direct me to a VERY good and VERY detailed tutorial, or if you can give me one of your own.
Hitman
Much appreciated if you could direct me to a VERY good and VERY detailed tutorial, or if you can give me one of your own.
Hitman
Comments
Edit: sorry for the tiny pic, i can only upload 120k
but lets not discuss that, if you want a transparent thing, the transparent parts must be perfect blue.
i think, in the qc file you must have the same line as esunas, but change additive to transparent (i presume)
$texrendermode "<skin name>.bmp" "transparent"
i use jeds hlmv, but im not allowed to discuss that <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /><!--endemo-->
but lets not discuss that, if you want a transparent thing, the transparent parts must be perfect blue.
i think, in the qc file you must have the same line as esunas, but change additive to transparent (i presume)
$texrendermode "<skin name>.bmp" "transparent"
i use jeds hlmv, but im not allowed to discuss that <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
No, the rendermode must be "masked" not "transparent", so it'll look like this:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->$texrendermode "<skin name>.bmp" "masked"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Basically, the last colour of your pallette, a common colour to use is pure blue (RGB: 255 255 255), but can be anything you want, MUST be the colour you want to make transparent.
An easy way to achieve this is to goto Image > Mode > Indexed Color, as you usually would when creating a skin .bmp, but make sure you limit it to <b>255</b> and <b>not 256</b>, by doing this, in the colour table (Image > Mode > Color Table) you will have an empty slot in your pallette, right at the end of it. Click that, choose the colour you desire, now fill the areas you want to be transparent with that colour and you're done.
One thing, make sure you don't do this either before making the image mode "Indexed Color", or if you do so before, make sure you have anti-aliasing turned off. If anything blends with the blue, you'll have nasty blue borders around the transparency, which is no good.
Now that is why you kill anti-aliasing or do the masking <b>after</b> dropping it to 255 colours, that way the annoying blue edges won't happen. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->