It's actually pretty simple. At zero degrees latitude the camera is
level at zero degrees rotation. The camera sits on the surface at the
radius of the sphere. If the camera is moved to 30 degrees latitude it
should be rotated 30 degrees to remain level with the horizon. As the
camera moves in longtitude it is rotated around the y-axis.
This is the same problem as polar aligning an equatorial telescope
mounting for astrophotography.
However, in POV-Ray we are not restricted to real-world constraints and
so we can avoid spherical navigation altogether by locating the camera
at the north pole and the rotating the sphere while the camera remains
stationary.
steve
Arthur Flint wrote:
> I have been working with placing a camera on the surface of a sphere
> on a random position. I would like the camera to be aligned so that
> the the surface is "down". I guess that "up" would be the vector to
> rotate
> around to view the surface.
> Assuming a vector of SurfaceDirection as "up", what are the prameters
> for the camera?
> --
> Advanced means constantly wondering where reality gets its processing
> power.
Post a reply to this message
|