How to invoke the bounding box program a second time?

Hello,

is there a possibility to invoke the bounding box program assigned to a geometry again?

Hi, tell me a little more about what you want to do… do you want to rebuild the BVH, or call the bounding box program from your closest hit program, or something else?

This is with OptiX <= 6.5, I assume? If you want to rebuild the BVH, you can set the BVH dirty, and the bounding box program will be called again as part of the rebuild. If you want to call the bounding box program directly, it’s just a function that you can call from your closest hit program.


David.

Hello David,

sorry, for this lack of information. I’m using OptiX 5.1.1 (with no possibility to change that) and trying some displacement stuff. I wanted to recalculate the bounding box when the displacement max changes. Marking the BVH as dirty was the answer to that, thank you very much!

1 Like