This recipe is a very important milestone in the architecture of scene graphs; needless to say, a scene graph is all about the hierarchical connectivity. In the current concept, we maintain the parent-child relationship among similar types of objects. This recipe contains two subrecipes:
Building a simple parent-child relationship among renderable objects
Understanding the concept of a dummy parent
Note
The parent-child relationship is applicable to all renderable objects (derived from the
Model
class) and logical engine entities, such as scenes, renderer, and so on. In the present scene graph architecture, this relationship is achieved through theObject
class. This class allows you to add/remove children dynamically; each object can be recognized with a user-defined name.