Hi,
I get cyclic artefacts if I set disableDepthTestDistance: 0 for billboards
Here is a sandcastle
Tis occurs if I choose World Terrain as DTM.
Rüdiger
Hi,
I get cyclic artefacts if I set disableDepthTestDistance: 0 for billboards
Here is a sandcastle
Tis occurs if I choose World Terrain as DTM.
Rüdiger
Hi @Ruediger_Brand,
thats normal, because the billboards are angled towards the camera and therefore getting partially overlayed by the terrain depending on its angle relative to the ground.
You should not define the disableDepthTestDistance
as “zero”, use some positive number instead, as described in the documentation:
“Gets or sets the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain. When set to zero, the depth test is always applied. When set to Number.POSITIVE_INFINITY, the depth test is never applied.”
Best, Lennart
Hi @lennart.imberg,
I think that isn’t normal, but I don’t know if you understand me.
I draw this cyclic effects in the image
Is this normal ?
Rüdiger
Hi @Ruediger_Brand,
I have drawn a little quick and dirty image to illustrate, what I meant above.
If you set disableDepthTestDistance: 0
it’s like that:
The billbords are partially under the terrain, depending on their angle towards the ground, because they all are aligned to the camera
If you set disableDepthTestDistance to a positive number, you can see them through the terrain/globe
Hi Lennart one question:
Gets or sets the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain. When set to zero, the depth test is always applied. When set to Number.POSITIVE_INFINITY, the depth test is never applied.
I have set the value to 20000 - what does this mean, I thought bigger than 20000 the depth test is disabled, is this right ? I observed,that the depth test is NOT applied between 0 and 20000 distance ?
Rüdiger
HI @Ruediger_Brand,
sorry for the late response, I was on vacation for a while. Yes, your observation is correct. Thats why I set the distance to Number.POSITIVE_INFINITY in some cases. Be aware I did’nt dive in the related source code yet, so I can only tell you, that my obervations are the same.
Best, Lennart
thank you