December 2022
Intermediate to advanced
702 pages
27h
English
To create a 3D object in CG one assembles its surface, or a good likeness, with help of 2D primitives. For example, the seemingly 3D solid ball and torus in the screenshot Figure 8.1, seen originally in Chapter 4, are actually depicted by their respective 2D surfaces. Note that the calls glut Solid Sphere() and glut Solid Torus() in ballAndTorusLitOrthoShadowed.cpp to draw these surfaces refer to filled triangles, not solid 3D objects. Boris's head in Figure 8.2 is a mesh of quads.

Figure 8.1: Screenshot of ballAndTorusLitOrthoShadowed.cpp.
Figure 8.2: Mesh of Boris's head (courtesy of Sateesh Malla at www.sateeshmalla.com ...
Read now
Unlock full access