Spherical Coordinates from a non centered location

478 Views Asked by At

Assuming a pinhole camera centered at (cx,cy,cz) != (0,0,0) is there a more efficient way to compute it's projection in a spherical coordinate system centered at the origin other than performing a ray-sphere intersection for each pixel?

If the camera was centered at the origin the trivial solution would be:

theta = arccos(y/r)
phi = arctan2(x,z)
0

There are 0 best solutions below