Projections and 3D Viewing

AIM: To understand perspective projections by drawing a house as the view reference coordinate system changes.

Read the description of the house from a file where the coordinates are as given in Foley et. al. Chap.6, page 243. Treat this as a series of vertices between which there are edges. Assume that the units for these values are in feet. Define the VRC as given in the examples in the book along with the window. Define a viewport in the screen coordinates as you see fit. Project using glut, glu and gl functions. The front and back planes need to be defined by you such that the entire object is visible. Define the view port as you wish.

The second part of this assignment involves having the PRP at a distance from the front of the house and a back plane that cuts off the back of the house. Then, move the PRP towards the house and the back plane by an equal amount in a timer handler to create an impression of animation. When the PRP is reasonably close to the house, start translating it towards the side of the house and define the window coordinates as needed and see how the side view is like. See the example coordinate values for the fig. 6.31 on page 247 for an idea of a side view.