-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.86.0] Gaps/lines between the images on camera move #6927
Comments
This is still an issue. We were using 3.85.1. Had that exact same issue, random lines. For some reason it ignores the tile front and displaying the color at bg. Saw the similar issue has been resolved at the 3.86 and upper. We upgraded the version to 3.87.0. Still having this. I hope this will resolved immadietely/ |
One quick note for @photonstorm . This issue only reproducing when we have Camera.setBounds() method used. If there is no bounds set to camera. Everything works smoothly (In our case). But whenever a bound set, it is starting to appearing |
@yemtelazer you need to provide a test case, with assets, that clearly demonstrates what is happening, because we cannot replicate this as it stands. |
Trying to create a case in sandbox, it is really hard to reproduce. Dont know the exact cause. Will post link here once I achieve |
Ok. Let's keep this issue open until you've found a way to demonstrate it (because we struggled, too). |
Cool that I have a reproducable sandbox code now here. I think its good enough for you to understand the issue we are having here. The test case covers one issue, I hope there are no more things to resolve. I hope that everything we are facing here is sharing the same root cause. I am going to provide a video, files (for some reason my public files are not loading in incognito mode) and the sandbox link so you can fork if you want. In 4.0.0 beta.x this is issue seems resolved (at least this test case is not reproducing), but still there are tons of games using 3.x.x versions. I think it would be a good update to have it on version 3.x.x. Sandbox link Uploaded video Source Files |
@photonstorm Did you have some time to look at test case? |
@photonstorm ping :) |
@zekeatchan adding you to the loop :) Can you reach out to @photonstorm ? |
Currently this link is up to date |
Hi @yemtelazer, thanks for the test case. I'll have a look. |
Hi @yemtelazer, it seems you're facing this issue with tile maps? The common solution is to create an extruded tileset. Here are some links that may help resolve this: |
in my case, these are normal images placed next to each other and it works perfectly fine up to and including version 3.80.1. Should I make a reproduction of these two versions; a working and broken one? |
Yes, that would be helpful. Best is to create a sandbox example in the phaser site for us to have a look. |
@zekeatchan Thanks for the reply. My tileset was fine there were no pixel errors. But in any case I tried to extrude. Issue is still exist on my end. Nothing much changed |
Also I know that this is not extrude issue, I know the examples of that non-extruded tileset issues. This is something different. |
ok give me some time - I will create repo in my free time |
So I can't reproduce this issue on the assets from Phaser CDN, but I can do it in the project, forcing me to check if my images are cut correctly. At first glance, it looks okay, but I will double-check it. https://phaser.io/sandbox/iVCdAJfq
There are two arrays of tiles; I'm using the correct one. I noticed that version 3.80.1 works completely differently than 3.86.0. If you pick an older version, zoom in/out, and move a map you will notice, that sometimes these "gaps" are hidden. On 3.86.0 they're always visible, lighter or darker, but still visible. Maybe I always had a badly cut version of images, but it worked because of different color blending? It's more visible in some colors(like blue, and light green), so maybe that's the issue. I will double-check my images and tell you the result. |
Let me provide some light, hope not confusion, to the issue. In my case, I found a workaround to tackle those kind of ugly artefacts (lines) as camera did zoom and/or pan. In the process of fix attempts (with and w/out pixel-art, roundPixels) I spot a potential reason through Phaser changelogs:
Might Phaser code changes around rounding pixels @ 3.85 and @ 3.86 provide hints for resolution. |
Version
3.86.0
Operating system
Windows 11, Google Chrome 129.0.6668.101
Description
If you place four graphics next to each other, a visible line will appear between them. Something similar happened to me on 3.85.X, but it was always visible on specific camera zoom. This time it appears on camera moving; there is a position when it is not visible. Changing "pixel perfect" in the config doesn't change anything. This is a regression bug; the last stable version is 3.80.1.
Expected behaviour
There's no gaps between the images
Example Test Code
backgroundImages.forEach(image => { const bgImage = this.add.image(image.x, image.y, image.key); bgImage.setDisplaySize(image.displayWidth, image.displayHeight); if (image.origin) { bgImage.setOrigin(image.origin.x, image.origin.y); } });
The text was updated successfully, but these errors were encountered: