Game Development Reference
In-Depth Information
General Overview of OpenGL Object Rendering
The general procedure to render a 3D object in OpenGL is discussed in this section. The following
general steps are used to render a 3D object in OpenGL to the final viewing window.
1.
Put 3D objects in the world:
Place the 3D objects you are going to use in the
3D world (see Figure
4-1
).
y
z
3D Object Models
X
Z
Figure 4-1.
Putting 3D objects into the world
2.
Place camera into the world:
Place the viewer, which you can think of as a
camera or as a human eye, into the 3D world (see Figure
4-2
).