tiled background 1 pixel line

Bugs will be moved here once resolved.

Post » Sat Sep 24, 2011 8:31 am

there is sometimes an invisible 1 pixel line or a 1 pixel line shift in tiled backgrounds. with power of two textures too.
tested with 3 firefox versions and opera on an ati card.

it looks like switching to linear filtering in cc with some testgames. any solution or workaround ? doesnt seem to happen with sprites.
B
4
S
1
G
4
Posts: 36
Reputation: 1,649

Post » Sat Sep 24, 2011 1:47 pm

It's up to the browser how it renders it. As a workaround, try always scrolling to round(Object.X) and round(Object.Y). That'll keep the display at integer co-ordinates which should prevent sub-pixel 'seams'.
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Sat Sep 24, 2011 5:07 pm

thx, the rounding works.

not for parallax enabled layers, which seems logic as i found no way to round that one too.
and scaling should be 1.0
B
4
S
1
G
4
Posts: 36
Reputation: 1,649


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests