Three.js with instancing - can't get it to work without FrustumCulling = false

后端 未结 1 1869
囚心锁ツ
囚心锁ツ 2021-01-25 06:31

I\'m using three.js and instancing (as in this example), but I\'m having the same problem others have reported: the objects are randomly clipped and keep disappearing from the c

相关标签:
1条回答
  • 2021-01-25 06:38

    If you are using instancing, there are two ways to handle frustum culling.

    One is to turn frustum culling off for the object:

    object.frustumCulled = false;
    

    The other option is to set the bounding sphere of the geometry manually -- if you know it, or can estimate it:

    geometry.boundingSphere = new THREE.Sphere( new THREE.Vector3(), radius );
    

    three.js r.86

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