Skip to content

Releases: gkjohnson/three-mesh-bvh

v0.7.5

02 Jun 02:58
Compare
Choose a tag to compare

Changed

  • Respect Raycaster.near and Raycaster.far during raycast traversal, improving performance.

Fixed

  • The resolveTriangleIndex throwing an error when deserializing an indirect BVH.

v0.7.4

10 Apr 21:19
Compare
Choose a tag to compare

Changed

  • Improved raycasting performancy by ~20% by avoiding use of the "arrayToBox" function internally.

Fixed

  • ParallelMeshBVHWorker now generates a geometry index if it's required.
  • Add support for the "indirect" option to both workers.
  • Worker generators not guaranteeing that 100% progress would be fired to the onProgress callback.

v0.7.3

20 Feb 13:19
Compare
Choose a tag to compare

Fixed

  • StaticGeometryGenerator, VertexAttributeTexture now support empty geometry.

v0.7.2

13 Feb 02:51
Compare
Choose a tag to compare

Fixed

  • MeshBVHHelper not updating correctly

Added

  • StaticGeometryGenerator now inverts geometry winding order when a mesh uses negative scales.

v0.7.1

30 Jan 07:44
Compare
Choose a tag to compare

Fixed

  • Minor case where outside bounds did not have floating point epsilon accounted for which could have resulted in missed intersections at the very edge of the bounds.
  • The MeshBVHHelper( mesh, depth ) constructor not working as expected.
  • The validateBounds function not accounting for the use of the "indirect" option.

Added

  • Added new "ParallelMeshBVHWorker" that parallelizes MeshBVH generation across multiple WebWorkers. Falls back to a single threaded approach if SharedArrayBuffer is not supported.

v0.7.0

15 Jan 12:25
Compare
Choose a tag to compare

Changed

  • MeshBVHVisualizer has been deprecated and renamed MeshBVHHelper to align with three.js' conventions.
  • MeshBVHHelper constructor now optionally takes a bvh.
  • Organization of shader GLSL snippets. They are now grouped into the BVHSShaderGLSL object. Backwards compatible glsl snippets are provided for now but it's recommended to use the new location.

Fixed

  • MeshBVHHelper will now display correctly regardless of parent in hierarchy.
  • MeshBVHHelper.copy now correctly copies opacity, color.

v0.6.8

08 Oct 00:12
Compare
Choose a tag to compare

Changed

  • Small performance improvements to bvhcast function (up to ~10%).

v0.6.7

07 Sep 08:37
Compare
Choose a tag to compare

Fixed

  • GPU function parameters to fix undefined behavior on some platforms.

v0.6.6

03 Sep 06:40
Compare
Choose a tag to compare

Fixed

  • Case where indirect buffer with no index failed to raycast.

v0.6.5

30 Aug 00:33
Compare
Choose a tag to compare

Added

  • Added support for draw range so the BVH now implicitly respects the start and end range specified in the geometry.