SlideShare a Scribd company logo
Window to viewport
Transformation
&
Matrix Representation of
Homogeneous Coordinates
What is window?
• A world-coordinate area
selected for display is called
a window.
• You can define the window
to be larger than, the same
size as, or smaller than the
actual range of data values,
depending on whether you
want to show all of the data
or only part of the data.
• Window defines what is to
be viewed.
What is viewport?
• An area on a display device
to which a window Is
mapped is called a viewport.
• The rectangular portion of
the interface window that
defines where the image will
actually appear.
• Viewport defines where the
window to be displayed.
If we are changing the position of window by keeping the
viewport location constant, then the different part of the object
is displayed at the same position on the display device.
If we change the location of viewport then we will see the same
part of the object drawn at different places on screen.
Window-to-Viewport
Transformation
• Window-to-Viewport transformation is the process of
mapping or transforming a two-dimensional, world-
coordinate scene to device coordinates.
• In particular, objects inside the world or clipping window
are mapped to the viewport.
• The clipping window is used to select the part of the scene
that is to be displayed. The viewport then positions the
scene on the output device.
Window to viewport transformation&matrix representation of homogeneous coordinates
Steps for Window to
Viewport Transformation
• Step 1: Translate window towards origin. To shift
window towards origin, translation factor will become
negative (-tx,-ty).
• Step 2: Resize window to the size of view port.
• Step 3: Translate window (position of window must be
same as position of view port).
Window to viewport transformation&matrix representation of homogeneous coordinates
Window to viewport transformation&matrix representation of homogeneous coordinates
Window to viewport transformation&matrix representation of homogeneous coordinates
Window to viewport transformation&matrix representation of homogeneous coordinates
Window to viewport transformation&matrix representation of homogeneous coordinates
Homogeneous Coordinates
• Being homogeneous means a uniform representation
of rotation, translation, scaling and other
transformations.
• Homogeneous coordinates are widely used in
computer graphics because they enable effective,
simple manipulations of transformations in a specific
way.
Why Homogeneous?
• We have to use 3×3 transformation matrix instead of 2×2
transformation matrix. To convert a 2×2 matrix to 3×3 matrix,
we have to add an extra dummy coordinate W.
• In this way, we can represent the point by 3 numbers instead of
2 numbers, which is called Homogenous Coordinate system.
• In this system, we can represent all the transformation
equations in matrix multiplication. Any Cartesian point P(X, Y)
can be converted to homogenous coordinates by P’ (Xh, Yh, h).
Window to viewport transformation&matrix representation of homogeneous coordinates
Ad

More Related Content

What's hot (20)

Windows to viewport transformation
Windows to viewport transformationWindows to viewport transformation
Windows to viewport transformation
Prashant Singh
 
Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)
RohitK71
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
Selvakumar Gna
 
Clipping computer graphics
Clipping  computer graphicsClipping  computer graphics
Clipping computer graphics
ShaishavShah8
 
Polygon filling
Polygon fillingPolygon filling
Polygon filling
Mohanlal Sukhadia University (MLSU)
 
Scan line method
Scan line methodScan line method
Scan line method
Pooja Dixit
 
Halftoning in Computer Graphics
Halftoning  in Computer GraphicsHalftoning  in Computer Graphics
Halftoning in Computer Graphics
University of Potsdam
 
Computer Graphics - clipping
Computer Graphics - clippingComputer Graphics - clipping
Computer Graphics - clipping
Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
sabbirantor
 
Graphics_3D viewing
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
Rabin BK
 
Shading methods
Shading methodsShading methods
Shading methods
Rakesh Pandey
 
Quadric surfaces
Quadric surfacesQuadric surfaces
Quadric surfaces
Ankur Kumar
 
Clipping
ClippingClipping
Clipping
AMIT VIRAMGAMI
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
Mani Kanth
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
Pooja Dixit
 
Spline representations
Spline representationsSpline representations
Spline representations
Nikhil krishnan
 
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
SwatiHans10
 
Window to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptxWindow to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptx
Dolchandra
 
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)
shalinikarunakaran1
 
Windows to viewport transformation
Windows to viewport transformationWindows to viewport transformation
Windows to viewport transformation
Prashant Singh
 
Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)
RohitK71
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
Selvakumar Gna
 
