Pages

luni, 18 aprilie 2022

BVH and three.js meshes implementation.

This article is about the BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
The full source code can be found on this GitHub project.
You can see a good example on this demo page with this Tyrannosaurus rex