UpDirection

The LookDirection tells which direction the Camera is facing, but this does not completely specify the Camera’s orientation. You can still twist the Camera while keeping the LookDirection fixed on the same point in space, as shown in Figure 8.14. This is what you do with a physical camera to go from landscape to portrait orientation. You can use the UpDirection property to disambiguate this final component of the Camera’s orientation.

Image

FIGURE 8.14 The UpDirection property

The UpDirection property defaults to <0,1,0>. By specifying a different direction, such as <1,0,0>, you can turn the Camera on its side. Figure 8.15 shows the image ...

Get XAML Unleashed 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.