Three.js buffergeometry disappears after moving camera to close

后端 未结 3 502
攒了一身酷
攒了一身酷 2020-12-20 23:47

My buffergeometry disappears after moving the camera to close. You can also see that in drawcalls Three.js example that has TrackballControls. In my case it\'s

相关标签:
3条回答
  • 2020-12-20 23:53

    I had a similar issue with BufferGeometry and while myMesh.frustrumCulled = false; did solve the issue, so did myMesh.geometry.computeBoundingSphere();

    0 讨论(0)
  • 2020-12-21 00:00

    Three.js thinks your object is outside the frustum. Add the line

    linesMesh.frustumCulled = false;
    

    and it should stop it from disappearing.

    0 讨论(0)
  • 2020-12-21 00:04

    I suggest that you check your camera's .near clipping parameter. Objects close to the camera will naturally be cut off.

    0 讨论(0)
提交回复
热议问题