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

Fields of View

If you have experience with two-dimensional graphics, you're probably familiar with drawing in units of pixels, millimeters, or—in the Windows Presentation Foundation—"device-independent units" of 1/96 inch. In the WPF 3D you're dealing entirely with relative units, so you may initially be confused by how big something will be on the screen and what you can actually see.

Programmers will often use small numbers for points within a Viewport3D, but it's not a requirement. If you change one of the programs shown so far by increasing all the Point3D coordinates by a factor of 100 in the Positions collection of the MeshGeometry3D and the Position property of the PerspectiveCamera, everything will look the same.

You've already noted that ...

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