Tilemap Rendering Optimisation issue

Bugs will be moved here once resolved.

Post » Mon Feb 02, 2015 3:53 pm

Problem Description
There is, I believe, a bug in rendering tilemaps. During runtime if you're in a layout that has a tilemap in it, with seamless mode "On", it renders just fine. But when you switch to another layout with (the same?) tilemap in it, with seamless mode "Off", it has this problem:
Tilemap rendering problem 1.PNG

Tilemap rendering problem 2.PNG


Attach a Capx
Tilemap Rendering problem.capx


Description of Capx
This .capx file has two layouts in it. The first one uses the event sheet, and has a tilemap object in it with seamless mode "On". The second layout has another instance of the same tilemap object, but with seamless mode "Off". The event sheet goes to Layout 2 5 seconds after Start of Layout.

Steps to Reproduce Bug
  • Create a new project
  • Add a tilemap with one of Kenney's Platformer asset spritesheets, or similar map, and give it the appropriate tile properties.
  • Set the seamless mode to ON.
  • Create another layout, and put another instance of the tilemap in it.
  • Set seamless mode of the second tilemap to OFF.

Observed Result
There appears to be some glitch in the rendering optimisation of the tilemap in the second layout in Chrome and Firefox. In IE in the second layout I get a white screen.

Expected Result
The tilemap should render correctly even in the second layout, but it doesn't. Not that anyone would want to have two instances of a tilemap, each with different seamless settings. I became aware of this bug through accidental inconsistencies of my tilemap properties.

Affected Browsers
  • Chrome: Yes
  • FireFox: Yes
  • Internet Explorer: Yes, but with a different outcome (white screen).

Operating System and Service Pack
I am using Windows 7 64-bit, Service pack 1.

Construct 2 Version ID
I am using r195 64-bit.

[EDIT]: I have updated the .capx so that Pixel Rounding is on, fullscreen scaling is Letterbox Integer Scale, and sampling is point.
You do not have the required permissions to view the files attached to this post.
Last edited by PopperOfCorn on Mon Feb 02, 2015 6:24 pm, edited 1 time in total.
B
19
S
3
G
1
Posts: 29
Reputation: 1,038

Post » Mon Feb 02, 2015 3:59 pm

Ii it a bug?

Have you followed what it says in the manual:

Seamless mode
Use a rendering mode that prevents seams appearing between tiles, but also disables some tilemap optimisations which could reduce performance. Turning Seamless mode off can improve performance, but may show seams if the following project properties are not as follows: Letterbox integer scale fullscreen mode, Point sampling, and Pixel rounding on.


If you have, then it could be a bug, but best check.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,489
Reputation: 59,764

Post » Mon Feb 02, 2015 6:20 pm

@zenox98

I didn't until you brought it up, but yes, it's still there. Also, I found out that IE fills in the tiles with the background color.

Tilemap rendering problem 3.PNG
You do not have the required permissions to view the files attached to this post.
B
19
S
3
G
1
Posts: 29
Reputation: 1,038

Post » Mon Feb 02, 2015 6:31 pm

It's not a bug.

You use a tilemap with 70*70 tiles , and it's not a power of two.
So, Seamless mode is the best for this.
B
38
S
13
G
4
Posts: 152
Reputation: 5,147

Post » Mon Feb 02, 2015 7:03 pm

As far as I can tell, the bug you have reported is that when you turn seamless mode off, seams appear. Is that really surprising?
Scirra Founder
B
399
S
236
G
89
Posts: 24,529
Reputation: 195,390

Post » Tue Feb 03, 2015 2:35 pm

@ashley By seams do you mean lines of transparency between tiles?
B
19
S
3
G
1
Posts: 29
Reputation: 1,038

Post » Tue Feb 03, 2015 2:53 pm

Ashley wrote:As far as I can tell, the bug you have reported is that when you turn seamless mode off, seams appear. Is that really surprising?


It's not readily apparent (thanks, weird image size limiting scrolling box), but the problem in the images is that tiles that should look like this /\/\/\/\/\/\/\/\/\/\/\ suddenly look like this /\/\______________/\/\ with seamless rendering on.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Tue Feb 03, 2015 4:12 pm

Oh, I see. Well, unfortunately it looks like you simply can't mix the 'Seamless' property of a tilemap object between layouts. All object types share the same textures, and in seamless mode textures are created differently to non-seamless mode. So every instance of a Tilemap object type has to use the same seamless mode. I've documented this limitation. Closing as won't fix.
Scirra Founder
B
399
S
236
G
89
Posts: 24,529
Reputation: 195,390

Post » Tue Feb 03, 2015 6:31 pm

Thanks @Somebody for explaining that like I never could :)
B
19
S
3
G
1
Posts: 29
Reputation: 1,038


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 6 guests