Clipping computer graphics
Clipping  computer graphicsClipping  computer graphics
Clipping computer graphics
ShaishavShah8
 
Scan line method
Scan line methodScan line method
Scan line method
Pooja Dixit
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
sabbirantor
 
Graphics_3D viewing
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
Rabin BK
 
Quadric surfaces
Quadric surfacesQuadric surfaces
Quadric surfaces
Ankur Kumar
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
Mani Kanth
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
Pooja Dixit
 
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
SwatiHans10
 
Window to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptxWindow to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptx
Dolchandra
 
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)
shalinikarunakaran1
 

Similar to Window to viewport transformation&matrix representation of homogeneous coordinates (20)

2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
KALESHWAR KUMAR
 
UNIT 1 2dviewing of image151213164537.pptx
UNIT 1 2dviewing of image151213164537.pptxUNIT 1 2dviewing of image151213164537.pptx
UNIT 1 2dviewing of image151213164537.pptx
Vinod Deenathayalan
 
Window to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptxWindow to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptx
Dolchandra
 
Clipping CG ppt.pptx
Clipping CG ppt.pptxClipping CG ppt.pptx
Clipping CG ppt.pptx
AamirSheikh49
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
SanthiNivas
 
UNIT_3-Two-Dimensional-Geometric-Transformations.pdf
UNIT_3-Two-Dimensional-Geometric-Transformations.pdfUNIT_3-Two-Dimensional-Geometric-Transformations.pdf
UNIT_3-Two-Dimensional-Geometric-Transformations.pdf
VivekKumar148171
 
UNIT_3-Two-Dimensional-Geometric-Transformations.pptx
UNIT_3-Two-Dimensional-Geometric-Transformations.pptxUNIT_3-Two-Dimensional-Geometric-Transformations.pptx
UNIT_3-Two-Dimensional-Geometric-Transformations.pptx
Anil Yadav
 
2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx
2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx
2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx
mohanci1958
 
UNIT-III
UNIT-IIIUNIT-III
UNIT-III
VarthiniRamesh
 
CHAPTER - 4 for software engineering (1).pptx
CHAPTER - 4 for software engineering  (1).pptxCHAPTER - 4 for software engineering  (1).pptx
CHAPTER - 4 for software engineering (1).pptx
lcon22
 
Unit 4 notes
Unit 4 notesUnit 4 notes
Unit 4 notes
Balamurugan M
 
Lec08112004.pdf
Lec08112004.pdfLec08112004.pdf
Lec08112004.pdf
LalithaPonnam
 
affine transformation for computer graphics
affine transformation for computer graphicsaffine transformation for computer graphics
affine transformation for computer graphics
DrSUGANYADEVIK
 
Bhavesh window clipping slidshare
Bhavesh window clipping slidshareBhavesh window clipping slidshare
Bhavesh window clipping slidshare
Bhavesh Panchal
 
Computer Graphics lecture.pptx
Computer Graphics lecture.pptxComputer Graphics lecture.pptx
Computer Graphics lecture.pptx
NishkaSharma5
 
3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago
Janie Clayton
 
ch4.pptx
ch4.pptxch4.pptx
ch4.pptx
OnkarTalekar4
 
Notes04.pdf
Notes04.pdfNotes04.pdf
Notes04.pdf
MukeshKumar605825
 
3 d graphics with opengl part 2
3 d graphics with opengl  part 23 d graphics with opengl  part 2
3 d graphics with opengl part 2
Sardar Alam
 
module 3 ppt2 (1).pptx
module 3 ppt2 (1).pptxmodule 3 ppt2 (1).pptx
module 3 ppt2 (1).pptx
RADHIKAB20
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
KALESHWAR KUMAR
 
UNIT 1 2dviewing of image151213164537.pptx
UNIT 1 2dviewing of image151213164537.pptxUNIT 1 2dviewing of image151213164537.pptx
UNIT 1 2dviewing of image151213164537.pptx
Vinod Deenathayalan
 
Window to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptxWindow to Viewport Transformation in Computer Graphics with.pptx
Window to Viewport Transformation in Computer Graphics with.pptx
Dolchandra
 
Clipping CG ppt.pptx
Clipping CG ppt.pptxClipping CG ppt.pptx
Clipping CG ppt.pptx
AamirSheikh49
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
SanthiNivas
 
UNIT_3-Two-Dimensional-Geometric-Transformations.pdf
UNIT_3-Two-Dimensional-Geometric-Transformations.pdfUNIT_3-Two-Dimensional-Geometric-Transformations.pdf
UNIT_3-Two-Dimensional-Geometric-Transformations.pdf
VivekKumar148171
 
UNIT_3-Two-Dimensional-Geometric-Transformations.pptx
UNIT_3-Two-Dimensional-Geometric-Transformations.pptxUNIT_3-Two-Dimensional-Geometric-Transformations.pptx
UNIT_3-Two-Dimensional-Geometric-Transformations.pptx
Anil Yadav
 
2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx
2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx
2D Viewinrrrrrdddfddddffdrrrdddfdsssg.pptx
mohanci1958
 
CHAPTER - 4 for software engineering (1).pptx
CHAPTER - 4 for software engineering  (1).pptxCHAPTER - 4 for software engineering  (1).pptx
CHAPTER - 4 for software engineering (1).pptx
lcon22
 
affine transformation for computer graphics
affine transformation for computer graphicsaffine transformation for computer graphics
affine transformation for computer graphics
DrSUGANYADEVIK
 
Bhavesh window clipping slidshare
Bhavesh window clipping slidshareBhavesh window clipping slidshare
Bhavesh window clipping slidshare
Bhavesh Panchal
 
Computer Graphics lecture.pptx
Computer Graphics lecture.pptxComputer Graphics lecture.pptx
Computer Graphics lecture.pptx
NishkaSharma5
 
3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago
Janie Clayton
 
3 d graphics with opengl part 2
3 d graphics with opengl  part 23 d graphics with opengl  part 2
3 d graphics with opengl part 2
Sardar Alam
 
module 3 ppt2 (1).pptx
module 3 ppt2 (1).pptxmodule 3 ppt2 (1).pptx
module 3 ppt2 (1).pptx
RADHIKAB20
 
Ad

More from Mani Kanth (20)

White box testing
White box testing White box testing
White box testing
Mani Kanth
 
Unit testing
Unit testing Unit testing
Unit testing
Mani Kanth
 
System testing
System testingSystem testing
System testing
Mani Kanth
 
management of maintainance
management of maintainancemanagement of maintainance
management of maintainance
Mani Kanth
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
Mani Kanth
 
Reverse engineering in software engineering vaibhav
Reverse engineering in software engineering vaibhavReverse engineering in software engineering vaibhav
Reverse engineering in software engineering vaibhav
Mani Kanth
 
Mutation testing 1
Mutation testing 1Mutation testing 1
Mutation testing 1
Mani Kanth
 
Mutation testing
Mutation testingMutation testing
Mutation testing
Mani Kanth
 
Guideline for euivalence class testing
Guideline for euivalence class testingGuideline for euivalence class testing
Guideline for euivalence class testing
Mani Kanth
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
Mani Kanth
 
Deployment
DeploymentDeployment
Deployment
Mani Kanth
 
unit testing
unit testingunit testing
unit testing
Mani Kanth
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
Mani Kanth
 
Seed filling algorithm
Seed filling algorithmSeed filling algorithm
Seed filling algorithm
Mani Kanth
 
Scaling and shearing
Scaling and shearingScaling and shearing
Scaling and shearing
Mani Kanth
 
Raster and random scan display types of input devices
Raster and random scan display types of input devicesRaster and random scan display types of input devices
Raster and random scan display types of input devices
Mani Kanth
 
Projection
ProjectionProjection
Projection
Mani Kanth
 
Polygon clipping with sutherland hodgeman algorithm and scan line fill algorithm
Polygon clipping with sutherland hodgeman algorithm and scan line fill algorithmPolygon clipping with sutherland hodgeman algorithm and scan line fill algorithm
Polygon clipping with sutherland hodgeman algorithm and scan line fill algorithm
Mani Kanth
 
Mid point circle algorithm
Mid point circle algorithmMid point circle algorithm
Mid point circle algorithm
Mani Kanth
 
Graphics software and standards
Graphics software and standardsGraphics software and standards
Graphics software and standards
Mani Kanth
 
White box testing
White box testing White box testing
White box testing
Mani Kanth
 
System testing
System testingSystem testing
System testing
Mani Kanth
 
management of maintainance
management of maintainancemanagement of maintainance
management of maintainance
Mani Kanth
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
Mani Kanth
 
Reverse engineering in software engineering vaibhav
Reverse engineering in software engineering vaibhavReverse engineering in software engineering vaibhav
Reverse engineering in software engineering vaibhav
Mani Kanth
 
Mutation testing 1
Mutation testing 1Mutation testing 1
Mutation testing 1
Mani Kanth
 
Mutation testing
Mutation testingMutation testing
Mutation testing
Mani Kanth
 
Guideline for euivalence class testing
Guideline for euivalence class testingGuideline for euivalence class testing
Guideline for euivalence class testing
Mani Kanth
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
Mani Kanth
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
Mani Kanth
 
Seed filling algorithm
Seed filling algorithmSeed filling algorithm
Seed filling algorithm
Mani Kanth
 
Scaling and shearing
Scaling and shearingScaling and shearing
Scaling and shearing
Mani Kanth
 
Raster and random scan display types of input devices
Raster and random scan display types of input devicesRaster and random scan display types of input devices
Raster and random scan display types of input devices
Mani Kanth
 
Polygon clipping with sutherland hodgeman algorithm and scan line fill algorithm
Polygon clipping with sutherland hodgeman algorithm and scan line fill algorithmPolygon clipping with sutherland hodgeman algorithm and scan line fill algorithm
Polygon clipping with sutherland hodgeman algorithm and scan line fill algorithm
Mani Kanth
 
Mid point circle algorithm
Mid point circle algorithmMid point circle algorithm
Mid point circle algorithm
Mani Kanth
 
Graphics software and standards
Graphics software and standardsGraphics software and standards
Graphics software and standards
Mani Kanth
 
Ad

Recently uploaded (20)

Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
The Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLabThe Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLab
Journal of Soft Computing in Civil Engineering
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Journal of Soft Computing in Civil Engineering
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 

Window to viewport transformation&matrix representation of homogeneous coordinates

  • 1. Window to viewport Transformation & Matrix Representation of Homogeneous Coordinates
  • 2. What is window? • A world-coordinate area selected for display is called a window. • You can define the window to be larger than, the same size as, or smaller than the actual range of data values, depending on whether you want to show all of the data or only part of the data. • Window defines what is to be viewed. What is viewport? • An area on a display device to which a window Is mapped is called a viewport. • The rectangular portion of the interface window that defines where the image will actually appear. • Viewport defines where the window to be displayed.
  • 3. If we are changing the position of window by keeping the viewport location constant, then the different part of the object is displayed at the same position on the display device. If we change the location of viewport then we will see the same part of the object drawn at different places on screen.
  • 4. Window-to-Viewport Transformation • Window-to-Viewport transformation is the process of mapping or transforming a two-dimensional, world- coordinate scene to device coordinates. • In particular, objects inside the world or clipping window are mapped to the viewport. • The clipping window is used to select the part of the scene that is to be displayed. The viewport then positions the scene on the output device.
  • 6. Steps for Window to Viewport Transformation • Step 1: Translate window towards origin. To shift window towards origin, translation factor will become negative (-tx,-ty). • Step 2: Resize window to the size of view port. • Step 3: Translate window (position of window must be same as position of view port).
  • 12. Homogeneous Coordinates • Being homogeneous means a uniform representation of rotation, translation, scaling and other transformations. • Homogeneous coordinates are widely used in computer graphics because they enable effective, simple manipulations of transformations in a specific way.
  • 13. Why Homogeneous? • We have to use 3×3 transformation matrix instead of 2×2 transformation matrix. To convert a 2×2 matrix to 3×3 matrix, we have to add an extra dummy coordinate W. • In this way, we can represent the point by 3 numbers instead of 2 numbers, which is called Homogenous Coordinate system. • In this system, we can represent all the transformation equations in matrix multiplication. Any Cartesian point P(X, Y) can be converted to homogenous coordinates by P’ (Xh, Yh, h).