Resolution Stretch Causes Peculiar Blur.

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
I just recently started moving my project on MV from Ace. While still using Ace, I utilized a script that allowed me to double the size of my game window and stretch the 544x416 screen to fit it.


After using Shaz's plugin to resize my tiles to the classic 32x32, I tried tinkering with the boxwidth/height and screenwidth/height values. The result resembles closely what I had on Ace, but it's noticeably more blurry.
 




I tried using different resolutions, that would be common multipliers of 32 and 48, but nothing really worked.

Any ideas?
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Try adding:


<style type="text/css">
CANVAS{image-rendering: pixelated;}
</style>


in the index.html file of your project.


(Place it within the <HTML></HTML> tags)


I use it and it works.


Got it from:
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
@SumRndmDde Thank you, it's better, but I still cannot get the original crispness that I had from Ace.
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Did you see the solution thing in the forum post I pasted?


I think there was also something about using a quick plugin:


ImageManager.loadBitmap = function(folder, filename, hue, smooth) {
if (filename) {
var path = folder + encodeURIComponent(filename) + '.png';
var bitmap = this.loadNormalBitmap(path, hue || 0);
bitmap.smooth = false; //Smooth is always false (might fix bluryness...?)
return bitmap;
} else {
return this.loadEmptyBitmap();
}
};




That would set it so bitmaps loaded will always have smooth turned off. I haven't trued it myself, but that might work also.
 
Last edited by a moderator:

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
@SumRndmDde I did check that out too, at some point. Didn't do much. I have to put the js file in the plugin folder, right?
 
Last edited by a moderator:

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Yeah, just stick it in a .js file and install it into the project.
 

KaYsEr

Koruldia
Veteran
Joined
Mar 14, 2014
Messages
266
Reaction score
482
First Language
French
Primarily Uses
RMMV
@SumRndmDde Do you think it would be possible to have an option to toggle this "bilinear filtering" OFF/ON directly from the Option Menu like in the FULLSCREEN plugin you did?


Thank you for that one, this is how it should be done, giving the choice to the player.


(I discovered your channel last week and had a video-marathon!... really great stuff.)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top