YesNoOk
avatar

Can someone explain to me why MUGEN hates gradients? (Read 914 times)

Started by Nucka, November 20, 2009, 03:24:22 am
Share this topic:
Can someone explain to me why MUGEN hates gradients?
#1  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?
Re: Can someone explain to me why MUGEN hates gradients?
#2  November 20, 2009, 06:06:07 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
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.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Can someone explain to me why MUGEN hates gradients?
#3  November 24, 2009, 08:46:21 am
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
Well maybe that partly explains why afterimages are gayed up. Hmm.


Many people risk their lives everyday by having Mugen.
Re: Can someone explain to me why MUGEN hates gradients?
#4  November 24, 2009, 04:07:26 pm
  • ******
  • [E]
    • Mexico

  • Online
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.
Re: Can someone explain to me why MUGEN hates gradients?
#5  November 24, 2009, 11:20:57 pm
  • avatar
  • ******
  • Complicated.cns
    • Argentina
I had the same problem with my pause menu



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 :(
Re: Can someone explain to me why MUGEN hates gradients?
#6  November 25, 2009, 11:45:06 am
  • ****
  • Sunglasses Security Guy is watching you necrobump.
    • x-ism.co.cc/index.html
Well, doesn't mugen.cfg have a parameter for Mugen's displayed color limit?
Re: Can someone explain to me why MUGEN hates gradients?
#7  November 25, 2009, 12:15:42 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
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.