EasyManuals Logo
Home>HP>Desktop>b2600

HP b2600 Reference Guide

HP b2600
486 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #269 background imageLoading...
Page #269 background image
L
gluLookAt
Chapter 10
269
gluLookAt
gluLookAt: define a viewing transformation.
C Specification
void gluLookAt(
GLdouble eyeX.
GLdouble eyeY,
GLdouble eyeZ,
GLdouble centerX,
GLdouble centerY,
GLdouble centerZ,
GLdouble upX,
GLdouble upY,
GLdouble upZ)
Parameters
eyeX, eyeY, eyeZ Specifies the position of the eye point.
centerX, centerY, centerZ
Specifies the position of the reference point.
upX, upY, upZ Specifies the direction of the up-vector.
Description
gluLookAt creates a viewing matrix derived from an eye point, a reference point
indicating the center of the scene, and an up-vector.
The matrix maps the reference point to the negative Z axis and the eye point to the
origin. When a typical projection matrix is used, the center of the scene therefore maps
to the center of the viewport. Similarly, the direction described by the up-vector projected
onto the viewing plane is mapped to the positive Y axis so that it points upward in the
viewport. The up-vector must not be parallel to the line of sight from the eye point to the
reference point.
Let
F = (centerx - eyex, centery - eyey, centerz- eyez), let up be the vector (upX, upY, upZ),
and then normalize as follows:
and
Finally, let s = f × up, and u = s × f.
M is then constructed as follows:
f
F
F
---------
=
up
up
up
------------
=

Table of Contents

Other manuals for HP b2600

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP b2600 and is the answer not in the manual?

HP b2600 Specifications

General IconGeneral
BrandHP
Modelb2600
CategoryDesktop
LanguageEnglish

Related product manuals