How, exactly do I produce a 2D distortion that takes an orthographic image of a sphere and make it look like it's rotating?
I have this image of an eyeball What I'd like to do is come up with a way to distort the image so that it looks as if the eyeball is looking around (rotating). So, as the iris gets closer to the edge it becomes more compressed and warped to the curve of the sphere.
I've tried all sorts of stuff having to do with polar and Cartesian coordinates and I can get it close but nothing quite gives the effect that an actual sphere is rotating.
There are two distinct parts in your question 1) and 2).
Let us consider a rotation with angle $R$ to the right for the owner of the eye, therefore to the left for the observer. let us call $A$ the Azimuth and $E$ the Elevation.
Fig. 1: A small feature and its image by a rotation with $R=5 \pi/12$ using formulas (1).
where $A$ and $A'$ are the old and new azimuth, $E$ the common elevation, and $A'=A+R$ where $R$ is the rotation angle. (1) can be done by using the following computations:
$$A=\arccos\left(\dfrac{x}{\sqrt{1-y^2}}\right) \ \ \to \ \ x'=\cos(A+R)\sqrt{1-y^2}\tag{2}$$
Please note that we have taken a radius equal to $1$.
$$\text{relative distorsion coefficient: } \ \ \dfrac{\sin(A)}{\sin(A')}\tag{3}$$
Please note that (3) is independent from Elevation.