Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Scenes Namespace Reference


Compounds

class  Teddy::Scenes::Camera
 Camera. More...

class  Teddy::Scenes::Ellipsoid
class  Teddy::Scenes::PostElement
 Postprocessing rendering element. More...

class  Teddy::Scenes::Scene
 Collections of Models, Lights and Cameras. More...

class  Teddy::Scenes::SkyBox
 Camera skybox model. More...


Detailed Description

This namespace contains the root of Teddy scene graph. Root for each scene is an instance of Scene class. Teddy scene is simply created by creating an instances of Scene and using add() method to add Models and Lights to it.

To display Teddy scene you must have PhysicalComponents::Projection, Scenes::Camera and Scenes::Scene. These three are independent. You can have several scenes, one camera, and several projections, or one scene, several cameras, and one or more projections.

Projection are spesifies some rendering preferences for that spesific area. Examples of such preferences are: lighting model, filled/outline polygons, and coloring.

Camera spesifies the viewing position, direction and field of vision. In the implementation Camera is responsible for negotiating projection and modelview matrices.

Scene simply contains all lightsources and models in the scene.