HIPRTSDK icon indicating copy to clipboard operation
HIPRTSDK copied to clipboard

[Question]: Saving BVH

Open ib00 opened this issue 10 months ago • 1 comments

There's an example of how HIPRT uses a user provided BVH.

What about creating a BVH of some scene with HIPRT and then saving it out to a file for later import. Is there an example for that?

ib00 avatar Apr 20 '24 11:04 ib00

There is no tutorial for that, but you can save hiprtGeometry (BLAS) to a file. Here is an example how to do that: https://github.com/GPUOpen-LibrariesAndSDKs/HIPRT/blob/main/test/main.cpp#L822-L907

We haven't implemented this for the hiprtScene (TLAS). There is an issue with the (device) pointers that need to be remapped correctly when loading the data back. The problem is that the scene and geometries are treated separately.

meistdan avatar Apr 21 '24 23:04 meistdan