Chapter 5. Creating 3D Graphics
3D graphics is a technique for representing 3D objects and drawing them on a 2D screen. It extends 2D graphics, which we considered in previous chapters, using a number of new notions, including the 3D coordinate system, Z-buffering, camera object, lighting, and texturing. In this chapter, we will consider the basics of 3D graphics in openFrameworks by discussing these new notions and covering the following topics:
- Drawing a wireframe, solid, and textured sphere
- Deforming and extruding a sphere
- Mixing 2D and 3D graphics
As a result, we will obtain a colorful and fancy 3D sphere on the screen.