Return to index
NAME
cam - create a camera
SYNOPSIS
cam [
id
= ] (
eye point | center point | up vector | view h_angle v_angle
)+
DESCRIPTION
Create a new camera with the following parameters:
- eye : eye of the camera. Default value (0,0,1).
- center : center of interest point. Default value (0,0,0).
- up : up direction vector. Default value (0,1,0).
- view : aperture angles. Default value (45, 45).
If the camera hasn't got name then it can't be used in a channel animation.
EXAMPLE
# Create a new camera persp
cam persp =
eye 0 0 0
up 0 1 0
center 0 0 -346.236
view 37.8493 37.8493
# Define a channel to rotate the camera.
channel persp.up XRotate [X] persp_rotateX
channel persp.center XRotate [X] persp_rotateX
SEE ALSO
channel