BNF

Warper
Member
Joined
Aug 27, 2020
Messages
1
Reaction score
0
First Language
Polish
Primarily Uses
RMMZ
Hi, I've made simple plugin, that's allow user to control separately, both window size and in-game resolution (just like many MV plugins but now in MZ) everything works fine, but after upscaling game resolution to fill the window, the game looks kinda blurry sadly.

I managed to fix it using a Visustella Core plugin for MZ, where I choose Pixel Image Rendering. But I don't want to use this plugin just to remove blur. Sadly, this plugin is encrypted so I can't check how they remove blur...

So... if someone please be so kind and explain me how to remove this blur? :/
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
972
Reaction score
566
First Language
Poland
Primarily Uses
RMMV
You can try other thing, open file gamefont.css in font directory of your project and paste it:
Code:
canvas{
  image-rendering: pixelated;
}

I don't know differences between plugin and this method to remove blur, but I'm very happy with the result just editing css file.
 

ulosbal

Shamach
Member
Joined
Sep 4, 2018
Messages
16
Reaction score
2
First Language
french
Primarily Uses
RMMV
Very cool! Thank you! do you know how to remove blur when entering menus?
I know in mv it was necessary to enter and edit the file "rpg_managers" in the js folder at the line: SceneManager.snapForBackground (I believe)

but that has changed in mz
 
Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,256
Reaction score
1,663
First Language
EN
Primarily Uses
RMMZ
I think this'll remove the blur filter from MZ's menu backgrounds:
JavaScript:
(alias => {
    Scene_MenuBase.prototype.createBackground = function() {
        alias.apply(this, arguments);
        this._backgroundSprite.filters.shift();     // remove first filter (blur)
    };
})(Scene_MenuBase.prototype.createBackground);
You can probably apply Soulrender's CSS edit via plugin, too, if you like, e.g.
JavaScript:
document.styleSheets[0].insertRule('canvas{ image-rendering: pixelated; }');
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,648
Reaction score
1,557
First Language
English
Primarily Uses
RMMV
You can try other thing, open file gamefont.css in font directory of your project and paste it:
Code:
canvas{
  image-rendering: pixelated;
}

I don't know differences between plugin and this method to remove blur, but I'm very happy with the result just editing css file.
In most cases, that's probably fine, but if you host it on a page that has other elements present, you run the risk of that rule affecting any other canvas elements that might exist on the page as well. While I haven't tested it personally, you should be able to target the game canvas specifically like this:

Code:
#gameCanvas {
image-rendering: pixelated;
}
 

ulosbal

Shamach
Member
Joined
Sep 4, 2018
Messages
16
Reaction score
2
First Language
french
Primarily Uses
RMMV
caethyril, I failed to get your code to work,

I placed this line 2217, following the SceneManager (rmmz_manager.js file):

(alias => {
Scene_MenuBase.prototype.createBackground = function () {
alias.apply (this, arguments);
this._backgroundSprite.filters.shift ();
};
}) (Scene_MenuBase.prototype.createBackground);

it says: Scene_MenuBase is not defined
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
972
Reaction score
566
First Language
Poland
Primarily Uses
RMMV
@ulosbal - you must save this code as plugin and place it in plugin manager.
 

Latest Threads

Latest Posts

Latest Profile Posts

The light has gone out of my life.

About time they finally press the kill switch button for older makers.
Sorry everyone, I am here sporadically. After 6 years of delays after delays in my life, I try to do all mat once and that means that I spread thin everywhere because it just is impossible to crunch 6 years in one or even two, but I try! I wish many of that I would already given you and put behind but... well...
I'm looking for an experienced gamer who has played a few games created with RPG Maker, who knows what an alpha build is, who may remember the old days when cliché was the favorite word on Creation Asylum, who, if a reviewer, would ask for my permission before making a review to post on YouTube, or whatever, since I will be messaging you a 10 minute, or so, DEMO based on an alpha build of Effervesce Fallacy™.
No matter how many times I listen to him, I know this is Joker speaking, but my brain can only hear Dagda.

Forum statistics

Threads
108,821
Messages
1,039,825
Members
141,283
Latest member
sphynxcatsforsale
Top