Skip to content
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

Sprites overlapping things they shouldn't be in 3D render #7969

Open
userliffy opened this issue Apr 25, 2024 · 2 comments
Open

Sprites overlapping things they shouldn't be in 3D render #7969

userliffy opened this issue Apr 25, 2024 · 2 comments

Comments

@userliffy
Copy link

Problem description

I'm having an issue with multiple things overlapping/phasing into things they shouldn't be.

_

First example (the video attached under "Observed result"): The players are overlapping the soccer goal despite the goal being closer to the 3D camera. It's also happening with one of the 2D sprites that's laying on the ground. It keeps appearing above the soccer goal even though the goal is closer to the camera and has a higher z elevation.

Second example (the screenshot attached under "Observed result"): In the screenshot, the green obstacle and the coin behind the green obstacle, have shadows from the ShadowLight object. For whatever reason, the green obstacle's shadow is displaying over the green obstacle, as if the shadow is on top of it. Also, the coin's shadow is shown in front of the green obstacle despite the coin being farther behind.

I haven't been on Construct in a bit so I went through all of the releases to see when this issue first started. The earliest there were no overlapping issues was R364. From R365 and onward, it's been an issue.

Attach a .c3p

Overlapping_Issues.zip

Steps to reproduce

  1. Just open the project and you'll see the issue from the screenshot under "Observed result"

Observed result

screen-capture.23.online-video-cutter.com.mp4

R365

Expected result

R364

^In this, the shadows aren't overlapping the obstacles and the coin's shadow isn't overlapping them either.

More details

Affected browsers/platforms:

First affected release: r365

System details

View details

PASTE HERE

@AshleyScirra
Copy link
Member

This renders correctly in WebGPU mode. It only appears incorrect in WebGL mode. This appears to be an accidental regression from fixing #7429. However the project is quite complex and it is extremely difficult to debug. Can you provide a minimal project as per the bug report guidelines? It's essential to make sure it is feasible to fix the problem.

@WilsonPercival
Copy link

@AshleyScirra

issue7969.zip

observed expected

I advise you to pay close attention to the values of the Z elevation and Z index parameters of objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants