Can't get colored blood to match custom palette

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Can't get colored blood to match custom palette

Post by Nash »

So I was playing Eviternity, which has its own palette. And I added a custom small mod that colorizes the Cacos and Barons' blood colors. But no matter what I try, the colorized blood doesn't match the Eviternity palette. For example, the caco sprites' blood in Eviternity look kind of like teal-ish, but the spawned blood (and decals) appear to be unaffected by the palette at all.

Is there no way around this?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't get colored blood to match custom palette

Post by Graf Zahl »

The translation is not palette-matched. You have to specify a translation that uses the actual colors in the palette.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Can't get colored blood to match custom palette

Post by Nash »

Can't seem to get it to work. What's wrong here?

Code: Select all

actor aaa : Cacodemon replaces Cacodemon
{
    BloodColor "176:191=198:207"
}
 
I got this translation string from SLADE:

Image
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Can't get colored blood to match custom palette

Post by Enjay »

That's mapping to palette locations - and it looks like Slade is still loading the default Doom palette. Have you tried mapping to RGB values that appear in the custom palette (not that the values have to be in the palette at all)?

Maybe try

"176:191=[83,83,255]:[0,0,83]"
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't get colored blood to match custom palette

Post by Graf Zahl »

Blood color is an RGB value, not a translation string. What it ultimately does is recoloring the complete range of colors to a shade of the given color.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Can't get colored blood to match custom palette

Post by Gez »

I think what Nash needs is a way to specify a color by its index value instead of by its direct RGB value. Perhaps a syntax such as "BloodColor @204" with the @ character to indicate it's an index value?
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Can't get colored blood to match custom palette

Post by Nash »

Yeah my problem is that these custom blood colors aren't adapting to whatever custom palette a WAD has implemented.



User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't get colored blood to match custom palette

Post by Graf Zahl »

Well, this was never designed to adapt to different palettes.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Can't get colored blood to match custom palette

Post by Enjay »

As an aside:
Image
That's neat.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Can't get colored blood to match custom palette

Post by Nash »

Graf: Ah, that's too bad then. Oh well. I guess the only way is to make patches for WAD-specific blood colors.

Enjay: Thanks! it's a personal HUD mod. It'll be released some time this year (when I feel it's ready). :D

Image
Post Reply

Return to “General”