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

Chapter 5. Texture and Materials

In this chapter:

Gradient Brushes 185

Tile Brushes 194

Specular and Emissive Materials 228

Generally the worlds of two-dimensional graphics and three-dimensional graphics are kept far apart. Each world has its own paradigms, its own classes for defining visible objects, and its own transforms. But the two worlds meet where brushes are concerned: Three-dimensional figures are always covered with two-dimensional surfaces. It seems reasonable that these surfaces could be colored and patterned with the array of brushes WPF provides for two-dimensional graphics, and that's precisely the case.

So far I've been decorating 3D figures with solid colors. In this chapter I'll show you how to use gradient brushes and tile brushes, ...

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