 |
vllook_at
NAME
vllook_at - Define a viewing transformation
SYNOPSIS
#include <parvox.h>
void vllook_at(float eyeX, float eyeY, float eyeZ,
float gazeX, float gazeY, gloat gazeZ,
float upX, float upY, float upZ)
DESCRIPTION
vllook_at()
creates a viewing matrix derived from an eye point, a gaze point indicating
the center of the scene, and an up vector. The matrix maps the gaze
point to the negative z axis and the eye point to the origin. The
direction described by the up vector projected onto the viewing plane is
mapped to the positive y axis. The up vector must not be parallel to the
line of sight from the eye to the gaze point. The current matrix
is multipled by this viewing matrix, with the product replacing the current
matrix.
SEE ALSO
vlmatrix_mode,
vlviewport
BACK TO INDEX
|
 |