I had a couple of questions after reading the docs for rtAccelerationSetProperty():
-
“Refit is only effective if there is an initial BVH already in place, and the underlying geometry has undergone relatively modest deformation.” – this implies I should only call rtAccelerationSetProperty(acc, “refit”, “1”) AFTER having built the bvh for the first time. Is that the case? Or does OptiX know to do a build internally first before refitting on subsequent launches?
-
“vertex_buffer_name”: Available in: Trbvh, Sbvh The name of the buffer variable holding triangle vertex data. Each vertex consists of 3 floats. The default is “vertex_buffer”. – This seems to imply that if my vertex buffer is in a variable called “vertex_buffer” then OptiX will find it and apply this optimization automatically. Is that the case? Or do I still need to call rtAccelerationSetProperty(acc, “vertex_buffer_name”, “vertex_buffer”) to tell OptiX to look for it?