999Hp

Villager
Member
Joined
Nov 26, 2018
Messages
18
Reaction score
1
First Language
FR
Primarily Uses
RMMV
Hi everybody,

It's been 2 days i've been searching around a solution for this problem but with no success...
Let me explain quickly : i created a sprite on photoshop with a resolution of 375x335 , 72DPI, RVB, transparent background.
In photoshop, the sprites looks really clean, even with a big zoom here's a screenshot :



But when i export the sprites as a PNG, in the game, or with any image viewer, the sprites looks a little blurry :



My questions is how can i export a Sprite a made it stay clean, not blur ?

Thanks to anyone taking the time to read these lines,

have a good day !
 

Attachments

  • upload_2018-12-17_14-38-9.png
    upload_2018-12-17_14-38-9.png
    380.9 KB · Views: 4

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,299
Reaction score
8,746
First Language
German
Primarily Uses
RMMV
1) any resizing will almost always result in a blur depending on the % factor of the resizing and the mathematical formula used for resizing or zooming. The reason why photoshop has a better quality is because of the massive research that Adobe placed into it - the pricetag of Photoshop has a good reason.

2) for better help around your specific problem, we need better data and you need to use the terms as they are common for the RPG-Makers, because what you have is not a sprite in our definition.
Where do you plan to use it and what do you use it for?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,968
Reaction score
14,818
First Language
English
Primarily Uses
RMVXA
Impossible unless you make your image the exact size of the screen or image view. All images get resized a little when opened with an image viewer, and that is what causes the blur.
 

999Hp

Villager
Member
Joined
Nov 26, 2018
Messages
18
Reaction score
1
First Language
FR
Primarily Uses
RMMV
Yes, my bad i forgot to precise what this sprite is for.
It's a battler/enemy for a sideview battle.
My game is in 1280x720 Fullscreen

any resizing will almost always result in a blur depending on the % factor of the resizing and the mathematical formula used for resizing or zooming.
i understand that, but i'm not resizing anything since i'm just exporting directly the clean enemy in the same resolution in png

All images get resized a little when opened with an image viewer, and that is what causes the blur.
allright, but why is it blurry when it is showed in the game ?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,299
Reaction score
8,746
First Language
German
Primarily Uses
RMMV
fullscreen IS resizing unless the game screen size is exactly the same as the monitor screen size.
 

Landazar

Veteran
Veteran
Joined
Feb 16, 2018
Messages
179
Reaction score
56
First Language
Polish
Primarily Uses
RMMV
I always use RGB mode for pngs with 72dpi and 8BIT and it's all ok.
Does other assets looks blurry too? if yes, then try this:

Put this as plugin in your project
Code:
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;
        return bitmap;
    } else {
        return this.loadEmptyBitmap();
    }
};

and paste this in index.html
Code:
<style type="text/css">canvas{image-rendering: pixelated;}</style>
 
Last edited:

Latest Threads

Latest Profile Posts

ready to fall into another development hell...
Mega has been giving me a lot of problems as of late, so I think I'll need to switch to another cloud service. I'm considering Dropbox.
Rough week, but in the end there's light in the darkness.
Mental health is an issue I wish was taken more seriously.
Take care.
1638421271905.jpeg
By the power of timezones! This picture shall still be posted on december 1st!!!
7xI2Gc2.jpg

This is not something I'd ever even considered but wow! What a way to use music in a game.

Forum statistics

Threads
117,125
Messages
1,104,769
Members
153,169
Latest member
StarkerKai
Top