Skip to content

what is the role of optixPipelineLinkOptions.maxTraceDepth? and how to use Callable in OWL? #168

Answered by ingowald
StringHeart asked this question in Q&A
Discussion options

You must be logged in to vote

Re maxTraceDepth: maxTraceDepth is an optix flag the specifies how deeply you can nest optixTrace calls: in optix, you can launch new rays in two places - raygen and closest hit program - and that flag configures the pipeline to specify how deep you can nest those calls. If you only ever trace rays in the raygen program, then your nesting depth is only 1; if you want to trace a ray from raygen, and want that ray's CH program to trace another ray (say, a shadow ray) then you'll have depth of 2; if you want the CH program to implemen path tracing by recursively tracing more rays from CH programs, then you'll have to use even more of a depth.

Note this is expensive, though, since optix has t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@StringHeart
Comment options

Answer selected by StringHeart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants