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

Editor: Fixed grid depth glitches. #21430

Merged
merged 1 commit into from
Mar 8, 2021
Merged

Editor: Fixed grid depth glitches. #21430

merged 1 commit into from
Mar 8, 2021

Conversation

mrdoob
Copy link
Owner

@mrdoob mrdoob commented Mar 8, 2021

Related issue: #XXXX

Description

There is no way to control how lines draw on top of each other when using the vertexColors approach and we can see some z-fighting glitches in some angles (and also in VR).

Instead, we now create 2 separate grids and we render the second one using depthFunc = THREE.AlwaysDepth.

Before:

Screen Shot 2021-03-08 at 12 33 42 PM

After:

Screen Shot 2021-03-08 at 12 33 52 PM

@mrdoob mrdoob added this to the r127 milestone Mar 8, 2021
@mrdoob mrdoob merged commit ddae84d into dev Mar 8, 2021
@mrdoob mrdoob deleted the editor branch March 8, 2021 12:50
@mrdoob
Copy link
Owner Author

mrdoob commented Mar 10, 2021

Made a couple of videos to illustrate the issue in VR:

Before (the glitches are not as apparent in the video as I hoped):

158130233_194161162047418_9042014987990019962_n.mp4

After:

158076371_726476128062991_7569480489016903484_n.mp4

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

Successfully merging this pull request may close these issues.

1 participant