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
1,103
Reaction score
640
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
28
Reaction score
4
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,612
Reaction score
1,993
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,803
Reaction score
1,713
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
28
Reaction score
4
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
1,103
Reaction score
640
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

would i get in trouble if i didn't take out the computer icons on my fake computer screen i had Discord, Messanger, and rpg maker up
Auto-Adjust Text Outline, Run Common Events on Transfer | RPG Maker News #111

I sweep the floor. My brother, "You didn't do a good job. There are dust bunnies everywhere." He sweeps the floor weeks later. "I just swept. Why are there dust bunnies everywhere?" Me," Guess you didn't do a good enough job."
Today, I tortured my internet by downloading 20 files at once and then I played a guessing game as to which would finish their download first :kaojoy:
Oh god, just watched HawkZombie's stream of my game and realised that *none* of the branching scenes work properly. One has no character graphic, one soft locks due to a passability issue, and one doesn't have its autorun set to the right trigger. I've got first prize in the bag, baby.

Forum statistics

Threads
113,791
Messages
1,077,504
Members
147,835
Latest member
Shadow1818
Top