Functions | |
void | DSet_Camera_Position (double x, double y, double z) |
Similar to Set_Camera_Position(), but operates on double-precision cameras. More... | |
void | Set_Camera_Position (double x, double y, double z) |
Sets up your viewing tripod within the framework of the scene you've created. More... | |
Detailed Description
Function Documentation
◆ DSet_Camera_Position()
void DSet_Camera_Position | ( | double | x, |
double | y, | ||
double | z | ||
) |
Similar to Set_Camera_Position(), but operates on double-precision cameras.
- Parameters
-
x - x position, in object-space coordinates, at which to locate your vantage point. y - y position, in object-space coordinates, at which to locate your vantage point. z - z position, in object-space coordinates, at which to locate your vantage point.
◆ Set_Camera_Position()
void Set_Camera_Position | ( | double | x, |
double | y, | ||
double | z | ||
) |
Sets up your viewing tripod within the framework of the scene you've created.
- Parameters
-
x - x position, in object-space coordinates, at which to locate your vantage point. y - y position, in object-space coordinates, at which to locate your vantage point. z - z position, in object-space coordinates, at which to locate your vantage point.
DETAILS
In order to look at the scene you've created, you need some way of telling the system where to locate and aim its "TV camera". Set_Camera_By_Volume() is a simple utility that makes some assumptions and lets you quickly set up a 2-D camera. At the other extreme, the generic Set_Camera() routine requires complete details about every aspect of arranging the camera. In between these extremes are a set of routines (see below) that let you vary one detail at a time. In particular, Set_Camera_Position() lets you say where in your scene the camera is to stand, and Set_Camera_Target() lets you say what it's pointing at.
NOTES
If no camera exists 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, at Update time, the camera ends up positioned right on top of the camera target, an error is reported.