DavidUchina

Villager
Member
Joined
Oct 23, 2021
Messages
6
Reaction score
3
First Language
Romanian
Primarily Uses
RMMV
1635204226388.png

I used Galenmereth's pixel perfect plug-in, but the fonts still have a bit of blur to them.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,341
Reaction score
8,762
First Language
German
Primarily Uses
RMMV
Basically don't zoom and don't go fullscreen?

OK, joking aside - the problem is basically that what most people call blur isn't a true blur at all, but mixed color pixels between the true pixels. Because a true blur would involve moving pixels.
This blur is an artefact of the distortion needed whenever a zoom is not an exact full size-up. You can have pixel-perfect results on 200%, 300%, 400% and so on - but never if you have something like 133% zoom etc.

As soon as you have a zoom that is not a true multiple number of pixels, you can only choose which distortion you want to have (either blurring or geometric distortions based on the formulae used).

Just imagine - you have a 2-pixel picture of one black and one white pixel, and want to give it a 150% zoom. You now have three pixels. left one is black, right one is white - but which color do you assign the new middle pixel? The grey of mixed color is what you see as blur, but if you give black then the divider is still crisp but no longer in the middle of the picture.
And there is no perfect solution for that - geometric distortions often make the letters difficult to read even if it maintains perfect pixelation on pixel-based pictures (while photorealistic pictures look better with color mixing and so on)

You can probably find a font that handles zooming better, or ask for a custom plugin that uses different mathematics for different types of screen and so on, but there will never be a perfect solution and some time you have to decide if your time is worth looking further for minor improvements.
The solution above already looks like one of the better compromises.
 

DavidUchina

Villager
Member
Joined
Oct 23, 2021
Messages
6
Reaction score
3
First Language
Romanian
Primarily Uses
RMMV
Ohh, that makes sense, thank's a lot, I will just make the resolution a rounder number so it upscalese perfectly
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,979
Reaction score
2,303
First Language
EN
Primarily Uses
RMMZ
I believe it may also be due to font rasterisation, i.e. rendering vector font data to a bitmap canvas. For a system-independent solution, I suggest using a plugin for "bitmap fonts", i.e. something that will let you treat each letter exactly like any other image in the game.
I did some reading and it seems the blurring can be caused by various things, including:
  1. Non-integer render coordinates for the text on the target canvas;
  2. The browser's conversion of TrueType (i.e. vector) font data to pixel/shader data;
  3. System/application display scaling.
The usual solutions seem to be to:
  • Pre-rasterise the fonts, e.g. "bitmap fonts", or
  • Apply some kind of post-processing, e.g. sharpen and/or scale down.
I think pre-rasterisation is the best option here: as I understand it, font rasterisation is CPU-heavy, but bitmaps can almost be fed directly to the GPU.
Related:
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,341
Reaction score
8,762
First Language
German
Primarily Uses
RMMV
I will just make the resolution a rounder number so it upscalese perfectly
and that has other problems - different people have different monitor sizes, sometimes even with different aspect rations (4:3, 16:9, 16:10 etc).
You can get fullscreen perfect for one monitor, only to have the picture distorted on different monitor sizes.
 

Latest Threads

Latest Posts

Latest Profile Posts

DavidUchina wrote on caethyril's profile.
You chad, thanks a lot for your plugins. You helped me costumize the buttons in my game.
I created the first teaser for my game! I decided to make an animation of Cabaret Helen advertising the Pizza Time Theater, set to an actual radio commercial. But this is no ordinary advertisement...
"Somber melody and stunning visuals takes one through the bittersweet tale of False Rebirth" ~ Marmalade
https://rpgmaker.net/games/12069/reviews/7576/

Got a first review on my game, on RPG Maker dot net. :kaothx:
Nightmare... Dreamt I posted a GFX resource post. With a work in progress glove icon that tinted to different colors. In the wrong forum. And I was in such a panic. I saw people writing posts in response, those "..." you see in discord and such. So I frantically tried to report my post as wrong forum, editing to say it's the wrong forum and that I "accidentally" posted it too early... Very odd dream to be honest...
The youngest photo of you is also the oldest photo of you.

Forum statistics

Threads
117,213
Messages
1,105,524
Members
153,355
Latest member
Twistedsoulx
Top