ironwail icon indicating copy to clipboard operation
ironwail copied to clipboard

[Bug}Question regarding the Colormap.lmp

Open theptoing opened this issue 2 years ago • 2 comments

I really love the software emulation in Ironwail since I think it gives the game a nicer look in most cases, esp oldschool maps.

color bug

If you look at this image you can see those red pixels. They tend to happen around colours from the copper palette ramp. So I was guessing that you do not reference the colormap.lmp at all.

I was wondering if there would be some kind of way to do this, which would fix colormap inconsistencies as well as allowing modders to make their own colormaps for their own palettes as they like. I also think that Malice and YPOD has custom colormaps, but I am not 100% about that, they did have customised palettes however.

theptoing avatar May 14 '22 21:05 theptoing

I was able to clear this up without harming the appearance of the rest of the palettization by adjusting the power function in palette_init_compute_shader and scaling other values to maintain continuity:

mix(v / 6.276, pow((v + 0.055) / 1.055, vec3(2.1)), greaterThan(v, vec3(0.04)));

This gives a result that's still very close to the current look but is more conformant in the highlights. (It's technically no longer the sRGB curve, but it doesn't really need to be for this purpose.)

ironwail0003

itslunaranyo avatar May 19 '22 23:05 itslunaranyo