bvh icon indicating copy to clipboard operation
bvh copied to clipboard

Height Field Support

Open tay10r opened this issue 4 years ago • 2 comments

Any interest in supporting acceleration structures for height fields?

There's a paper that goes into describing the process. I'm currently using this library for calculating ambient occlusion in terrains, and this approach may lead to a performance boost.

Even so much as a dedicated BVH builder for height fields would be really cool to see.

tay10r avatar Oct 05 '21 01:10 tay10r

Hello! I've started a new job and I am really busy at the moment, but if you feel confident doing this, feel free to send a pull request. I'm not sure if that would apply here, but note that any shape that has a bounding box should already be supported, essentially by implementing a custom primitive that fulfills the contract that the BVH builders and ray intersection kernel expects.

madmann91 avatar Oct 13 '21 17:10 madmann91

Congrats on the new job! I'll implement it and see if the build/traversal times are worth it, compared to the existing methods.

tay10r avatar Oct 13 '21 17:10 tay10r