I have been playing for some time with the example code “OptixPathTracer”.
I understand correctly how a ray is thrown from “eye” to a certain pixel (launch_index).
But I needed to do the reverse process. Given a position (x, y, z) I need to find the pixel where it is (whenever it exists).
There is some simple and efficient way in OPTIX to get the pixel (uint2) associated with this position (x, y, z). That is, perform the projection of the point for the current camera and context?
Thank you very much in advance.