0
3.7kviews
Define window, view point and derive window to view point transformation.

Mumbai university > Comp > SEM 4 > Computer Graphics

Marks: 10M

Year: May 2014 , Dec 2014

1 Answer
1
35views

Window:

  1. The space in which the object is described is called as world coordinate.

  2. World coordinate area selected for display is called as window.

  3. Window is rectangular portion through which we can see scene.

  4. It is an opening through which we see a portion of the world that exist outside.

  5. In window we have limitation of scene specified by the boundary of the windows.

  6. The window world specifies which part of the world should be drawn: whichever part lies inside the window should be drawn, and whichever part lies outside should be clipped away and not drawn.

  7. OpenGL does the clipping automatically.

Viewport:

  1. It may happen that we may not use entire screen for display.

  2. We just want some part of screen to display the image.

  3. So we will form a rectangular box on screen and in that box only we will display the image.

  4. This box is called as viewport.

Window to view point transformation:

i. Window to view transformation is also called as viewing transformation.

ii. The viewing transformation is a process of three steps.

Step 1: Translation

The object with its window is translated until the lower left corner of the window matches to the origin. As shown in figure 21.

enter image description here

Step 2: Scaling

The object and the window are now selected until the window has the dimension same as viewport. In other words we are converting window into viewport. Refer figure 22.

enter image description here

Step 3: Translation

Now perform another translation to move the viewport to its correct position on the screen as shown in figure 23.

enter image description here

In reality we use scaling to map window to viewport and translation to place viewport properly on screen.  

Please log in to add an answer.