Transparency...

Hitman047Hitman047 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

Comments

  • KathosKathos Join Date: 2003-11-16 Member: 22975Members
    What I can understand from <a href='http://www.unknownworlds.com/forums/index.php?showtopic=59195' target='_blank'>Esuna's Laser Tut</a>, is that the transparent color must be black. Afaik, this is hard-coded into NS. So, make a skin and everything you want transparent make pure black (255, 255, 255. aka "last color"). Then when your compiling add the line <!--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" "additive"<!--c2--></td></tr></table><div class='postcolor'><!--ec2--> to the right QC file (don't ask which, no clue lol).
  • Hitman047Hitman047 Join Date: 2003-05-23 Member: 16646Members
    edited February 2004
    I have Jed's HLMV so I can make something additive, but I meant transparent. Additive makes things transparent but not invisible, the darker the color the more invisible it gets. Transparent is like the pure blue color that goes invisible... like this:

    Edit: sorry for the tiny pic, i can only upload 120k
    wtf.gif 24.3K
  • CoolCookieCooksCoolCookieCooks Pretty Girl Join Date: 2003-05-18 Member: 16446Members, NS1 Playtester, Contributor, Constellation
    ok for a start, jeds hlmv is not allowed in here, because the forum admins are calling it warez <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.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-->
  • esunaesuna Rock Bottom Join Date: 2003-04-03 Member: 15175Members, Constellation
    <!--QuoteBegin-CoolCookieCooks+Feb 21 2004, 08:30 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (CoolCookieCooks @ Feb 21 2004, 08:30 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> ok for a start, jeds hlmv is not allowed in here, because the forum admins are calling it warez <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.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.
  • CoolCookieCooksCoolCookieCooks Pretty Girl Join Date: 2003-05-18 Member: 16446Members, NS1 Playtester, Contributor, Constellation
    wow, thanks esuna, i can learn something every day from this forum ^_^
  • frostymoosefrostymoose Join Date: 2003-09-12 Member: 20799Members
    if you screwed it up and have some edges that aren't pure blue around your transparency (like I just did today), here's a pretty good fix... select color range "blues" then expand the selection by 1 pixel and fill it all in with the 0,0,255 (rgb).
  • esunaesuna Rock Bottom Join Date: 2003-04-03 Member: 15175Members, Constellation
    <!--QuoteBegin-frostymoose+Feb 28 2004, 05:34 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (frostymoose @ Feb 28 2004, 05:34 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> if you screwed it up and have some edges that aren't pure blue around your transparency (like I just did today), here's a pretty good fix... select color range "blues" then expand the selection by 1 pixel and fill it all in with the 0,0,255 (rgb). <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    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-->
Sign In or Register to comment.