Functions | |
void | Set_Camera_Target (double x, double y, double z) |
void | DSet_Camera_Target (double x, double y, double z) |
void Set_Camera_Target | ( | double | x, |
double | y, | ||
double | z | ||
) |
Determines what your viewing camera is looking at.
x | - x position, in object-space coordinates, of the center of your field of view. |
y | - y position, in object-space coordinates, of the center of your field of view. |
z | - z position, in object-space coordinates, of the center of your field of view. |
In order to look at the scene you've created, you need to explain where you're standing, what you're looking at, and how wide your eyes are. The three corresponding functions are Set_Camera_Position() , Set_Camera_Target() , and Set_Camera_Field() .
Set_Camera_Target() determines what point in your "object space" (the reference space in which your graphical entities have been defined) will appear in the center of your Window. The default Camera Target is (0.0, 0.0, 0.0), and the default Field is from -1.0 to +1.0 on each axis. If your object is located somewhere else, or if the camera gets knocked aside, you might not see anything at all on the screen.
see Set_Camera_Position() for a more complete description of how this all works.
If no camera previously existed in the specified segment, then a complete default camera will be provided, without regard to any camera specifications that there may be in the higher-up segments.
If the camera ends up positioned right on top of the camera target, an error is reported at Update time.
void DSet_Camera_Target | ( | double | x, |
double | y, | ||
double | z | ||
) |
Similar to Set_Camera_Target(). This command should be used in conjunction with other double-precision Set_Camera functions.
x | - x position, in object-space coordinates, of the center of your field of view. |
y | - y position, in object-space coordinates, of the center of your field of view. |
z | - z position, in object-space coordinates, of the center of your field of view. |
No additional details. See Set_Camera_Target()