Can't get colored blood to match custom palette

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Can't get colored blood to match custom palette

Postby Nash » Wed Feb 17, 2021 11:53 pm

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
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

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

Postby Graf Zahl » Thu Feb 18, 2021 1:02 am

The translation is not palette-matched. You have to specify a translation that uses the actual colors in the palette.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Nash » Thu Feb 18, 2021 11:11 am

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

Code: Select allExpand view

actor aaa 
Cacodemon replaces Cacodemon
{
    
BloodColor "176:191=198:207"
}
 


I got this translation string from SLADE:

Image
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

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

Postby Enjay » Thu Feb 18, 2021 11:42 am

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
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

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

Postby Graf Zahl » Thu Feb 18, 2021 11:50 am

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Gez » Thu Feb 18, 2021 11:55 am

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?
Gez
 
 
 
Joined: 06 Jul 2007

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

Postby Nash » Thu Feb 18, 2021 12:13 pm

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



User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

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

Postby Graf Zahl » Thu Feb 18, 2021 2:39 pm

Well, this was never designed to adapt to different palettes.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Enjay » Thu Feb 18, 2021 3:57 pm

As an aside:
Image
That's neat.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

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

Postby Nash » Thu Feb 18, 2021 4:19 pm

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
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes


Return to General

Who is online

Users browsing this forum: No registered users and 4 guests