O'Reilly logo

openFrameworks Essentials by Denis Perevalov, Igor Tatarnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Introduction to 3D graphics with openFrameworks

3D graphics is based on using the three-axes coordinate system (X, Y, Z). The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required