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,084
Reaction score
632
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
23
Reaction score
3
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,582
Reaction score
1,960
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,796
Reaction score
1,706
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
23
Reaction score
3
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,084
Reaction score
632
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

Feeling cute, might make an essay on the presence of Malaise in the gaming industry. idk
Just went to Metrocon here in Tampa Florida. My first anime convention. They had an anime chess battle and some funny impromtu comedy. The comedy was my favorite part. How is everyone?
I'm thinking about opening a "game in development" thread, though i'm not entirely sure yet. It's still really early in development, and most i have to show are assets or really chaotic map WIPs. There is a lot of story +the world itself though, and i struggle with converting all of my notes into readable text, and a thread might help...?
I see a button in a game, I press it. Cannot resist the temptation even if I know it's a trap.

Forum statistics

Threads
113,591
Messages
1,076,067
Members
147,588
Latest member
daldantas
Top