Skip to content

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.

2 participants