Click or drag to resize
DigitalRuneScene Management

This topic discusses how the content of a graphics scene is defined.

This topic contains the following sections:

Graphics objects

The namespace DigitalRune.Graphics contains various types which define graphics objects (also called data objects) which can be rendered onto the screen, for example: Mesh, Billboard, Sprite, Figure, ...

There are also many objects which might not be visible itself, but which define how the other objects appear, for example Camera and Light.

These classes define graphics objects, but they usually do not define how these objects are positioned in a scene.

Scene graph

A Scene Graph (namespace DigitalRune.Graphics.SceneGraph) defines how graphics objects are organized in a scene. The scene graph is a tree-like structure. It has a root element, which implements IScene. It contains scene nodes which are derived from the class SceneNode.

Scene nodes usually only store the information for positioning a graphics object within a 3D scene. For example: A MeshNode (scene node) references a Mesh (graphics object). Graphics objects, like the Mesh, can be shared between scene nodes.

Scene queries

The scene graph can also be used to quickly find scene nodes that match a certain criterion, for example: All scene nodes which are visible by the current camera. These search operations are called Scene Queries.

Subtopics