I'm writing an equirectangular map viewer, all the stuff I have found so far are about the projection, conversions and inverse ones, which is the easiest part.
I don't want to use OpenGL or DirectX sphere texture solutions, I want to draw the image pixel by pixel. The only problem I have is in transformation of the viewer's camera rectangle.
I mean, I have a rectangle through which the viewer shows the equivalent pixels on the map. When viewer looks up or down, or left or right, this view changes, but the changes are not linear, even in a spherical coordination system. As the rectangle's dimensions should kept constant in a Cartesian sense, otherwise we will have a deformation.
Can anyone tell me how to solve this problem? A link to a good document, or a hint to where I start is all that I need. Thanks in advance.