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

3D gizmos are rendered behind the grid #45520

Closed
Flavelius opened this issue Jan 28, 2021 · 9 comments
Closed

3D gizmos are rendered behind the grid #45520

Flavelius opened this issue Jan 28, 2021 · 9 comments

Comments

@Flavelius
Copy link
Contributor

Godot version:

3.2.4.beta6.mono.official

OS/device including version:

win10, nvidia gtx1060

Issue description:

Editor scene gizmos are rendered behind the world grid:

grafik

@akien-mga
Copy link
Member

To be clear, you're talking about the directional light gizmo specifically here?
The other two gizmos (transform and cube) don't seem to be behind the grid.

@Flavelius
Copy link
Contributor Author

Flavelius commented Jan 28, 2021

All of the 'gizmos' are behind the grid, the transform handle is not.

@aaronfranke
Copy link
Member

I tested some old Godot versions. This bug occurs on all 3.x releases (I tested down to 3.0.6) but does not occur on 2.1.6.

@akien-mga akien-mga changed the title 3.2.4.beta6 gizmos rendered behind grid 3D gizmos are rendered behind the grid Jan 28, 2021
@JFonS
Copy link
Contributor

JFonS commented Jan 28, 2021

This happens because of the transparent object sorting, there's no easy way to split the grid so that sorting doesn't cause issues AFAIK.

After #28289 (or #43206 for 3.2) the issue has become more apparent due to the grid being denser, especially at very steep viewing angles like in OP's image.

I have a WIP branch adding a shader to the grid, so it fades nicely at steep angles. I will try to clean it up and open a PR soon.

@Flavelius
Copy link
Contributor Author

Flavelius commented Jan 28, 2021

Can't the grid then just be rendered as solid lines; does it need transparency?
(fading it out at steep angles is also nice, as i also find the pop-in effect somewhat distracting)

@Calinou
Copy link
Member

Calinou commented Jan 28, 2021

Can't the grid then just be rendered as solid lines; does it need transparency?

Yes, the grid needs transparency to look more subtle especially since it's infinite. Otherwise, it easily gets too obnoxious.

@nathanfranke
Copy link
Contributor

@JFonS
Copy link
Contributor

JFonS commented Jan 30, 2021

I opened #45594, which should mitigate this issue.

@Flavelius
Copy link
Contributor Author

With the new fading-out grid, this is less noticeable

@Calinou Calinou added this to the 3.2 milestone Mar 13, 2021
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

6 participants