4

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.

Daraan
  • 1,797
  • 13
  • 24
Mat
  • 961
  • 12
  • 28

1 Answers1

5

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

WestLangley
  • 102,557
  • 10
  • 276
  • 276
  • Thanks WestLangley, I also found this if anyone is interested... https://gist.github.com/chandlerprall/1484619 – Mat Feb 11 '13 at 17:28