Brief Index      Full Index      Events Index      I.M. Reference

Set_Camera_Position


Functions

void Set_Camera_Position (double x, double y, double z)
void DSet_Camera_Position (double x, double y, double z)

Function Documentation

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.

RESTRICTIONS

See also:
Set_Camera or Set_Camera_By_Volume, Set_Camera_Projection, Set_Camera_Field, Set_Camera_Target, Set_Camera_Up_Vector, Zoom_Camera, Orbit_Camera, Pan_Camera, Dolly_Camera, Roll_Camera, Set_Window, Translate_Object, Rotate_Object.

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.

Brief Index      Full Index      Events Index      I.M. Reference