Author Topic: Can someone explain to me why MUGEN hates gradients?  (Read 421 times)

Offline Dr. House

  • Contributor
  • ****
  • Logic enables one to be wrong with authority!
    • View Profile
    • Renegade Mugen
Can someone explain to me why MUGEN hates gradients?
« on: November 19, 2009, 08:24:22 PM »
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?

Offline Cyanide

  • Global Moderator
  • ******
  • Sono meyo yakare nasai!
    • View Profile
    • Mugen Obscurity
Re: Can someone explain to me why MUGEN hates gradients?
« Reply #1 on: November 19, 2009, 11:06:07 PM »
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.

Offline Messatsu

  • MFG Network Member
  • ******
  • In after lock
    • View Profile
    • Messatsu's Whatever
Re: Can someone explain to me why MUGEN hates gradients?
« Reply #2 on: November 24, 2009, 01:46:21 AM »
Well maybe that partly explains why afterimages are gayed up. Hmm.


Many people risk their lives everyday by having Mugen.


Offline Frederika Bokkistel~

  • Contributor
  • ******
  • [E]
    • View Profile
    • Medley
Re: Can someone explain to me why MUGEN hates gradients?
« Reply #3 on: November 24, 2009, 09:07:26 AM »
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.

Offline Rednavi

  • Contributor
  • *****
  • ABSORBE MI POTENCIA!
    • View Profile
    • The usual host
Re: Can someone explain to me why MUGEN hates gradients?
« Reply #4 on: November 24, 2009, 04:20:57 PM »
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 :(

Offline Vegeta 20XX, KOF-ish Edition

  • Contributor
  • ****
  • Hadouken > Ho'oh Ken
    • View Profile
    • Vegeta 20XX's X-ISM
Re: Can someone explain to me why MUGEN hates gradients?
« Reply #5 on: November 25, 2009, 04:45:06 AM »
Well, doesn't mugen.cfg have a parameter for Mugen's displayed color limit?
Mugen Fighters Guild's resident Evangelion stalwart - available for a limited time at 20XXBurger (add cheese and dark hadou for a Euro more)


Does this rag smells like chloroform to you?


Quote from: Neo Geegus
The strong rule. The winners are just. That is my belief. Then again, I think that the Democrats can save America.


Online Cybaster

  • MFG Network Member
  • ******
  • [LoopStart] Testing, bashing, coding.
    • View Profile
    • Cybaster's Office
Re: Can someone explain to me why MUGEN hates gradients?
« Reply #6 on: November 25, 2009, 05:15:42 AM »
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.
go your with your bitch [...] fucking alladin motherfucker

I've played fighting games before, hell... my first fighting game was Super Smash Bros. Melee

If you allow a little modification to a PS2 emulator which allow it to run PS3 games, it's a new engine