Fuzzy images?

Post questions on how to use or achieve an effect in Inkscape.
joonexcell
Posts: 3
Joined: Mon Mar 16, 2015 4:27 pm

Fuzzy images?

Postby joonexcell » Mon Mar 16, 2015 4:33 pm

Hi There, I am new to inkscape, and I love it ! However, I have a problem exporting sprite sheets.

Here is an image of what I have : http://prntscr.com/6he2ay

When I export them they kinda look fuzzy/blurry a little without zoomed, and mostly zoomed.

When I also import them to gamemaker studio, its also quite blury inside the game

http://prntscr.com/6he2pr

I do have interpolate unchecked !

please help D:

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Fuzzy images?

Postby brynn » Mon Mar 16, 2015 5:24 pm

If you mean export to PNG (or any raster format), it should be no surprise that they are fuzzy when zoomed.

Is your 2nd screenshot at 100%? Or was the PNG zoomed or scaled at all, before putting it in the game?

Interpolate? Ok, which format are you exporting to? There's no interpolate option in the Export PNG dialog.

joonexcell
Posts: 3
Joined: Mon Mar 16, 2015 4:27 pm

Re: Fuzzy images?

Postby joonexcell » Mon Mar 16, 2015 6:13 pm

brynn wrote:If you mean export to PNG (or any raster format), it should be no surprise that they are fuzzy when zoomed.

Is your 2nd screenshot at 100%? Or was the PNG zoomed or scaled at all, before putting it in the game?

Interpolate? Ok, which format are you exporting to? There's no interpolate option in the Export PNG dialog.


It's at 100%, the interpolate option I meant was inside of gamemaker studio.

it's being exported as a png file.

Is there any tips or suggestions on creating sprites or even sprite sheets , without making them fuzzy?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Fuzzy images?

Postby Lazur » Mon Mar 16, 2015 10:43 pm

Maybe the answer is here?


few tags
blocky, optimize, speed, alias, anti-aliased, blurry, blurriness, raster, bitmap, export, import, border, cairo, downscaling, render,

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Fuzzy images?

Postby hulf2012 » Tue Mar 17, 2015 12:38 am

Hello,

What i notice in your first screenshot is that you put "pixels at 0.16 dpi", which it's not the normal value. 90 dpi it's the "by default" value. When some users want the designs get print in a big size media, they put them to a higuer value (from 150-600 dpi or even more). I also notice that you have your project in mm units. Why use them if it's going to be for a game?. It's better to use pixels there.

I had to say that in my case, it's not easy to control the antialiasing or blurriness of an Inkscape design exported to raster (png). As mentioned in the Lazur's linked topic at some part of it, it's recomended to position your design at round pixel units, with integer values.

About how to set up your document, and exporting options, it's allways recomended:
the Inkscape Guide

Related with spriteshee making:
Synfig (http://www.synfig.org/cms/) has interesting features for exporting your design to a PNG spritesheet, or as gif format, or as a group of png frames. Inkscape 0.91 has now an option to export to synfig (but some features, like text may get lost).

The "bad" notice is, at first takes time to learn it. And the project it's still on development... the User Interface is ... :roll: ...
However I've been using it, and it has saved me many times.

Other "weapon" is blender... But it must be one of the aplications that has more buttons for square pixel :D
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

joonexcell
Posts: 3
Joined: Mon Mar 16, 2015 4:27 pm

Re: Fuzzy images?

Postby joonexcell » Tue Mar 17, 2015 1:01 am

Nevermind !!! I fixed it :D

Thanks for replying though !

arkalain
Posts: 1
Joined: Wed Aug 12, 2015 12:59 pm

Re: Fuzzy images?

Postby arkalain » Wed Aug 12, 2015 1:00 pm

Would you mind mentioning how you solved your problem?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Fuzzy images?

Postby brynn » Wed Aug 12, 2015 4:21 pm

You might try http://2dgameartguru.com/. Making game art is what he does, and I think he might even have tutorials for making sprite sheets. Actually I think he either just finished, or is just about to finish a series of tutorials where he makes a game from start to finish!

Hhmm, actually the screenshot in the op looks just like one of his characters.... Hhm, I can't seem to find it, but that "knight in shing armor"" looks familiar, for some reason.

Logicoma
Posts: 2
Joined: Mon Jul 25, 2016 6:50 am

Re: Fuzzy images?

Postby Logicoma » Mon Jul 25, 2016 7:14 am

Req: 0.48.5 or 0.91

Long story short, upgrade to 0.91 which provides import rendering mode.
Use Blocky rendering for best aliasing option on import.

I discovered this in my project as a source problem:
My specified document size is odd, 25x25 pixels.
If you center align your work, the position is a real number, a decimal.
Immediately within your work, you will notice vector aliasing on straight lines and even-sized work.
You have to position your work with whole integers, otherwise you risk this.
How stupid do I feel? I am wondering whether fractional precision is even useful, but this is a downfall I have to be aware of.

Also, remember that Stroke, Fill, and Filters are not quality vectorized properties exportable into production work.
This is why pros will tediously turn everything into vector objects, raster filters on the final render only. Yes, you turn lines and fonts into objects in order to maintain quality thickness and precision without rasterization or atrocious aliasing.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Fuzzy images?

Postby v1nce » Mon Jul 25, 2016 10:04 pm

In fact this is the opposite. if your shape got a 1px (or any uneven size) stroke then your points should be aligned not on a round pixel but on a x.5 pixel. Why that ? Because the strokes in svg are drawn 50% inside the shape and 50% outside (in svg 2 you will be able to draw the stroke fully inside or fully outside). So if you draw a rect filled in blue with black strike starting at 10,10 over a white background then it will draw a grey line (50% white + 50% black) at 9[=>10] and a dark blue line (50% black + 50% blue) at 10[=>11]. If you draw it at 10.5 then the background will be white at 9 (till 10) there will be a black line at 10 (till 11) and a blue background at 11.
One solution could be to double all coordinates and width = draw a 2px stroke at 20 => this will draw 1 full black line at 19 and another full black line at 20. When exporting make sure to halve the value (ex design at 48*48 but export at 24*24) and you should be fine.
When designing make sure you are using even number (= 2x whate the base value would have to be)
There's an extension too that should do grid fitting if you still want to use a 1:1 ratio but I don't remember its name
I can't wait for svg 2 to be adopted so that we don't have to care anymore with all this mess


Return to “Help with using Inkscape”