ikemen-engine / Ikemen-GO

An open-source fighting game engine that supports MUGEN resources.
https://ikemen-engine.github.io
Other
729 stars 125 forks source link

PNG sprites rendering issues #205

Open MUGEN-Slayer opened 3 years ago

MUGEN-Slayer commented 3 years ago

Png sprites are slightly blurred, even if you don't use a scale. For example, "demo mode" elements from lifebar.

In Photoshop 00

In-game 01

Zoomed PS 02

In-game 03

It is also not possible to use all palfx in png sprites from lifebars.

Windblade-GR01 commented 3 years ago

Mmm.... maybe is how we do filtering on OpenGL. If you disable PngSpriteFilter it does look the same as MUGEN?

MUGEN-Slayer commented 3 years ago

Mmm.... maybe is how we do filtering on OpenGL. If you disable PngSpriteFilter it does look the same as MUGEN?

Pretty much. Although the sprite is 1 pixel wider horizontally. Ideally, the filter would come into play only when sprites are scaled and for stage zoom/parallax.

theMadness commented 3 years ago

Sounds like the sprite is rendered with the wrong width, when the filter kicks in, it blurs the image, when it's off, you see the off-by-1 issue.