Using Alphatest Sprites For Xhair But Transparancy

CHAMoisCHAMois Join Date: 2003-02-09 Member: 13339Members
<div class="IPBDescription">wont work</div> I can make indexalpha sprites all day and have them work, but alphatest sprites wont go transparant, so they just sit there as a big box in the middle of my screen

I want to use these instead of indexalpha because the color always seems washed out no matter what level of transparancy I have them set to

Comments

  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    Which rendering mode are you using?

    Did you set the palette correctly for the sprite? (Last color will be treated as transparent, no exceptions.)

    And it would also be nice if we could see the picture you're working with.
  • CHAMoisCHAMois Join Date: 2003-02-09 Member: 13339Members
    in game? Open GL

    heres a picture of the xhair and the pallet. I've tried making a hundred, alphatest just won't display transparant, I get all that black in game.

    Do I have to change something else to use alphatest xhairs?
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    edited February 2004
    Notice that you have many slots of 'black' in your palette. You <b>must</b> use the last slot's black, even if there's another slot with the exact same color.

    An easier method, though, would be to just resort to IndexedAlpha, since the crosshair is of simple design and single-colored. Just draw out the same crosshair, using near-pure white (254, 254, 254) and then set the index color to pure green (0, 255, 0). The resulting crosshair will be solid.
  • CHAMoisCHAMois Join Date: 2003-02-09 Member: 13339Members
    edited February 2004
    With indexalpha every crosshair I make, even if its 254 254 254, looks extremely opaque. I want something as translucent as the CS xhair, but cant get it done.

    I'll try making only the last color of the pallet black

    edit: yeah i didnt even notice the first color on the pallet was black, hehe
  • CoolCookieCooksCoolCookieCooks Pretty Girl Join Date: 2003-05-18 Member: 16446Members, NS1 Playtester, Contributor, Constellation
    now ya know what to do in the future <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /><!--endemo-->
Sign In or Register to comment.