Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top