Chapter 12. Models and Scenes
In this chapter, we are going to develop a Model class that attaches a transformation to a Mesh. We will then move on to managing large sets of models in a scene. Because a Scene can contain a large number of models, we will add an acceleration structure to the Scene. This chapter will cover the following topics:
- The Model object
- Operations on Models
- The Scene object
- Operations on the Scene
- The Octree object
- Octree contents
- Octree operations
- Octree Scene integration
Introduction
In order to represent meshes in the world, we need to add some kind of a transformation to the mesh. We do this by wrapping both the mesh and its related transformation data in a Model
class. Instead of managing many independent models, like we have ...
Get Game Physics Cookbook 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.