Thin film with tiled background objects

Get help using Construct 2

Post » Mon Jan 02, 2012 5:35 am

Hi all,

Just wondering if anybody can tell me why there is a film around my "tiled background" image - and why it doesnt appear on the "sprite" version



Tiled background on the left - sprite on the right.

I can get around it by making the canvas size of the image bigger (so the film isnt in view) but id rather not use huge images if possible.

Anyone had a similar experience working with tiled background objects?GenkiGenga2012-01-02 07:33:22
ImageImage
B
74
S
17
G
6
Posts: 1,039
Reputation: 10,605

Post » Mon Jan 02, 2012 1:55 pm

There have been similar issues, but a long time ago. I thought that since the tiledbackground had been "fixed" and this error ironed out.

Anyway, try setting "Pixel rounding" in the project property to on, and be sure to be up to date in C2's releases (current version r74) and up to date with your graphic card drivers too.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Mon Jan 02, 2012 3:37 pm

Thanks for the quick response Kyatric,

Pixel rounding did work with the objects that were flat, however ones that i had rotated at all still have the same thing happening as you can see in this pic.



Fully up to date with graphic drivers and construct.

:(?


Im not sure if a capx would be useful but here it is.

http://dl.dropbox.com/u/13312935/Example.capx

Or perhaps you shouldnt be rotating tiled backgrounds at all?GenkiGenga2012-01-02 15:38:43
ImageImage
B
74
S
17
G
6
Posts: 1,039
Reputation: 10,605

Post » Mon Jan 02, 2012 4:01 pm

I tested your capx with and without pixel rounding on firefox8.0 (should update) and chrome and there were no issue with your non rotated tiledbg

But indeed as soon as you rotate it, you can see the seam appear. I think it's logical, the graphic engine have to find a way to display oblique lines and that might cross the seam.
For this specific problem, there's a simple workaround: flip your image vertically and make your tiledbg height slightly lower. That should do the trick
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Jan 02, 2012 4:11 pm

Cheers Yann, flipping and resizing worked perfectly.

You guys are great, there really should be a donate button on users profiles because I would be glad to spare some change every time an issue is quickly resolved like this.

Thank you both.
ImageImage
B
74
S
17
G
6
Posts: 1,039
Reputation: 10,605

Post » Mon Jan 02, 2012 4:13 pm

And we would be glad to accept :D ... But that might start an answering war (money... wars... always associated).
Don't worry helping is learning.Yann2012-01-02 16:13:20
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests