The ray gen program is nullptr. So is the phong first hit, but not the any hit. I tried resolving this warning by setting compute_10,sm_10 to compute_20,sm_20 but that just broke more programs.
You can ignore this warning. It will show up when you use compute_10, sm_10.
Can you verify that “C:\Users\Diede\Documents\Visual Studio 2010\Projects\OptixSample2\Debug\pinhole_camera.cu.ptx” exists? If the ptx file is in a different location, you will have a problem.
You could also wrap the lines with error checking to make debugging much easier:
Yes, if I paste the path in the explorer and remove the extra ‘/’ the files opens. I currently can’t do RT_CHECK_ERROR2() because I use my own rendering library and therefor didn’t get sutil in it. I can try to add it some later time. Any other ideas? I’m guessing there might be something wrong with the compilation, as some parts work (like the fist hit in phong.cu fails, but the any hit works fine). Thanks for the swift reply.