Hello.
What would be the best way to build a accel structure where a mesh has multiple primitives, and pass a per geometry chunk of data which can then be accessed by optixGetGASPointerFromHandle.
Currently having to create one gas + geometry data per primitive, and then create a OptixInstance with the gas handle, even for a mesh with multiple primitives.
If a gas handle is created by passing multiple build inputs to optixAccelBuild, and their respective geometry chunks copied back to back preceding the gas handle, how can the chunks be indexed into in the optix programs after getting the pointer using optixGetGASPointerFromHandle. Is there a way to know which mesh primitive is hit using optix functions ?
So I feel multiple GAS handles per OptixInstance would be useful, so that each gas handle with custom data can be accessed using optixGetGASPointerFromHandle and also there is no duplication of OptixInstance.
I hope I have been able to bring out the point clearly.
Cheers and Thank You