Menu

#10 Scene class

open
nobody
None
5
2010-10-29
2010-10-29
Anonymous
No

Using the GsgNode class

Has a reference to a camera and lights

Maintains a "DAG" (Directed Acyclic Graph) of Nodes

First it builds all the model to world matrices for
every node, including nested ones.

It gets the model to world transform of the camera
inverts this transform and sets it in the matrix stack before
traversing the graph of nodes and rendering them.

It is also responsible for finding the lights and setting
glLight parameters for these.

Discussion


Log in to post a comment.