http://www-scf.usc.edu/~shopkins/demo.html

I do not recommend taking the depth to the 4th level unless you have a
fast PC. Hiding the Turtle will improve framerates.

I was going to release the demo/code earlier but decided to improve
the creation method. The first time I made the Octree, it simply
checked if one of the vertices was within the box to see if it needed
to subdivide. This led to problems on low polygon objects and a
workaround was cloning the geometry mesh and using quaterFaces() a few
times. The Octree now uses the Separating Axis theorem for AABB-
Triangle intersection so it does not need a high polygon mesh to
create a correct Octree.

More details are explained in the link

Hope this helps anyone :) . Have fun with the demo and src.

Reply via email to