I need a way to find the underlying 3D coordinates for each pixel of the camera in Python.
I to create a function like:
GetCoordinatesForPixel(xPixel, yPixel)
which returns a (X, Y, Z) vector.
I found the following threads:
How to get world coordinates of pixels? which is supposed to be a duplicate of this one: How to render world position pass
The latter solution works in that it procudes a render. However, I do not see a way to access those values in Python.