The Mugen Fighters Guild

M.U.G.E.N Central => M.U.G.E.N Discussion => Topic started by: Nucka on November 20, 2009, 03:24:22 am

Title: Can someone explain to me why MUGEN hates gradients?
Post by: Nucka on November 20, 2009, 03:24:22 am
A 255 color, indexed sprite of a cloudy night-sky looks fine, but once you load that sprite into MUGEN it looks like a 20 color image.
Why does that happen?

What is MUGEN doing to recognize a fade differently from everything else?
Title: Re: Can someone explain to me why MUGEN hates gradients?
Post by: Cyanide on November 20, 2009, 06:06:07 am
Mugen's ability to draw colours is a little limited. Mentioned on elecbyte forums and i don't remember all the detail but i think it's limited to 16bit colour depth. A gradient kills that, and it's colour count is reduced by the graphics engine to display all the other stuff as well. Or something along those lines.

Unsure what happens to a gradient if it's ALL you have on screen.
Title: Re: Can someone explain to me why MUGEN hates gradients?
Post by: Messatsu on November 24, 2009, 08:46:21 am
Well maybe that partly explains why afterimages are gayed up. Hmm.
Title: Re: Can someone explain to me why MUGEN hates gradients?
Post by: Bastard Mami on November 24, 2009, 04:07:26 pm
think of it as the screen having a 16bits palette that can't be modified; so even if you load an image that is 2 colors, those colors won't be rendered properly if they are not in mugen's 16bit palette. Normally you can't notice such a small cahgne in colors, but in the case of gradients, it can fuck them up really bad.
Title: Re: Can someone explain to me why MUGEN hates gradients?
Post by: rednavi -RETIRED on November 24, 2009, 11:20:57 pm
I had the same problem with my pause menu

(http://i93.photobucket.com/albums/l73/rednavi/KOF%20NC/mugen6-3.png)

check the gradients in the inner part of the bottom and top bars. They are dark gradients but still have problems.

However I found that the problem is HIGHLY visible when you're using low gamma configuration on the screen, if you use a normal gamma (default) the problem is less noticable...

too bad I like my low gamma config :(
Title: Re: Can someone explain to me why MUGEN hates gradients?
Post by: The Railgunner on November 25, 2009, 11:45:06 am
Well, doesn't mugen.cfg have a parameter for Mugen's displayed color limit?
Title: Re: Can someone explain to me why MUGEN hates gradients?
Post by: Cybaster on November 25, 2009, 12:15:42 pm
Yes, it's the Depth parameter. You can set it to 16, 24 or 32, but it's an incomplete feature, hence Mugen will always display in 16 bits.