#Pixel perfect graphics

7 messages · Page 1 of 1 (latest)

heady swallow
#

I'm having trouble achieving pixel art graphics: I have a subviewport that displays game's content in fixed resolution and it makes the pixels have inconsistent size.
Looks even worse when moving the camera, pixels jump all over the place.
The grid object in the screenshot - every grid line 1 px wide, you can see here how weirdly they get stretched here.

golden yoke
#

What's the size of your subviewport and are you scaling via transform?

heady swallow
#

256x240, scaling the subviewport container to window size

golden yoke
#

The window dimensions will need to be multiples of you original resolution e.g. 1024x960 or 2048x1920

#

Although I don't know fully how you intend to use your subviewport here's a quick example I've created to show that scaling works okay.