knightcrawler25 / Optix-PathTracer

Simple physically based path tracer based on Nvidia's Optix Ray Tracing Engine
317 stars 36 forks source link

RT_CALLABLE_PROGRAM?? #9

Closed tom-sakai601220 closed 4 years ago

tom-sakai601220 commented 5 years ago

I run sample I was caught exception as follows. OptiX Error: 'Invalid context (Details: Function "_rtProgramGetId" caught exception: Validation error: _Z6SampleR17MaterialParameterR5StateR19PerRayData_radiance function with semantic type BINDLESS_CALLABLE_PROGRAM accesses the rtCurrentRay semantic variable.)'

What's up??

I Develop under Optix 6.0,0.

knightcrawler25 commented 5 years ago

I think it has to do with me using rtCurrentRay in a callable program. The code runs fine on Optix 5.x but I guess the newer versions of Optix have enforced some restrictions. I will update the code to have it run on 6.0

knightcrawler25 commented 5 years ago

I have fixed the code. Can you try now and see if its working for you?

tom-sakai601220 commented 5 years ago

Thank you for changing the code.