Original Post
Hello! Now that I've completed lower-level parts of my engine (windowing / rendering API abstraction, etc), I'm ready to dive into something new : Building a scenegraph system. However, I don't think I am ready yet to build a 3D Scenegraph system so I'd like to start out with a 2D one first. The project in which I will be using this is a side-scrolling space-shooter game. As I've never programmed such I thing, I'd like some tips/help/ressources on how to get started. I'd like to know : 1- General theory about what a scenegraph is, how it works, how to build one and such 2- Which data must be stored at each node? (World transform, Z-value, bounding box?) 3- Must all of the level objects be loaded at the beginning but only updated/rendered when they come into the viewing frustrum? 4- Which classes should be created and what should their individual tasks be? (exemple : class RootNode, Node, Entity, SceneGraph) If anyone has done such a thing, I'd like some infrmation to get started well. Thanks a lot