Recoloring Sprites

attritionattrition Join Date: 2004-10-13 Member: 32242Members
<div class="IPBDescription">Help with this pls....</div> I was just wondering how I could go about recoloring sprites. (crosshairs specificly) I've googled it and searched on all the customization forums for various mods, but I cant seem to find a tutorial. If it is something I cant see in Sprite Explorer but is in the .spr file I can probably do it myself, but if it is in thoes wierd text files attached to the crosshairs I would not even know where to start.

Comments

  • esunaesuna Rock Bottom Join Date: 2003-04-03 Member: 15175Members, Constellation
    edited November 2004
    Yeah, this should go in the customisation help forum, it'll be moved.

    Anyway, <a href='http://www.unknownworlds.com/forums/index.php?showtopic=84058' target='_blank'>this thread</a> should offer some help.

    All you need is SprView, SprWiz (google them) and an image manipulation program that isn't MS Paint. If it's just a case of recolouring, simply extract the .spr to bitmap using SprView, open it in Photoshop (or whatever) and edit the colour table. In the colour table change the very last entry (slot 256) to the colour you want the sprite to display.

    Save that bitmap (make sure it's saved as Indexed Colour) and make a new sprite (with the same name) in SprWiz (make sure it's set to indexed alpha), copy to the sprites folder and you'll be done.
  • attritionattrition Join Date: 2004-10-13 Member: 32242Members
    Thankyou, this doesnt appear to be as hard as I imagined it to be.
  • 2O32O3 Join Date: 2004-11-08 Member: 32689Members
    can we have more then one color ?

    if so how ?
  • esunaesuna Rock Bottom Join Date: 2003-04-03 Member: 15175Members, Constellation
    <!--QuoteBegin-2O3+Nov 8 2004, 05:59 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (2O3 @ Nov 8 2004, 05:59 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> can we have more then one color ?

    if so how ? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    With crosshairs, no. With most other sprites, yes.

    Crosshairs use the transparency mode (Or whatever it's called) Indexed Alpha. While the sprite itself is grayscale, the last slot in the 256 colour palette defines the colour of the sprite's final appearance. This is only a single slot so allows only one colour. For other transparency modes (such as Additive) the colour of the sprite is defined in the sprite itself so it's possible in that case.

    If you want, give it a shot compiling a multicoloured crosshair sprite in a different transparency mode, but i don't really think it'd work.
  • 2O32O3 Join Date: 2004-11-08 Member: 32689Members
    ok i found this and tried it, and YES we can make multicolored crosshairs with

    Alphatest

    <a href='http://www.thewavelength.net/oldcontent/2dart/tutorials/sprites.html' target='_blank'>http://www.thewavelength.net/oldcontent/2d...ls/sprites.html</a>
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    And combined with a little creative manipulation, you can even have transparency like with Indexed Alpha!

    Check <a href='http://www.unknownworlds.com/forums/index.php?showtopic=76680' target='_blank'>this thread</a> out.
Sign In or Register to comment.