Home Multimedia Computer Graphics Window

Computer Graphics Window

0
309

In this topic, you will learn about, Computer Graphics Window.

The method of selecting and enlarging a portion of a drawing is called windowing. The area chosen for this display is called a window. The window is selected by world-coordinate.

Sometimes we are interested in some portion of the object and not in the full object. So we will decide on an imaginary box. This box will enclose desired or interesting area of the object. Such an imaginary box is called a window.

Viewport: An area on the display device to which a window is mapped [where it is to displayed].

Basically, the window is an area in object space. It encloses the object. After the user selects this, space is mapped on the whole area of the viewport. Almost all 2D and 3D graphics packages provide means of defining viewport size on the screen. It is possible to determine many viewports on different areas of display and view the same object at a different angle in each viewport.

The size of the window is (0, 0) coordinate which is a bottom-left corner and toward the right side until the window encloses the desired area. Once the window is defined data outside the window is clipped before representing to screen coordinates. This process reduces the amount of data displaying signals.

Viewing transformation or window to viewport transformation or windowing transformation:

The mapping of a part of a world coordinate scene to device coordinates is referred to as a viewing transformation etc.

viewport transformation

 

Viewing transformation in several steps:

First, we construct the scene in world coordinate using the output primitives and attributes.

To obtain a particular orientation, we can set up a 2-D viewing coordinate system in the window coordinate plane and define a window in the viewing coordinates system.

Once the viewing frame is established, are then transform description in world coordinates to viewing coordinates.

Then, we define viewport in normalized coordinates (range from 0 to 1) and map the viewing coordinates description of the scene to normalized
coordinates.

At the final step, all parts of the picture (i.e., outside the viewport are dipped, and the contents are transferred to device coordinates).

Comment below if you have queries related to the above article, Computer Graphics Window.

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here