Pixel Graphics / Sampling

0 favourites
  • 7 posts
From the Asset Store
Over 1700 16x16 pixel art RPG icons for item and skills
  • I am currently trying to make a game, which would have pixel-art graphics, because the game is supposed to run on mobile devices, so sprites need to have lowest possible impact on performance, meaning that the resolution has to be as low as possible(and i don't have much time to create the game too!).

    However, i cannot get these images to look right when scaled.

    If i make a 64x64 image and then resize it to 256x256, it will look terrible because of the sampling (that's what causes this, right?) - the image is smoothed, resulting in a blurry mess.

    While i could make the sprites look pixellated in 256x256, this would result in more work to do (finer drawing accuracy needed) and increased file size, which is unacceptable.

    I tried disabling sampling in project properties, however there is no option to do so - only linear and point!

    Furthermore, i cannot use the "pixellate" effect on the images because i am running the free version (2 effects PER PROJECT).

    Is there a way to disable the cursed sampling and get images to scale without them being smoothed?

    Example of what happens:

    <img src="http://i.imgur.com/nTGxmQ4.jpg" border="0" />

    Apparently what i need is to dispose "interpolation" (a term with which i am unfamiliar with):

    -example of rescaling image in GIMP 2 with no interpolation

    <img src="http://i.imgur.com/yGHQmNQ.jpg" border="0" />

    <img src="http://i.imgur.com/ixbMBqf.jpg" border="0" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Point sampling is the one you want to use actually, if you're trying to get rid of the blur when scaling.

  • Sorry, it doesn't work that way.

    Scaling up, doesn't add detail, it only adds pixels of the existing colors in a somewhat recognizable pattern. Basically that one red pixel now becomes 5 instead... hence the blockyness.

  • Tried both, edges still not visible clearly...

  • Sorry, it doesn't work that way.

    Scaling up, doesn't add detail, it only adds pixels of the existing colors in a somewhat recognizable pattern. Basically that one red pixel now becomes 5 instead... hence the blockyness.

    But isn't there a way one could dispose of the change in opacity of pixels in the edges of rescaled image?

  • Changing the sampling as TL22 suggested, along with changing pixel rounding in preferences to on will get rid of C2's linear sampling, however you are still at the mercy of what ever the browser uses.

    Safari, and Ie force that rendering for example.

  • ...along with changing pixel rounding...

    I think that i've just found the culprit.

    Either the sampling was bugged when i tried setting it to "point", or it didn't work because of pixel rounding, but either way everything's fine now. Thank you all!

    Also, newt, weren't you the guy with a dog as his avatar? :3

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)