Signature
Parameters
Description
gluPerspective
specifies a viewing frustum into the world coordinate system.
In general, the aspect ratio in
gluPerspective
should match the aspect ratio
of the associated viewport. For example,
means
the viewer's
angle of view is twice as wide in
x
as it is in
y
.
If the viewport is
twice as wide as it is tall, it displays the image without distortion.
The matrix generated by
gluPerspective
is multiplied by the current matrix,
just as if
glMultMatrix
were called with the generated matrix.
To load the perspective matrix onto the current matrix stack instead,
precede the call to
gluPerspective
with a call to
glLoadIdentity
.
Given
f
defined as follows:
Notes
Depth buffer precision is affected by the values specified for
zNear
and
zFar
.
The greater the ratio of
zFar
to
zNear
is,
the less effective the depth buffer will be at distinguishing between
surfaces that are near each other.
If
See Also
Copyright
Copyright
1991-2006
Silicon Graphics, Inc. This document is licensed under the SGI
Free Software B License. For details, see
http://oss.sgi.com/projects/FreeB/
.
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
gluPerspective
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 755
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube_controlled.py
Lines: 93
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube.py
Lines: 40
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py
Lines: 152, 459
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 772
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 754