Pixel display problem

Discussion and feedback on Construct 2

Post » Sat Jan 21, 2017 9:48 pm

Hi guys, wondering if anyone can help me with a graphics problem that has plagued my project for years. My pixel art seems to display with inconsistent pixel widths - sprites with animation seem to have pixels that change thickness constantly. All of the lines in this image are supposed to be 1 pixel width, but some of them are thick and some are thin:

Image

I suspect it's something to do with sub-pixels but pixel rounding and Point sampling are on in my project and everything is positioned at integer coordinates. So, um... I'm stuck! Anyone fixed this issue before?

Thanks :)
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 204
Reputation: 3,466

Post » Sun Jan 22, 2017 12:40 am

Is it a sprite or tilemap object? Are you scaling it at all? Is the image size in the editor the same as the size in the layout?
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Sun Jan 22, 2017 12:48 am

It's all sprites, all 1:1 size. Although, actually, come to think of it, my layout scale is set to like 1.8 or something in the events if I remember. Would that be the culprit? I like the size that things display in the output, is there a workaround that would allow me to retain that scale but display pixels properly?
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 204
Reputation: 3,466

Post » Sun Jan 22, 2017 1:00 am

The first thing I would do is disable the layout scaling and run the game to see if it fixes it or not and then you can go from there.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Sun Jan 22, 2017 1:11 am

Are you cropping your sprite images in the editor?

It looks like what happens when I forget to crop an image and it will leave odd spaces around sprites if you do that.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Jan 22, 2017 8:01 am

Right, I tried setting the layout scale back to 1, and things have improved, but some pixels are still displaying all fruity. Look:

Image

The differences are subtle, but the bricks in the background are missing lines, and part of the windowsill has disappeared.

All images are cropped.
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 204
Reputation: 3,466

Post » Sun Jan 22, 2017 10:05 am

*Do you use effects on the sprites?
*Maybe if you want to scale and keep the pixelated look - you should try the "Letterbox integer scale".
B
61
S
31
G
6
Posts: 125
Reputation: 7,893

Post » Sun Jan 22, 2017 10:18 am

There is a tint layer with Overlay fx, otherwise no fx (and the problem occurs without it). I have tried every fullscreen scaling setting :(
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 204
Reputation: 3,466

Post » Sun Jan 22, 2017 10:32 am

Can you try without both fx, both of those fx have "lowp sampler2D samplerFront", and low precision (lowp) can be not so accurate.
B
61
S
31
G
6
Posts: 125
Reputation: 7,893

Post » Sun Jan 22, 2017 10:38 am

Again, the problem still occurs whilst using no effects. :/
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 204
Reputation: 3,466

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Refeuh, SaRaB, tdcostas, Yahoo [Bot] and 11 guests