I just wanted to know how to dynamically update a compacted acceleration structure.
So I’ve done the below from examples in the docs but don’t know how to do #4
- Build acceleration struct GAS (optixAccelBuild() with OPTIX_BUILD_OPERATION_BUILD)
- Compact GAS (optixAccelCompact())
- Update GAS (optixAccelBuild() with OPTIX_BUILD_OPERATION_UPDATE)
- Recompact GAS (call optixAccelCompact() again?)
Do I need to call optixAccelCompact() again after I update the GAS or is this done implicitly?
From the docs it says…
“A compacted acceleration structure supports dynamic updates only if the uncompacted source acceleration structure was built with the [OPTIX_BUILD_FLAG_ALLOW_UPDATE] build flag”
but don’t have an example how it is done.