Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
282 Chapter 4 Scene Graphs
N
0
S
0
N
2
S
2
N
1
S
1
G
3
S
3
N
4
S
4
G
5
S
5
G
6
S
6
Figure 4.8 A common situation for updating render state.
The protected member functions are helper functions for the depth-first traversal.
The function
PushState pushes any global state and lights that the Spatial object
has attached to it onto stacks. The function
PopState pops those stacks. The intent
is that the stacks are used by all the nodes in the scene hierarchy as they are visited.
Function
Node::UpdateState has the responsibility for propagating the update in a
recursive traversal of the scene hierarchy. Function
Geometry::UpdateState is called
at leaf nodes of the hierarchy. It has the
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303