Time for action—creating the famous OpenGL teapot

The GLUT library has the ability to render a solid teapot model directly. Both the teapot surface normals and texture coordinates are automatically generated. And the teapot is generated by using OpenGL evaluators as well.

You may want to download the GLUT library first, which is designed as a third-party project of OpenGL. The source code can be found at either of the following websites:

The prebuilt binaries, header files, and libraries can also be downloaded, which include everything you need to get started with GLUT.

  1. We have to modify the CMake script file to find GLUT and add it as a dependency of our OSG-based ...

Get OpenSceneGraph 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.