O'Reilly logo

XAML Developer Reference by Ashish Ghoda, Mamta Dalal

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

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.

Coordinate system in 2-D and in 3-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. ...

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