Tiled Background problem

Discussion and feedback on Construct 2

Post » Fri Oct 05, 2012 9:40 am

When two different tiled backgrounds are touching or overlapping, a thin white line is formed like this:

https://dl.dropbox.com/u/4759481/Tile_problem.png

I have tried to work around this issue, but it always seems to eat up much of the time I should use to create my game.

If the darned engine need to create a line between the tiles - why not a transparrent one that can't be seen???.

To me - this is by far the worst thing about C2 and makes it very hard to make a professional looking game.

I really do hope somebody has a solution to this - or at least a work around. :)

Thanks!lokesen2012-10-05 09:45:42
B
7
S
3
Posts: 109
Reputation: 1,645

Post » Fri Oct 05, 2012 9:53 am

I don't have any problems. If you are using Construct2's image editor, it leaves 1px space if you crop or resize with it.

It's hard to tell what the problem might be without seeing the capx.
Does turning pixel rounding help in project settings?nemo2012-10-05 09:54:08
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Fri Oct 05, 2012 12:36 pm

Construct 2's image editor does not add a 1px space to tiled background images.

This is an issue with how GPUs draw tiled textures, and is not specific to Construct 2, you'll have this problem regardless of what tool you use. Usually it's caused by sub-pixel positioning or non-power-of-two textures. At the moment only power-of-two size textures can be tiled perfectly and seamlessly (the image editor should warn you if using a non-power-of-two size). Also, enabling 'pixel rounding' in project properties will prevent sub-pixel positioning so seams never appear, but it could make scrolling a little less smooth.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Fri Oct 05, 2012 12:38 pm

[QUOTE=nemo] I don't have any problems. If you are using Construct2's image editor, it leaves 1px space if you crop or resize with it.

It's hard to tell what the problem might be without seeing the capx.
Does turning pixel rounding help in project settings?[/QUOTE]

Why would you wan't 1px space between your tiles? I would like them to just touch without any gap between.

A background looks pretty silly with 1px line between the tiles...
B
7
S
3
Posts: 109
Reputation: 1,645

Post » Fri Oct 05, 2012 1:01 pm

[QUOTE=Ashley] Construct 2's image editor does not add a 1px space to tiled background images.

This is an issue with how GPUs draw tiled textures, and is not specific to Construct 2, you'll have this problem regardless of what tool you use. Usually it's caused by sub-pixel positioning or non-power-of-two textures. At the moment only power-of-two size textures can be tiled perfectly and seamlessly (the image editor should warn you if using a non-power-of-two size). Also, enabling 'pixel rounding' in project properties will prevent sub-pixel positioning so seams never appear, but it could make scrolling a little less smooth.[/QUOTE]

Pixel Rounding and power of 2 doesn't make any difference for me, unfortunately :/

Same problem. But It doesn't show on my AMD gfx machine and my Nvidia machine with older drivers.

So it could be a driver problem with Nvidias latest drivers.
B
7
S
3
Posts: 109
Reputation: 1,645

Post » Sat Jan 05, 2013 10:40 pm

I still have like a small white line around my image with 256X256. That is square format. So than its not possible to use that as a tile background?
B
7
S
2
G
3
Posts: 39
Reputation: 2,612

Post » Sat Jan 05, 2013 11:56 pm

Can you post the image or .capx?
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Post » Tue Jan 08, 2013 9:25 am

I'm having this problem, but only in Internet Explorer if it's set to scale mode - does anyone know of a workaround for this?

As at the moment it makes creating anything for the Windows 8 store pretty tricky if you want to support multiple resolutions.

Here is a capx showing the problem - preview it in Internet Explorer and adjust the window size.

https://www.dropbox.com/s/07jitwourupus47/IEtiles.capxHaematite2013-01-08 10:36:40
B
22
S
6
G
10
Posts: 118
Reputation: 8,005

Post » Tue Jan 08, 2013 1:47 pm

@Haematite - there's no point using tiled backgrounds like that. Just stretch one object over the whole area rather than using separate objects. It's faster and looks correct too.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Tue Jan 08, 2013 2:18 pm

@Ashley - I'm aware that that was a poor example, but it will still occur in a situation like this:

https://www.dropbox.com/s/xxru9raecksvefi/IEtiles2.capx

where there is no way to avoid it if I wanted to create a pyramid for example, or any shape that is not a rectangle. Any advice?
B
22
S
6
G
10
Posts: 118
Reputation: 8,005

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Mirlas, wrighthill and 17 guests