06-07-2012, 03:51 PM
WINDOW TO VIEWPORT MAPPING
To write a C program to perform Window to Viewport transformation.
Algorithm
Step1: Draw a world coordinate area selected for display called as window. This window defines what is to be viewed.
Step 2: Draw an area on a display device to which a window is mapped called as Viewport. The viewport defines where it is to be displayed.
Step 3: Now perform the mapping of a part of a world-coordinate scene to device coordinates referred as viewing transformation.