VolumeRendering
Scene Graph to Open GL
← OpenGL Matrix Stack | ● | Scene Graph APIs →
A scene graph can be translated into direct rendering commands by following these simple guide lines:
- Camera transformation comes first
- Walk the graph depth-first
- Whenever a transformation node is traversed down-wards, issue a glPushMatrix command followed by the respective transformation.
- Whenever a transformation node is traversed up-wards, issue a glPopMatrix command.
For example the following scene graph
is translated into the following direct OpenGL command sequence
← OpenGL Matrix Stack | ● | Scene Graph APIs →