-
I'm trying to refit my BVH of spheres to account for modified radii and centers. I'm running into an issue, where the modified radii and centers are visible in OPTIX_BOUNDS_PROGRAM, but not in OPTIX_INTERSECT_PROGRAM. These are the steps I followed to refit the bvh:
Please let me know if I'm missing something. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I assume you have forgotten/omitted a "owlBuildSBT" call after changing the radius: For any of the "default" RTX programs (intersect, closesthit, etc) the parameters are pulled from the SBT, so this needs rebuilding if paramters change. The reason that it does work for the bounds program is that we handle the bounds prog outside the RTX pipeline, so the parameters are pulled from another place that does not require rebuilding the SBT. |
Beta Was this translation helpful? Give feedback.
I assume you have forgotten/omitted a "owlBuildSBT" call after changing the radius: For any of the "default" RTX programs (intersect, closesthit, etc) the parameters are pulled from the SBT, so this needs rebuilding if paramters change. The reason that it does work for the bounds program is that we handle the bounds prog outside the RTX pipeline, so the parameters are pulled from another place that does not require rebuilding the SBT.