I am beginner using Optix. I want to avoid building de BHV every time I load the model, by cache acceleration structure alonside the model, as suggested in this presentation (page 19)
The idea is to use rtAccelerationGetData the first time the tree is build, and rtAccelerationSetData the following times, since the scene geometry is fixed (there is no animation or moving object).
The problem is rtAccelerationGetData always return 320 bytes header and it´s seems there is no tree information. Checking the manual I found rtAccelerationGetData was deprecated in optix 4.0.
Which function or alternative scheme should I use?