All Exams Test series for 1 year @ ₹349 only
Question

Rearrange steps involved in two dimensional viewing transformation.

I. Map normalized viewport to device Co-ordinates

II. Convert world co-ordinate to viewing co-ordinates

III. Construct world – co-ordinate scene using modeling coordinate transformation

IV. Map viewing co-ordinates to normalized viewing co-ordinates using window-viewportspecification

The correct answer is

III → II → IV → I

Understanding 2D Viewing Transformation Steps

Two-dimensional viewing transformation is a fundamental process in computer graphics that determines which parts of the scene created in the world coordinate system are displayed on the output device. It involves a sequence of transformations to map objects from their original definitions to the final screen coordinates.

The question asks to rearrange the steps involved in this process. Let's analyze the provided steps and place them in the correct order within the typical 2D graphics pipeline.

Sequence of 2D Viewing Transformation

The standard sequence for the 2D viewing pipeline involves several transformations:

  1. Modeling Transformation: Objects are initially defined in their own local coordinate systems (modeling coordinates). Modeling transformations are applied to position, orient, and scale these objects into a common coordinate system, known as the world coordinate system. This corresponds to constructing the scene.
  2. Viewing Transformation: A "window" is defined in the world coordinate system to specify the rectangular region that is visible. Viewing transformation converts world coordinates to viewing coordinates, establishing a coordinate system relative to the window.
  3. Clipping: Objects or parts of objects outside the viewing window are removed. (Although not explicitly listed as a step in the options, it is an important part of the pipeline, typically done after the viewing transformation).
  4. Window-to-Viewport Transformation: The viewing window (in viewing coordinates) is mapped to a "viewport" on the display device. The viewport is usually a rectangular area in a normalized coordinate space (normalized viewport), typically ranging from 0 to 1 or -1 to 1 for both x and y. This transformation scales and translates the window contents to fit the normalized viewport.
  5. Normalized Viewport-to-Device Transformation: The normalized viewport is then mapped to the physical coordinates of the display device, such as pixel coordinates on a screen. This determines where the scene appears on the display.

Let's match the given steps (I, II, III, IV) to this pipeline:

  • III. Construct world – co-ordinate scene using modeling coordinate transformation: This aligns with the initial stage of defining objects in modeling coordinates and transforming them into the world coordinate system (Modeling $\rightarrow$ World). This is typically the first step in preparing the scene.
  • II. Convert world co-ordinate to viewing co-ordinates: This is the viewing transformation step (World $\rightarrow$ Viewing). This happens after the scene is set up in world coordinates.
  • IV. Map viewing co-ordinates to normalized viewing co-ordinates using window-viewport specification: This describes the window-to-viewport transformation, mapping from viewing coordinates (within the window) to normalized viewport coordinates. This occurs after the viewing transformation and potentially clipping.
  • I. Map normalized viewport to device Co-ordinates: This is the final step, mapping from the normalized viewport to the physical device coordinates (Normalized Viewport $\rightarrow$ Device).

Based on the standard pipeline, the correct order of the provided steps is:

  1. III. Construct world – co-ordinate scene using modeling coordinate transformation (Modeling $\rightarrow$ World)
  2. II. Convert world co-ordinate to viewing co-ordinates (World $\rightarrow; Viewing)
  3. IV. Map viewing co-ordinates to normalized viewing co-ordinates using window-viewportspecification (Viewing $\rightarrow; Normalized Viewport)
  4. I. Map normalized viewport to device Co-ordinates (Normalized Viewport $\rightarrow; Device)

Thus, the correct sequence is III $\rightarrow$ II $\rightarrow$ IV $\rightarrow$ I.

Transformation Stages Table

Step Description Transformation Input Coordinates Output Coordinates
III Construct World Scene (Modeling Trans.) Modeling to World Modeling Coordinates World Coordinates
II Viewing Transformation World to Viewing World Coordinates Viewing Coordinates
IV Window-to-Viewport Mapping Viewing to Normalized Viewport Viewing Coordinates (Window) Normalized Viewport Coordinates
I Normalized Viewport to Device Mapping Normalized Viewport to Device Normalized Viewport Coordinates Device Coordinates (Viewport)

Revision Table: Key Concepts in 2D Viewing

Term Description
Modeling Coordinates Local coordinate system for defining an individual object.
World Coordinates A common coordinate system where all objects of the scene are placed using modeling transformations.
Window A rectangular area in the world coordinate system that defines the visible region of the scene.
Viewing Coordinates A coordinate system relative to the window, used for window-to-viewport mapping and clipping.
Viewport A rectangular area on the display device (or a normalized space) where the contents of the window are displayed.
Normalized Viewport A standard coordinate space (e.g., [0,1] or [-1,1]) where the window is mapped before mapping to the physical device.
Device Coordinates Physical coordinates of the output device, typically pixel locations on the screen.

Additional Information on 2D Graphics Pipeline

The 2D graphics pipeline is the sequence of operations performed to convert a description of a 2D scene into an image displayed on a screen. While the question focuses on the viewing part, it's useful to see where it fits in the overall pipeline.

The full pipeline often looks like this:

  1. Define objects in Modeling Coordinates.
  2. Apply Modeling Transformations to place objects in World Coordinates.
  3. Apply World Transformations (e.g., transformations applied to the entire scene).
  4. Define the Viewing Window in World Coordinates.
  5. Apply Viewing Transformation to convert World Coordinates to Viewing Coordinates.
  6. Perform Clipping to remove parts of objects outside the Window.
  7. Apply Window-to-Normalized-Viewport Transformation.
  8. Apply Normalized-Viewport-to-Device Transformation.
  9. Scan Conversion (Rasterization) to convert geometric primitives into pixels.
  10. Display the pixels.

The steps provided in the question cover the core viewing and display mapping stages of this pipeline, starting after the scene is constructed in world coordinates.

Was this answer helpful?

Important Questions from Two Dimensional Viewing

  1. Which of the following technique is used for Clipping?
  2. In Cyrus-Beck algorithm for line clipping the value of t parameter is computed by the relation :

    (Here P1 and P2 are the two end points of the line, f is a point on the boundary, n1 is inner normal)

  3. Which of the following statement(s) is/are incorrect ?

    (a) Mapping the co-ordinates of the points and lines that form the picture into the appropriate co-ordinates on the device or workstation is known as viewing transformation.

    (b) The right-handed cartesian co-ordinates system in whose co-ordinates we describe the picture is known as world co-ordinate system.

    (c) The co-ordinate system that corresponds to the device or workstation where the image is to be displayed is known as physical device co-ordinate system.

    (d) Left - handed co-ordinate system in which the display area of the virtual display device corresponds to the unit (|x|) square whose lower left-hand corner is at the origin of the co-ordinate system, is known as normalized device co-ordinate system.

    Codes :

  4. Consider a window bounded by the lines : x = 0; y= 0; x = 5 and y = 3. The line segment joining (-1, 0) and (4, 5), if clipped against this window will connect the points

  5. Arrange the 2-D viewing transformation pipeline.

    A. Convert world-coordinates to viewing coordinates

    B. Map viewing coordinates to normalized viewing coordinates using window - viewpoint specifications

    C. Construct world - coordinates scene using modeling - coordinates transformations

    D. Map normalized viewpoint to device coordinates

    Choose the correct answer from the options given below:

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App