更新时间:2021-04-13 16:47:59
封面
版权页
Credits
About the Author
About the Reviewers
Preface
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Installing Ogre 3D
Time for action — downloading and installing Ogre 3D
The Ogre 3D samples
Time for action — building the Ogre 3D samples
The first application with Ogre 3D
Time for action — starting the project and configuring the IDE
Loading the first model
Time for action — loading a model
Summary
Chapter 2. The Ogre Scene Graph
Time for action — creating a scene node with Ogre 3D
Setting the position of a scene node
Time for action — setting the position of a scene node
Rotating a scene node
Time for action — rotating a scene node
Scaling a scene node
Time for action — scaling a scene node
Using a scene graph the clever way
Time for action — building a tree using scene nodes
Have a go hero — adding a following ninja
Different spaces in a scene
Time for action — translating in World space
Translating in local space
Time for action — translating in local and parent space
Rotating in different spaces
Time for action — rotating in different spaces
Scaling in different spaces
Chapter 3. Camera Light and Shadow
Time for action — creating a plane
Adding a point light
Time for action — adding a point light
Adding a spotlight
Time for action — creating a spotlight
Directional lights
Time for action — creating a directional light
The missing thing
Time for action — finding out what's missing
Adding shadows
Time for action — adding shadows
Creating a camera
Time for action — creating a camera
Creating a viewport
Time for action — doing something that illustrates the thing "in action"
Chapter 4. Getting User Input and Using the Frame Listener
Time for action — preparing a scene
Adding movement to the scene
Time for action — adding movement to the scene
Modifying the code to be time based rather than frame based
Time for action — adding time-based movement
Adding input support
Time for action — adding input support
Adding movement to the model
Time for action — controlling Sinbad
Adding a camera
Time for action — making the camera work again
Adding wireframe and point render mode
Time for action — adding wireframe and point render mode
Adding a timer
Time for action — adding a timer
Chapter 5. Animating models with Ogre 3D
Time for action — adding animations
Playing two animations at the same time
Time for action — adding a second animation
Let's walk a bit
Time for action — combining user control and animation
Adding swords
Time for action — adding swords
Printing all the animations a model has
Time for action — printing all animations
Chapter 6. Scene Managers
Time for action — creating a blank sheet
Getting the scene manager's type
Time for action — printing the scene manager's type
Another scene manager type
Time for action — using another scene manager
Creating our own model
Time for action — creating a model for displaying blades of grass
Adding volume to the blades of grass
Time for action — using more triangles for volume
Creating a field of grass
Time for action — building a field of grass
Exploring the name scheme
Time for action — printing the names
Static geometry
Time for action — using static geometry