I’m dealing with a really big circle. Looks like I’m running into a depth buffer issue - Babylon.js docs. I tried to fix this problem using orbit.material.useLogarithmicDepth = true (commented code), but it got even worse, please tell me what am I doing wrong?
What are we supposed to see? I see the circle on my side
If you move the circle far enough away from the camera, it begins to tremble. If I uncomment the code orbit.material.useLogarithmicDepth = true, it gets even worse, although I expect that it should help me
that is, there is no way I can increase the accuracy except by editing the minZ for the camera?
If you don’t mind using WebGPU instead of WebGL, you can also use the inverse depth buffer by using engine.useReverseDepthBuffer = true;
that is better than the logarithmic depth buffer. It also allows you to put your far plane at infinity by setting maxZ=0
on the camera.
Thank you very much, this really helped. I found that setting camera.maxZ = 100000000 and skybox.material.useLogarithmicDepth = true also helps fix the problem