tilled background glitch when scrolling

New releases and general discussions.

Post » Tue Jan 27, 2009 3:44 pm

Found glitch while learning construct. Looks nasty [list:36rdt35d][color=#0080FF:36rdt35d]cap file[/color:36rdt35d] [color=#FF0000:36rdt35d]Orl.cap[/color:36rdt35d][/list:u:36rdt35d]


My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Jan 27, 2009 3:52 pm

Well... it shouldn't do that if your tiles are a power of 2 square (which they are), so I don't know why you're getting that seam.

If you set the App properties to use Point sampling it fixes it.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Jan 27, 2009 3:53 pm

Go into your application properties and change Sampling to point rather than linear. This will be fine for your game since it's doesn't need smoothing.

If you need linear sampling, I'm not sure there's an easy way to fix it other than making tiles overlap each other by one or two pixels.
B
2
S
1
G
5
Posts: 59
Reputation: 1,518

Post » Tue Jan 27, 2009 3:56 pm

Turn the sampling in Application Properties from 'Linear' to 'Point'. It suits pixellated games better anyway. Alternatively, use Sprites for sections of background which do not repeat.

I will investigate the problem - I think I know why it's happening, but it might be tricky to fix. Could you leave it on the bug tracker so I don't forget?

Edit: beaten to the sampling idea!
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Tue Jan 27, 2009 3:59 pm

[quote="Ashley":1n2g6jxc]Turn the sampling in Application Properties from 'Linear' to 'Point'. It suits pixellated games better anyway. Alternatively, use Sprites for sections of background which do not repeat.

I will investigate the problem - I think I know why it's happening, but it might be tricky to fix. Could you leave it on the bug tracker so I don't forget?[/quote:1n2g6jxc]

ok

[quote="Ashley":1n2g6jxc]Edit: beaten to the sampling idea![/quote:1n2g6jxc]

what do you mean by that?

edit@added to the tracker.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Jan 27, 2009 4:04 pm

He means that deadeye and BenH already suggested changing the sampling to point.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Tue Jan 27, 2009 4:06 pm

[quote="Aeal5566":mci5owsr]He means that deadeye and BenH already suggested changing the sampling to point.[/quote:mci5owsr]

ok it does work. however bug is a bug, and has to be anihilated ;)
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Jan 27, 2009 6:07 pm

Question is, is it off on both sides or just one?
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Tue Jan 27, 2009 7:00 pm

[quote="newt":1uyyjmwa]Question is, is it off on both sides or just one?[/quote:1uyyjmwa]

check the cap file couse i don't remember.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Jan 27, 2009 7:11 pm

This is actually happening because the textures are power-of-two, I think. It means they tile seamlessly inside the object, but it seems the edges glitch (because they're trying to tile the opposite side of the texture). I shall contemplate a solution!
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest