Chapter 13. Camera Specifications and Transformations

13.1. Introduction

In this chapter, we briefly discuss camera specifications, which you already encountered in Chapter 6. Recall that we specified a camera in WPF in code like that shown below:

1    <PerspectiveCamera 2         Position="57, 247, 41" 3         LookDirection="-0.2, 0, -0.9" 4         UpDirection="0, 1, 0" 5         NearPlaneDistance="0.02" FarPlaneDistance="1000" 6         FieldOfView="45" 7              />

From such a specification, we will create a sequence of transformations that will transform the world coordinates of a point on some model to so-called “camera coordinates,” and from there to image coordinates. We’ll do so by repeatedly using ...

Get Hughes/Computer Graphics, 3/E 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.