O'Reilly logo

3D Programming for Windows® by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Camera Transforms

Although I introduced the PerspectiveCamera and OrthographicCamera classes in Chapter 1 I neglected the MatrixCamera class. MatrixCamera is much harder to use, but just figuring out how to use it provides many insights into the mathematics behind 3D graphics. Having a good grasp of camera transforms is also important whenever you need to let the user manipulate 3D objects with the mouse.

When WPF 3D is composing a 3D scene, many transforms might be involved in determining where the coordinates of a figure are located. The application of transforms begins with the GeometryModel3D, then any Model3DGroup that the GeometryModel3D might be a part of, then the ModelVisual3D, and then any parent ModelVisual3D objects that might be present. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required