CS-321 Lab 7 Examples: 3-D Transformations and Perspective

Here is the data file that was used to generate the renderings below. You will probably need to adapt it to be readable by your program.

Viewing DataPhotoRendering
obs: 180 15 125
look@: 0 15 0
up: 0 1 0
vpd: -400
[View 1 Photo] [View 1 Rendering]
obs: 0 6 60
look@: 50 60 0
up: -0.2 1 0
vpd: -300
[View 2 Photo] [View 2 Rendering]

Note that the viewing plane distance is scaled to convert from world/view coordinates in feet to device coordinates in pixels. It can also be thought of as controlling how wide angle or telephoto the lens is.