3-D Graphics
Having seen how to create and render 2-D graphics objects, you will now explore how to render 3-D graphics objects in XAML.
WPF and Silverlight each implement 3-D graphics in their own way. First you’ll see how to work with 3-D graphics in WPF.
3-D Graphics in WPF
As depicted in Figure 9-10, the coordinate system in 3-D is different from that in 2-D.
Figure 9-10. Coordinate system in 2-D and in 3-D.
To create 3-D graphics, you need four components: a model, a material, a camera, and a light source. A model in 3-D is similar to a drawing in 2-D. A material in 3-D is similar to a brush in 2-D.
You use Model3D-derived classes to create the models. ...
Get XAML Developer Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.