Recoloring Sprites
attrition
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
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.
if so how ?
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.
Alphatest
<a href='http://www.thewavelength.net/oldcontent/2dart/tutorials/sprites.html' target='_blank'>http://www.thewavelength.net/oldcontent/2d...ls/sprites.html</a>
Check <a href='http://www.unknownworlds.com/forums/index.php?showtopic=76680' target='_blank'>this thread</a> out.