model clipped when camera move close to the ground

1. A concise explanation of the problem you’re experiencing.

When the camera move close to the gltf model I loaded, the mesh of the floor model is clipped. And the underlying globe surface is shown.

In the second figure, I move the camera closer to the ground. Then the grey floor mesh is clipped and the green globe surface (Imagery) is shown.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I think that’s bug. Because every time I move closer to the model mesh., the mesh will be clipped.

4. The Cesium version you’re using, your operating system and browser.

Cesium version: 1.51

Operation System: Win10

Browser: Chrome 70.0.3538.102

I believe this is a problem with the logarithmic depth CesiumJS uses. You can try turning it off with:

viewer.scene.logarithmicDepthBuffer = false;


To see if that fixes it. Here’s the GitHub issue:

Let me know if that works.

Thanks Omar,

I solve it by adding #define ENABLE_GL_POSITION_LOG_DEPTH_AT_HEIGHT to the top of vertexLogDepth.glsl as issue#6573 says.

For now, it works fine.

在 2018年11月21日星期三 UTC+8下午8:47:45,Omar Shehata写道: