Mapping of a fraction -windowing transformations, Computer Graphics

Assignment Help:

Mapping of a Fraction -Windowing Transformations

The mapping of a fraction of a world coordinate scene to device coordinates is considered to as Viewing Transformation. In common 2Dimentional viewing transformations are considered to as window to windowing transformation or viewport transformation.

1736_Mapping of a Fraction -Windowing Transformations 1.png

Figure: Windowing Transformation

We can see in above figure, here all parts of the picture which lie outside the window are clipped and the contents that lie within the widow are transferred to device coordinates. Secondly, we can also observe that while window chooses a part of the scene, viewport displays the chosen part at the desired location on the display region. While window is changed we see a dissimilar part of the scene at similar portion as viewport on display. If we modify the viewport only, we notice identical part of the scene drawn at a diverse scale or at a diverse place on the display. By successively decreasing or raising the size of the window around a part of the scene the viewport kept fixed, we can determine the effect of zoom out or in respectively on the displayed part. By mathematically, viewing transformation can be represented as V=W.N

Here,

  • V refers Viewing transformation that maps a part of world coordinate scene to device coordinates;
  • W refers to workstation transformation that maps normalized device coordinates to physical device coordinates;
  • N refers to Normalization transformation utilized to map world coordinates to normalized device coordinates.

 

Window to Viewpoint Coordinates transformation:

159_Mapping of a Fraction -Windowing Transformations 2.png

Figure: Window to Viewport Transformation

Figure as shown in above, demonstrates window-viewpoint mapping. Now, it is depicted here a point at position (Xw, Yw) in window is mapped on position (Xv, Yv) in the connected viewpoint.

Consequently, as to keep the same relative placement in the viewpoint like in the window we need:

   (xv - xvmin)/( xvmax  - xvmin)        =(xw - xwmin)/(xwmax  - xwmin)..............1(a)

   (yv - yvmin)/ (yvmax  - yvmin)       = (yw - ywmin)/(ywmax  - ywmin)................1(b)

Again arranging equation (a) and (b) of (1) we denote viewpoint position (xv, yv) which is:

{ xv = xvmin + (xw - xwmin) Sx

yv = yvmin + (yw - ywmin) Sy }..........................(2)

Here,

Sx scaling factor along x axis = (xvmax  - xvmin)/(xwmax  - xwmin)

Sy scaling factor along y axis = (yvmax  - yvmin)/(ywmax  - ywmin).........................................(3)

Note: if Sx = Sy then the relative proportions of objects are preserved else the world object will be contracted or stretched in either x or y direction while displayed on output device.


Related Discussions:- Mapping of a fraction -windowing transformations

Computations with phong shading, Computations with Phong Shading Compu...

Computations with Phong Shading Computations involved along with Phong Shading:  i)   Find out average unit normal vector at each polygon vertex. ii)   Linearly interpol

What is the standard video workflow, QUESTION 1. You are a consultant i...

QUESTION 1. You are a consultant in the field of video production and video editing. You haven been requested to participate in a debate over analog and digital video. Write

Briefly explain modes and switches, Question 1 Write a note on: Audio Spec...

Question 1 Write a note on: Audio Spectrum & Audio Waveform Question 2 What is high dynamic range color? Explain gradient color Question 3 Describe Time-Remapping

Horizontal retrace - hardware primitives, Horizontal Retrace - Hardware Pri...

Horizontal Retrace - Hardware Primitives Horizontal retrace refers to the time an electron beam takes to traverse a scan line.Vertical retrace means the time taken by the elect

Mpeg-2 , MPEG-2 : MPEG-2 that is Moving Picture Experts Group format 2 is ...

MPEG-2 : MPEG-2 that is Moving Picture Experts Group format 2 is the standard used through DVD and is of a much higher quality than MPEG- 1. This format gives for 720 x 480 resolu

Image space -approaches for visible surface determination, Image Space Appr...

Image Space Approach -Approaches for visible surface determination The initial approach as image-space, determines that of n objects in the scene is visible at every pixel in

Area subdivision method - visible surface detection, Area subdivision Metho...

Area subdivision Method - Visible Surface Detection What are the circumstances to be fulfilled, in Area-subdivision method, thus a surface not to be divided in addition? S

Word perfect graphic, WPG: It is word perfect graphic file that is used vi...

WPG: It is word perfect graphic file that is used via Word Perfect. It first came out with the release of word perfect 5.0. Such files can include bitmaps, line arts and vector gr

What is a video transition, QUESTION 1. Describe two methods for conver...

QUESTION 1. Describe two methods for converting 16x9 widescreen movie to 4x3. 2. Explain clearly the difference between File Format and Codec. 3. What is a video transiti

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd