문제

Does anyone have an example of using BSP trees in ThreeJS that they could share or know about? I am looking at creating a terrain splatting example and would like to use a BSP (or perhaps octree...?) to help speed up the rendering.

Many thanks

도움이 되었습니까?

해결책

Have a look at this octree source: https://github.com/collinhover/threeoctree

EDIT: There are now several three.js examples:

http://threejs.org/examples/webgl_octree.html

http://threejs.org/examples/webgl_octree_raycasting.html

three.js r.60

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top