Cacodemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Recolouring sprites?
 
Author
All times are GMT. The time now is 14:38. Post New Thread    Post A Reply
phlum
Warming Up


Posts: 23
Registered: 01-10


Hi,

I've seen many WADs with different coloured monsters - and that's it, just different colours. A good example of this are Skulltag's custom actors - start a random game and spawn a Blood Demon or a Cacolantern, and you'll see.

But, how is this done?

Surely there's an easier way to recolour a bunch of sprites than going through them separately? And I doubt many mapmakers have the willpower to do that. Hell, even colourising in the Gimp changes some stuff you don't want changing.

Old Post 02-18-10 21:15 #
phlum is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
StoneFrog
Member


Posts: 276
Registered: 06-08


ZDoom and derived source ports (such as Skulltag, as you mentioned) support color translation tables in DECORATE lumps, which can be used to quickly shift the colors of certain ranges of an actor's palette, or even specific RGB values.

The other option is, as you stated, manually doing it through Gimp, Photoshop, and the like. Not sure about Gimp, but Photoshop can record and utilize macros which would make procedural recoloring much less painful.

Old Post 02-18-10 21:28 #
StoneFrog is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
phlum
Warming Up


Posts: 23
Registered: 01-10


Huh. Well, as good as that is, I can't make heads or tails of it... O_o

Last edited by phlum on 02-19-10 at 20:38

Old Post 02-18-10 21:43 #
phlum is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
magicsofa
Senior Member


Posts: 1379
Registered: 04-03


You should probably learn decorate anyway - its pretty easy, fun, and useful

Old Post 02-23-10 21:57 #
magicsofa is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07



phlum said:
Huh. Well, as good as that is, I can't make heads or tails of it... O_o

With 8-bit graphics like in Doom, each pixel in a graphic has an index that tells which color from the palette it is. The the computer looks up that palette, and says "okay, pixel X is index Y, that corresponds to color Z, so pixel X is color Z".

The palettes are usually organized so that similar colors are together. This forms a color range. You can look at the various games' palettes here, it'll probably make more sense then.

So, a translation says that index Y, in fact, must be replaced by index V, which corresponds to color W. So pixel X ends up not being color Z, but color W. that's the translation.

For example:
http://zdoom.org/w/images/a/a2/Doompalette.gif

You can see that the greens of Doomguy's suit are in the 112-to-127 range. Then a translation like 112:127=96:111 will replace each color from the 112-127 range to a color in the 96-111 range, resulting in a marine that wears a grey suit instead of a green one. It is translated to a different color range.

Old Post 02-24-10 01:14 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 14:38. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Recolouring sprites?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory