3dstreet icon indicating copy to clipboard operation
3dstreet copied to clipboard

z-fighting of street and striping when camera at longer distances

Open kfarr opened this issue 5 years ago β€’ 6 comments

https://github.com/aframevr/aframe/issues/666#issuecomment-171182072

kfarr avatar Oct 26 '20 04:10 kfarr

  • try render-order
  • try material depthTest = false

kfarr avatar Oct 26 '20 05:10 kfarr

  • tried render order and material depthTest = false but it resulted in weird things
  • like markings appearing over all other objects, albeit not flickering

kfarr avatar Oct 26 '20 06:10 kfarr

maybe try a simpler version of the road, marking and shadow, like the codepen example

kfarr avatar Oct 26 '20 06:10 kfarr

Another idea - increase the distance of the road markers from each other relative to the camera distance away from the markers

kfarr avatar Dec 05 '20 06:12 kfarr

another potential method using material.polygonOffset https://stackoverflow.com/a/25228048/5347747

kfarr avatar Sep 16 '22 22:09 kfarr

setting logarithmicDepthBuffer: true on scene renderer seems to work great

I tried to find reasons why it might be bad ... this seems to good to be true for such a quick fix. I seem to recall issues maybe in VR mode for objects with large distances like long continuous street segments.

kfarr avatar Feb 28 '24 05:02 kfarr