What should be contained in a game scene graph?
- by Bunkai.Satori
Would you help me to clarify, please, what what exactly should be contained within a game scene graph? See the following list, please:
Game Actors? (obviously yes, all the objects changing state should be the major prart of the Scene Graph)
Simple static game ojbects? (I mean ojects places in the background that do not get animated, neither do they collide)
Game Triggers?
Game Lights?
Game Cameras?
Weapon Bullets?
Game Explosions and Special Effects?
The above considered object types. Now to the coverage of the scene graph:
Should a scene graph contain the whole game level map since the level start, or should it contain only the visible portion of the map? If the second is true, it would mean that scene graph would be continuously updated, by adding/removing game objects, as the player moves. However, containing only the visible are of the map obviously would be much faster to traverse and update.