Replies: 1 comment 2 replies
-
I think it's safe to say this is possible. The process would look something like:
I guess the other big question would be — is this the 'right' way to approach the problem? — and I'm not sure. There are alternatives like 3D Tiles that can assemble glTF models into a larger BVH, but (if I understand three-mesh-bvh correctly) this won't accelerate raycasting in the same way. There are also some ideas for spatial indexes within glTF files, but it's early days there. The choice also somewhat depends on your use case — lots of simple objects? Or fewer, but more complex, objects? @gkjohnson might be the best person to ask about what general approach to precomputing a BVH is best. |
Beta Was this translation helpful? Give feedback.
-
Hey would it be possible to add three-mesh-bvh serialized data to the glb?
right now i generate the bvh data on glb loading on client side
Beta Was this translation helpful? Give feedback.
All reactions