This page contains examples of my jsBVH Library (jsbvh.js) for Javascript. The library is an open-source, high performance, and non-recursive implementation of a multidimensional Bounding Volume Hierarchy data structure.
To contribute to, watch, or fork the jsBVH Library, see the project on GitHub at http://github.com/imbcmdth/jsBVH.
For API documentation, head over to jsBVH's Wiki at Github.
Uses jsBVH to accelerate the ray tracing of massive scenes!
A simple interactive example of the BVH. Shows an interactive Ray-BVH tests. Great for understanding BVH as used in ray tracing.
ONLY run on Opera, Chrome, Safari, or Firefox 3.6 nightlies!
This test generates 20k dense non-overlapping rectangles of various size and color.
Preliminary unit testing examples.
Inserts 10k objects. Performs some searches. Inserts another 10k objects. Performs some searches. Deletes and reinserts some objects. Performs some final searches.
Same benchmark as above but inserting and searching through a 3-dimensional volume instead of a 2-dimensional case.
ONLY run on Opera, Chrome, Safari, or Firefox 3.6 nightlies!
This test generates 20k dense non-overlapping rectangles of various size and color.