last days I was debugging my code cause the rays are missing every object I add to the context.
My problem is that I can’t add a “rtPrintf” to the intersection functions.
rtPrintf("Ray: (%f, %f, %f)\n", ray.origin.x, ray.origin.y, ray.origin.z);
to “intersect” function in “sphere.cu” results in a context compile error:
terminate called after throwing an instance of 'optix::Exception' what(): Invalid value (Details: Function "_rtContextCompile" caught exception: Error locating PTX Symbol: $str, )
Is there any solution for this problem?