Quote:Original post by Promit
Wouldn't this be exactly the same transformation used to represent a globe on a flat map? You'd have a choice of several different ways; this MathWorld page has the math behind Mercator, for example.
Not quite. For instance, the Mercator projections projects a sphere onto a cylinder of infinite height (which you can then "cut" and "unroll" to form a rectangle). Unfortunately, a screen does not have infinite space. ;)
Quote:Original post by Zao
You could look into PanQuake, a hack on the Quake 1 sources to achieve a 360 degree panorama view.
They have full sources available.
Hmm, this looks more promising. It would have to be a completely panoramic view, however. Generally, when people say panorama, they mean that the viewing area is a plane P is passed through the center of the viewing sphere, and then two equidistant planes P_top and P_bottom are passed through the sphere as well. The intersected area is the panorama.
I'll see if I can get it to generalize to my particular case which is where P_top and P_bottom are tangent to viewing sphere itself (i.e., the intersected area is the whole sphere).
I do know this much -- my projection would definitely have to have the following properties:
1.) If the camera is pointing in a given direction, the point at the opposite direction is on the edge of the viewing rectangle. In fact,
every point on the edge of the viewing rectangle is the same point (namely, the point just described).
2.) The infinitesimal distortion as a fraction of the overall sphere is zero in the direction of the camera and tends to 1 as one approaches the edges.
3.) The only great circle of the viewing sphere that would appear as a line is the one that passes through the poles. ALl other circles are apparent curves (parabolas, I think).
4.) Not an affine transformation.