Bad tiling cs2 r212 64

Bugs will be moved here once resolved.

Post » Fri Aug 21, 2015 3:42 pm

Hello,

Problem Description
When using tiling (tiled background or tilemap), it looks like elements are cut from 1px (for tilemaps) or there is one more line (on tiled backgrounds). But my image is exactly 64x64px.

Attach a Capx
http://j2geeks.fr/DL/bug-tiling.capx

Description of Capx
The caps contains a tiled background and a tilemap made from the same 64x64 image. You will notice a thin line on top of the first one, and a gap at right in the second one.

Steps to Reproduce Bug
  • Create a new sd landscape project
  • Add a tiled background or a tilemap
  • Open an image inside it

Observed Result
Lines from other parts or gaps (tilemaps) and line on top maybe coming from the bottom of the image (tiled backgrounds)

Expected Result
just use the image and tile it lol

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
VM : windows7 64 SP1
Host : Ubuntu 14.04 x86_64
browsers tested inside and outside VM (except IE of course,)

Construct 2 Version ID
r212 64bits

Thank you for your hard work.
Best regards,

Jau
B
12
S
2
Posts: 29
Reputation: 813

Post » Fri Aug 21, 2015 4:38 pm

Closing as not a bug. This does not reproduce in the Tilemap object when seamless mode is on, only Tiled Background. Tiled Background uses wrapping on both axes (horizontal and vertical). Since you use Letterbox Scale and not Letterbox Integer Scale fullscreen mode (and for pixel-perfect display, Pixel Rounding and Point sampling), the display will use floating point scaling, and render objects at fractional pixel offsets. This means in some cases a fractional vertical offset in the Tiled Background object, which then wraps vertically and samples the bottom row of the image along the very top of the object rectangle. This is just how computer graphics works when you enable floating-point offsets; the workaround is to use letterbox integer scale, point sampling and pixel rounding, or low-quality fullscreen mode with point sampling.
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,160

Post » Sat Aug 22, 2015 12:57 pm

sry then. I'll study this. Thank you Ashley.
B
12
S
2
Posts: 29
Reputation: 813


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests