Disabling pixel blur during full screen? [SOLVED]

Hey everyone! This thread has been incredibly helpful, so I would like to sort of hijack this post to make a little tutorial for people that find themselves in the same predicament I was in! This tutorial will be written as if you're entirely brand new to the software, so hopefully you'll be able to easily follow along no matter your skill level!

This tutorial is for people that wish for their games made in RPG Maker MZ to be fullscreened, and therefor need a way to disable the blur that comes inherently with the process of upscaling such a (presumably) tiny window.

What you need:
  • VizuStella MZ Core - As well as all kinds of additional features, This plugin contains a setting that will allow sprites to be rendered sharply (for those familiar with image manipulation, it would essentially set the aliasing to "nearest-neighbor"), which of course is exactly what you want in a game full of pixel art! The download is for an entire sample scene, which contains not only the core but also a few other plug-ins that you might take interest in that I won't go into detail with here.
  • That's it!
What to do:

Now that you have the sample scene downloaded, why not give it a playtest? It's always nice to get familiar with the tools at your disposal. Don't worry, I'll wait!

Are you ready to continue? Awesome! Open up that project folder and find those plugins you want to use in your game (should be under ...\VisuMZ_Sample_Game_Project\js\plugins) and drop them into the same folder of your own project!
Spoiler: The Fabled "Plugin Zone"
PbhcJvj.png

But of course, the plugins aren't automatically activated just because we put those files in the folder, so let's open up the Plugin Manager.
Spoiler: Lookin' kinda barren, eh?
LWyYq1T.png
Go ahead and double-click one of those rows and another window will appear.
Spoiler: Why am I hearing Inception music?
2TOYt9I.png
In the top-left you'll see the word "name," and directly below it, a button! Click it, and yet another window will appear.
Spoiler: The bottom of the rabbit hole!
s49BBMM.png
Now listen up because this part is important! Always make sure that the "core" plugin is at the top of the list of activated plugins when you're working with plugin packs like VisuStella MZ. Just so we're clear, that's the list you saw when you first opened the Plugin Manager. It's usually okay to have unrelated plugins above the core, but do so at your own discretion. In the case of this pack, you'll notice that the names have numbers on them. That will help you determine the order it should be within the list. The higher the number, the lower in the list it should go!
Now then, since this is the plugin we need for this tutorial, go ahead and select "VisuMZ_0_CoreEngine" and click OK! The window will close, and you'll notice the previous window is looking a bit different.
Spoiler: It's not as scary as it looks, I swear!
gy3PBi3.png
For the sake of this tutorial, let's not worry about any of this new stuff except for one thing: the Quality of Life settings. You'll find that bad boy just under "Parameters" in the top right. Once you find it, double-click that sucker!
Spoiler: Almost done!
lJAnBe7.png
Not quite so intimidating, right? Go ahead and scroll all the way down to the bottom, and look for a line that says "Pixel Image Rendering". Much like his father before him, so too shall this button suffer the fate of ferocious double-clicking.
Spoiler: The Grand Finale!
FSRYsQA.png
Oh man... I actually have no idea what to do here. There's so many options to choose from... You might have to figure this part out on your own...

After all that nonsense (mostly of my own creation), make sure you click OK on each of the plugin-related windows and you'll be done! Easy right? Feel free to repeat these steps for any of the other plugins you picked out! Once you're done, your Plugin Manager window might look a little like this!
Spoiler: Welcome to your new home, little buddies!
UIoKKGp.png
Give your game a playtest and hit F4 to fullscreen! If it's still blurry, it might be due to one of two possibilities:
  1. Make sure your window is a resolution of some kind of multiple of 2. If it isn't, the pixels are gonna scale all funky and nobody wants that. Two resolutions that I like are 640x360 and 960x540, both of which are 16:9 so it fills my 1920x1080 monitor nicely!
  2. Similarly, make sure your character sprite resolution is a multiple of 2 as well! The built in Character Generator automatically builds the characters with a resolution of 48x48 so this point might seem like a no-brainer, but if you're like me and you're making your own sprites from scratch, it might be pretty easy to goof up the resolution. I myself accidentally had the resolution set as 45x45 which obviously isn't ideal.
And that's that! I hope you liked this tutorial and/or saved you from the same painful stints of Google searching I did trying to figure out how to do all this junk. If you did, be sure to like, comment and subscribe! You can do that here, right? No?

Hm.

You know what? Here you go.
6Z3dnVv.png

It doesn't do anything, but I mean, it's there I guess. That's gotta count for something, right?

Spoiler: Original Post
So here's the deal. I wanna make it so when I fullscreen my game, the program doesn't automatically add blur to the edges of the pixels from the upscaling. I've found several different threads about this but they're all for MV and below which of course isn't quite what I need. If anyone has any advice on how to solve this problem, please let me know!

Here's a visual example of what I'm talking about.

PS I'm very new to posting to forums in general so I apologize if I did something incorrectly with this post!
I don't have the answer to your question, but just wanted to recommend for the most part using default font color. That lighter color doesn't work well with the lighter themes.

Spoiler
1607834343200.png
I don't have the answer to your question, but just wanted to recommend for the most part using default font color. That lighter color doesn't work well with the lighter themes.

that was actually on purpose since I wanted to make it clear that it wasn't important to the actual post, sorry for the trouble though!
@sketchycosmos Idk if this works the same for MZ, but for MV all you need to do is add this line of code to your index.html file:
<style type="text/css"> CANVAS{image-rendering:pixelated;}</style>
Which should go right below this line:
<body style="background-color: black">
Here's what mine looks like in full:
Spoiler: index.html
HTML:
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="viewport" content="user-scalable=no">
        <link rel="icon" href="icon/icon.png" type="image/png">
        <link rel="apple-touch-icon" href="icon/icon.png">
        <link rel="stylesheet" type="text/css" href="fonts/gamefont.css">
        <title>Blades of Twilight</title>
    </head>
    <body style="background-color: black">
        <style type="text/css"> CANVAS{image-rendering:pixelated;}</style>
        <script type="text/javascript" src="js/libs/pixi.js"></script>
        <script type="text/javascript" src="js/libs/pixi-tilemap.js"></script>
        <script type="text/javascript" src="js/libs/pixi-picture.js"></script>
        <script type="text/javascript" src="js/libs/fpsmeter.js"></script>
        <script type="text/javascript" src="js/libs/lz-string.js"></script>
        <script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
        <script type="text/javascript" src="js/rpg_core.js"></script>
        <script type="text/javascript" src="js/rpg_managers.js"></script>
        <script type="text/javascript" src="js/rpg_objects.js"></script>
        <script type="text/javascript" src="js/rpg_scenes.js"></script>
        <script type="text/javascript" src="js/rpg_sprites.js"></script>
        <script type="text/javascript" src="js/rpg_windows.js"></script>
        <script type="text/javascript" src="js/plugins.js"></script>
        <script type="text/javascript" src="js/main.js"></script>
    </body>
</html>
Go ahead and give it a shot, let us know if it works for MZ. 😛
@sketchycosmos Idk if this works the same for MZ, but for MV all you need to do is add this line of code to your index.html file:
<style type="text/css"> CANVAS{image-rendering:pixelated;}</style>
Which should go right below this line:
<body style="background-color: black">
Here's what mine looks like in full:
Spoiler: index.html
HTML:
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="viewport" content="user-scalable=no">
        <link rel="icon" href="icon/icon.png" type="image/png">
        <link rel="apple-touch-icon" href="icon/icon.png">
        <link rel="stylesheet" type="text/css" href="fonts/gamefont.css">
        <title>Blades of Twilight</title>
    </head>
    <body style="background-color: black">
        <style type="text/css"> CANVAS{image-rendering:pixelated;}</style>
        <script type="text/javascript" src="js/libs/pixi.js"></script>
        <script type="text/javascript" src="js/libs/pixi-tilemap.js"></script>
        <script type="text/javascript" src="js/libs/pixi-picture.js"></script>
        <script type="text/javascript" src="js/libs/fpsmeter.js"></script>
        <script type="text/javascript" src="js/libs/lz-string.js"></script>
        <script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
        <script type="text/javascript" src="js/rpg_core.js"></script>
        <script type="text/javascript" src="js/rpg_managers.js"></script>
        <script type="text/javascript" src="js/rpg_objects.js"></script>
        <script type="text/javascript" src="js/rpg_scenes.js"></script>
        <script type="text/javascript" src="js/rpg_sprites.js"></script>
        <script type="text/javascript" src="js/rpg_windows.js"></script>
        <script type="text/javascript" src="js/plugins.js"></script>
        <script type="text/javascript" src="js/main.js"></script>
    </body>
</html>
Go ahead and give it a shot, let us know if it works for MZ. 😛

alright so that's almost what I'm looking for, but there's now a new kind of blurriness where it's added some sort of strange in-between pixels.
2Je89tw.png

is there an alternate term I could put in that line of code you gave me, so instead of
<style type="text/css"> CANVAS{image-rendering:pixelated;}</style>
it's something like this?
<style type="text/css"> CANVAS{image-rendering:nearest-neighbor;}</style>

I appreciate the recommendation. I definitely feel like we're getting close here!
alright so that's almost what I'm looking for, but there's now a new kind of blurriness where it's added some sort of strange in-between pixels.
That is actually not blur, but rather its attempt at scaling an image up to something that's not a multiple of 2. In fact, the code I post effectively disables all blur of any kind. What you are seeing is what happens when you try to stretch something to anything besides 100%, 200%, 300%, etc...

What resolution is your game running btw? And what is your monitor's resolution?
For example, my game uses 960x540 resolution because it doubles perfectly to 1920x1080 when I fullscreen. Ofc, a monitor w/ a different resolution would experience something similar to what you're seeing. One possible solution is to use "Real Scale", which is a feature present in Yanfly's Core plugin, so it may also be present in VisuStella's Core as well. Real Scale effectively locks stretching to a multiple of 2 while maintaining the original aspect ratio.

This is the plugin option I'm referring to (in MV):
Maybe there's something similar in MZ (VisuStella)?
1607842276575.png
That is actually not blur, but rather its attempt at scaling an image up to something that's not a multiple of 2. In fact, the code I post effectively disables all blur of any kind. What you are seeing is what happens when you try to stretch something to anything besides 100%, 200%, 300%, etc...

What resolution is your game running btw? And what is your monitor's resolution?
For example, my game uses 960x540 resolution because it doubles perfectly to 1920x1080 when I fullscreen. Ofc, a monitor w/ a different resolution would experience something similar to what you're seeing. One possible solution is to use "Real Scale", which is a feature present in Yanfly's Core plugin, so it may also be present in VisuStella's Core as well. Real Scale effectively locks stretching to a multiple of 2 while maintaining the original aspect ratio.

EDIT: woops, just saw your edit, ignore everything I'm saying here lol

I am running the game at 640x480, stretching it to a resolution of 1920x1080. If the issue is that it's scaling to something other than a multiple of two, would that not be a problem for people with different monitor resolutions even if this were to be solved on my end? If so that would be kinda unfortunate.
I am running the game at 640x480, stretching it to a resolution of 1920x1080. If the issue is that it's scaling to something other than a multiple of two, would that not be a problem for people with different monitor resolutions even if this were to be solved on my end? If so that would be kinda unfortunate.
Yep, that's why I enabled the Real Scale option, so the game resolution is forced into a multiple that won't result in distortions. It's hard to explain, but you'll know what I mean once you enable it and try resizing the window size manually (by tugging on the corner of the game window).

Btw, your horizontal resolution is fine, since it triples to 1920 perfectly. However, your vertical resolution is the issue. 1080 is 2.25x the size of 480, so maybe try a resolution of 640x360 instead, or 960x540 like mine.
Yep, that's why I enabled the Real Scale option, so the game resolution is forced into a multiple that won't result in distortions. It's hard to explain, but you'll know what I mean once you enable it and try resizing the window size manually (by tugging on the corner of the game window).

Btw, your horizontal resolution is fine, since it triples to 1920 perfectly. However, your vertical resolution is the issue. 1080 is 2.25x the size of 480, so maybe try a resolution of 640x360 instead, or 960x540 like mine.

So I tried setting the game at 960x540, as well as adding that core plugin you mentioned. I found this, but it looks like it just does the same as the html tweak you had already mentioned. All together, even with the resolution change, it still seems to be doing that effect. Not really sure what's going on.
Oh, that's cool how they included that into the plugin for MZ, good to know. What did it look like at 640x360?

Edit: Btw, I noticed in this screenshot...
1607845075104.png

The hair is semi-transparent on the edges, it it like that on the actual sprite?
Still the same. Seems like whatever the issue is doesn't actually have to do with the resolution per se, but instead the fact that it's being scaled at all. I am officially perplexed.

Oh, that's cool how they included that into the plugin for MZ, good to know. What did it look like at 640x360?

Edit: Btw, I noticed in this screenshot...
View attachment 171214
The hair is semi-transparent on the edges, it it like that on the actual sprite?

(please ignore me forgetting to click the reply button with that last post)

no, that's not there in the original sprite, that's the issue I'm trying to figure out lol
this is how it's supposed to look:
7LbTbhx.png
Ok, that is definitely not a resolution issue. And you're saying it shows up even at native resolution? As in not fullscreen or anything.
Ok, that is definitely not a resolution issue. And you're saying it shows up even at native resolution? As in not fullscreen or anything.

oh no, when it's not fullscreen it looks perfectly fine lol
It's just that no matter the resolution I set it to, it still shows up when it is fullscreened.

Thank you for trying to help me with this, by the way. I really appreciate it!
Hi, don't know if this is useful information, but while working on my project, I ran into an issue where some of my images were being rendered kinda blurry. Anyway, I learned that I should make sure the image I was displaying was also a multiple of 2, then it looks as it should. Maybe you could try that if you haven't.
Hi, don't know if this is useful information, but while working on my project, I ran into an issue where some of my images were being rendered kinda blurry. Anyway, I learned that I should make sure the image I was displaying was also a multiple of 2, then it looks as it should. Maybe you could try that if you haven't.

That's a really good idea actually! It's gonna take a bit to test it out (hard drive died, gotta recover what I can from pictures I sent to my friends. good thing I haven't actually done anything other than make that character yet lol) but I'll let you know what happens as soon as I can!

Hi, don't know if this is useful information, but while working on my project, I ran into an issue where some of my images were being rendered kinda blurry. Anyway, I learned that I should make sure the image I was displaying was also a multiple of 2, then it looks as it should. Maybe you could try that if you haven't.

IT WORKED!!!
DH7jf3e.png

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/disabling-pixel-blur-during-full-screen-solved.130917/