SlideShare a Scribd company logo
COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5
Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 1
MODULE-5
Part-B
3D Viewing and Visible Surface Detection
3D Viewing
Q.What is 3D Viewing? With the help of a block diagram explain 3D viewing pipeline
architecture
• When we model a three-dimensional scene, each object in the scene is typically
defined with a set of surfaces that form a closed boundary around the object interior.
• In addition to procedures that generate views of the surface features of an object,
graphics packages sometimes provide routines for displaying internal components or
cross sectional views of a solid object.
• Many processes in three-dimensional viewing, such as the clipping routines, are similar
to those in the two-dimensional viewing pipeline.
• But three-dimensional viewing involves some tasks that are not present in two
dimensional Viewing
Viewing a Three-Dimensional Scene
• To obtain a display of a three-dimensional world-coordinate scene, we first set up a
coordinate reference for the viewing, or “camera,” parameters.
• This coordinate reference defines the position and orientation for a view plane (or
projection plane) that corresponds to a camera film plane
Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 2
COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5
The Three-Dimensional Viewing Pipeline
Figure above shows the general processing steps for creating and transforming a three
dimensional scene to device coordinates.
 Construct the shape of individual objects in a scene within modeling coordinate, and
place the objects into appropriate positions within the scene (world coordinate).
 World coordinate positions are converted to viewing coordinates.
 Convert the viewing coordinate description of the scene to coordinate positions on the
projection plane.
 A two-dimensional clipping window, corresponding to a selected camera lens, is defined
on the projection plane, and a three-dimensional clipping region is established. This
clipping region is called the view volume.
 Objects are mapped to normalized coordinates, and all parts of the scene outside the view
volume are clipped off.
 The clipping operations can be applied after all device-independent coordinate
transformations. Then viewport is specified in device coordinates and that normalized
coordinates are transferred to viewport coordinates, following the clipping operations.
 The final step is to map viewport coordinates to device coordinates within a selected
display window
Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 3
COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5
Three-Dimensional Viewing-Coordinate Parameters
 Select a world-coordinate position P0 =(x0, y0, z0) for the viewing origin, which is called
the view point or viewing position and we specify a view-up vector V, which defines
the yview direction.
 Figure below illustrates the positioning of a three-dimensional viewing-coordinate frame
within a world system.
The View-Plane Normal Vector
Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 4
COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5
View-Up Vector
The uvn Viewing-Coordinate Reference Frame
Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 5
COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5
Transformation from World to Viewing Coordinates
Q.Design the transformation matrix from world to viewing coordinate system with matrix
representation
In the three-dimensional viewing pipeline, the first step after a scene has been
constructed is to transfer object descriptions to the viewing-coordinate reference frame.
This conversion of object descriptions is equivalent to a sequence of transformations that
superimposes the viewing reference frame onto the world frame
Transformation sequences
1.Translate the view reference point to the origin of the WC system (Figure b)
1 0 0 x0 

0 1 0

T  y0 
0 0 1 z0 
 
0 0 0 1 
2.Apply rotations to align the xv, yv, and zv axes with the world xw, yw,and zw axes,
respectively.
Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 6
COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5
The coordinate transformation matrix is then obtained as the product of the preceding
translation and rotation matrices:
These matrix elements are evaluated as
Projection Transformations
Graphics packages generally support both parallel and perspective projections.
Parallel Projection
 Parallel Projection transforms object positions to the view plane along parallel lines.
 A parallel projection preserves relative proportions of objects, and this is the method used
in computer aided drafting and design to produce scale drawings of three-dimensional
objects.
 All parallel lines in a scene are displayed as parallel when viewed with a parallel
projection.
 Parallel Projection Classification: Orthographic Parallel Projection and Oblique Projection
o Orthographic parallel projections are done by projecting points along parallel lines that
are perpendicular to the projection plane.
o Oblique projections are obtained by projecting along parallel lines that are NOT
perpendicular to the projection plane.
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
Orthogonal Projections
Q. Explain Orthogonal Projection in details
A transformation of object descriptions to a view plane along lines that are all parallel to the
view-plane normal vector N is called an orthogonal projection also termed as orthographic
projection
Classification of Orthographic Projection
 Different types of orthographic projections
• Front Projection
• Top Projection
• Side Projection
• Axonometric Projection – Isometric
 Front, side, and rear orthogonal projections of an object are called elevations
 Top orthogonal projection is called a plan view
 Axonometric orthogonal projections
 We can also form orthogonal projections that display more than one face of an
object, such views are called Axonometric projection
 The most commonly used axonometric projection is the isometric projection, which
is generated by aligning the projection plane (or the object) so that the plane
intersects each coordinate axis in which the object is defined, called the principal
axes, at the same distance from the origin
Orthogonal Projection Coordinates
Clipping Window and Orthogonal-Projection View Volume
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
Normalization Transformation for an Orthogonal Projection
 Once we have established the limits for the view volume, coordinate descriptions inside this
rectangular parallelepiped are the projection coordinates, and they can be mapped into a
normalized view volume without any further projection processing.
 Some graphics packages use a unit cube for this normalized view volume, with each of the
x, y, and z coordinates normalized in the range from 0 to 1.
 Another normalization-transformation approach is to use a symmetric cube, with
coordinates in the range from −1 to 1
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
Perspective Projection
 Perspective Projection transforms object positions to the view plane while converging to
a center point of projection.
 Perspective projection produces realistic views but does not preserve relative proportions.
 Projections of distant objects are smaller than the projections of objects of the same size
that are closer to the projection plane.
Perspective-Projection Transformation Coordinates
Q. Explain in detail perspective projection transformation coordinates
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
Perspective-Projection Equations: Special Cases
Vanishing Points for Perspective Projections
Q.Explain the perspective projection with reference and vanishing point with
neat diagram
 The point at which a set of projected parallel lines appears to converge is called a
vanishing point.
 Each set of projected parallel lines has a separate vanishing point.
• Based on the number of vanishing points, the perspective projection is of three types
– One point perspective projection(Figure b)
– Two point perspective projection(Figure c)
• One point - When the cube is projected to a view plane that intersects only the z axis, a
single vanishing point in the z direction
• Two point -When the cube is projected to a view plane that intersects both the z and x
axes, two vanishing points are produced.
Perspective-Projection Transformation Matrix
Q.Design a Transformation matrix for perspective projection
 Three-dimensional, homogeneous-coordinate representation to express the perspective-
projection equations in the form
Second after other processes have been applied, such as the normalization transformation
and clipping routines, homogeneous coordinates are divided by parameter h to obtain the
true transformation-coordinate positions.
Symmetric Perspective-Projection Frustum
Q.Explain in detail symmetric perspective projection Frustum
 The line from the projection reference point through the center of the clipping
window and on through the view volume is the centerline for a perspective projection
frustum.
 If this centerline is perpendicular to the view plane, we have a symmetric frustum
(with respect to its centerline)
 Another way to specify a symmetric perspective projection is to use parameters that
approximate the properties of a camera lens.
In computer graphics, the cone of vision is approximated with a symmetric frustum, and
we can use a field-of-view angle to specify an angular size for the frustum.
For a given projection reference point and view-plane position, the field-of view angle
determines the height of the clipping window from the right triangles in the diagram of
Figure below,
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
Oblique Perspective-Projection Frustum
Q.Explain in detail oblique perspective projection Frustum
 If the centerline of a perspective-projection view volume is not perpendicular to the view
plane, we have an oblique frustum
In this case, first transform the view volume to a symmetric frustum and then to a normalized
view volume.
 An oblique perspective-projection view volume can be converted to a symmetric frustum
by applying a z-axis shearing-transformation matrix.
 Taking the projection reference point as (xprp, yprp, zprp) = (0, 0, 0), we obtain the
elements of the required shearing matrix as
• Similarly, with the projection reference point at the viewing-coordinate origin and with
the near clipping plane as the view plane, the perspective-projection matrix is simplified
to
 Concatenating the simplified perspective-projection matrix with the shear matrix we have
Normalized Perspective-Projection Transformation Coordinates
 The final step in the perspective transformation process is to map this parallelepiped to a
normalized view volume.
 The transformed frustum view volume, which is a rectangular parallelepiped, is
mapped to a symmetric normalized cube within a left-handed reference frame
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
The Viewport Transformation and Three-Dimensional ScreenCoordinates
 Once we have completed the transformation to normalized projection coordinates,
clipping can be applied efficiently to the symmetric cube then the contents of the
normalized view volume can be transferred to screen coordinates.
 Positions throughout the three-dimensional view volume also have a depth (z
coordinate), and we need to retain this depth information for the visibility testing and
surface rendering algorithms
OpenGL Three-Dimensional Viewing Functions
Q. Explain OpenGL 3D Viewing functions
 OpenGL Viewing-Transformation Function
 OpenGL Orthogonal-Projection Function
 OpenGL General Perspective-Projection Function
 OpenGL Viewports and Display Windows
OpenGL Viewing-Transformation Function
MODULE-5  notes [BCG402-CG&V] PART-B.pdf
OpenGL Orthogonal-Projection Function
MODULE-5  notes [BCG402-CG&V] PART-B.pdf

More Related Content

PPT
3 d viewing
PPT
Three dimensional concepts - Computer Graphics
PDF
Notes04.pdf
PPTX
3D transformation and Curves in Computer Graphics
PPT
viewing-projection powerpoint cmputer graphics
PPT
viewing3d pipeline
PPT
08viewing3d
PPTX
COMPUTER GRAPHICS-"Projection"
3 d viewing
Three dimensional concepts - Computer Graphics
Notes04.pdf
3D transformation and Curves in Computer Graphics
viewing-projection powerpoint cmputer graphics
viewing3d pipeline
08viewing3d
COMPUTER GRAPHICS-"Projection"

Similar to MODULE-5 notes [BCG402-CG&V] PART-B.pdf (20)

PPTX
Lecture Summary : Camera Projection
PPT
projection in computer graphics us.ppt
PPTX
Graphics_3D viewing
PPT
projections - engineering drawing
PPTX
3D Display Method
PPT
3D transformation
PDF
3-D Transformation in Computer Graphics
PPTX
Geometric transformations and projections
PPTX
Eg unit 5 1
PPT
INTRO & TERMINOLOGY OF PERSPECTIVE DRAWING.PPT
PPTX
3 d display methods
PPT
3 d projections
PPTX
Projection.pptx
PDF
ResearchPaper
PPTX
3D Display
PPT
Projection
PDF
PPTX
3 d viewing projection
PDF
Handout optik-geometri-english
PPTX
3 d display-methods
Lecture Summary : Camera Projection
projection in computer graphics us.ppt
Graphics_3D viewing
projections - engineering drawing
3D Display Method
3D transformation
3-D Transformation in Computer Graphics
Geometric transformations and projections
Eg unit 5 1
INTRO & TERMINOLOGY OF PERSPECTIVE DRAWING.PPT
3 d display methods
3 d projections
Projection.pptx
ResearchPaper
3D Display
Projection
3 d viewing projection
Handout optik-geometri-english
3 d display-methods
Ad

More from Alvas Institute of Engineering and technology, Moodabidri (10)

PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
PPTX
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
PDF
COMPUTER GRAPHICS AND VISUALIZATION :MODULE-1 notes [BCG402-CG&V].pdf
PDF
COMPUTER GRAPHICS AND VISUALIZATION :MODULE-02 notes [BCG402-CG&V].pdf
PDF
COMPUTER GRAPHICS AND VISUALIZATION: MODULE-3 notes [BCG402-CG&V].pdf
PPTX
MODULE 03 - CLOUD COMPUTING- [BIS 613D] 2022 scheme.pptx
PPTX
MODULE 02 - CLOUD COMPUTING & SECURITY [BIS 613D].pptx
PPTX
MODULE 01 - CLOUD COMPUTING [BIS 613D] .pptx
PPTX
M-1 COMPUTER GRAPHICS & VISUALIZATON PPT
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
COMPUTER GRAPHICS AND VISUALIZATION :MODULE-1 notes [BCG402-CG&V].pdf
COMPUTER GRAPHICS AND VISUALIZATION :MODULE-02 notes [BCG402-CG&V].pdf
COMPUTER GRAPHICS AND VISUALIZATION: MODULE-3 notes [BCG402-CG&V].pdf
MODULE 03 - CLOUD COMPUTING- [BIS 613D] 2022 scheme.pptx
MODULE 02 - CLOUD COMPUTING & SECURITY [BIS 613D].pptx
MODULE 01 - CLOUD COMPUTING [BIS 613D] .pptx
M-1 COMPUTER GRAPHICS & VISUALIZATON PPT
Ad

Recently uploaded (20)

PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
web development for engineering and engineering
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
Welding lecture in detail for understanding
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Sustainable Sites - Green Building Construction
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT
Mechanical Engineering MATERIALS Selection
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
OOP with Java - Java Introduction (Basics)
DOCX
573137875-Attendance-Management-System-original
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
web development for engineering and engineering
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
CH1 Production IntroductoryConcepts.pptx
Lecture Notes Electrical Wiring System Components
Internet of Things (IOT) - A guide to understanding
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Digital Logic Computer Design lecture notes
Welding lecture in detail for understanding
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Sustainable Sites - Green Building Construction
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Mechanical Engineering MATERIALS Selection
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
OOP with Java - Java Introduction (Basics)
573137875-Attendance-Management-System-original
Foundation to blockchain - A guide to Blockchain Tech
Operating System & Kernel Study Guide-1 - converted.pdf

MODULE-5 notes [BCG402-CG&V] PART-B.pdf

  • 1. COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5 Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 1 MODULE-5 Part-B 3D Viewing and Visible Surface Detection 3D Viewing Q.What is 3D Viewing? With the help of a block diagram explain 3D viewing pipeline architecture • When we model a three-dimensional scene, each object in the scene is typically defined with a set of surfaces that form a closed boundary around the object interior. • In addition to procedures that generate views of the surface features of an object, graphics packages sometimes provide routines for displaying internal components or cross sectional views of a solid object. • Many processes in three-dimensional viewing, such as the clipping routines, are similar to those in the two-dimensional viewing pipeline. • But three-dimensional viewing involves some tasks that are not present in two dimensional Viewing Viewing a Three-Dimensional Scene • To obtain a display of a three-dimensional world-coordinate scene, we first set up a coordinate reference for the viewing, or “camera,” parameters. • This coordinate reference defines the position and orientation for a view plane (or projection plane) that corresponds to a camera film plane
  • 2. Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 2 COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5 The Three-Dimensional Viewing Pipeline Figure above shows the general processing steps for creating and transforming a three dimensional scene to device coordinates.  Construct the shape of individual objects in a scene within modeling coordinate, and place the objects into appropriate positions within the scene (world coordinate).  World coordinate positions are converted to viewing coordinates.  Convert the viewing coordinate description of the scene to coordinate positions on the projection plane.  A two-dimensional clipping window, corresponding to a selected camera lens, is defined on the projection plane, and a three-dimensional clipping region is established. This clipping region is called the view volume.  Objects are mapped to normalized coordinates, and all parts of the scene outside the view volume are clipped off.  The clipping operations can be applied after all device-independent coordinate transformations. Then viewport is specified in device coordinates and that normalized coordinates are transferred to viewport coordinates, following the clipping operations.  The final step is to map viewport coordinates to device coordinates within a selected display window
  • 3. Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 3 COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5 Three-Dimensional Viewing-Coordinate Parameters  Select a world-coordinate position P0 =(x0, y0, z0) for the viewing origin, which is called the view point or viewing position and we specify a view-up vector V, which defines the yview direction.  Figure below illustrates the positioning of a three-dimensional viewing-coordinate frame within a world system. The View-Plane Normal Vector
  • 4. Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 4 COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5 View-Up Vector The uvn Viewing-Coordinate Reference Frame
  • 5. Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 5 COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5 Transformation from World to Viewing Coordinates Q.Design the transformation matrix from world to viewing coordinate system with matrix representation In the three-dimensional viewing pipeline, the first step after a scene has been constructed is to transfer object descriptions to the viewing-coordinate reference frame. This conversion of object descriptions is equivalent to a sequence of transformations that superimposes the viewing reference frame onto the world frame Transformation sequences 1.Translate the view reference point to the origin of the WC system (Figure b) 1 0 0 x0   0 1 0  T  y0  0 0 1 z0    0 0 0 1  2.Apply rotations to align the xv, yv, and zv axes with the world xw, yw,and zw axes, respectively.
  • 6. Dr.PUSHPARANI MK, AIET,MOODABIDRI Page 6 COMPUTER GRAPHICS & VISUALISATION (BCG402) MODULE 5
  • 7. The coordinate transformation matrix is then obtained as the product of the preceding translation and rotation matrices: These matrix elements are evaluated as
  • 8. Projection Transformations Graphics packages generally support both parallel and perspective projections. Parallel Projection  Parallel Projection transforms object positions to the view plane along parallel lines.  A parallel projection preserves relative proportions of objects, and this is the method used in computer aided drafting and design to produce scale drawings of three-dimensional objects.  All parallel lines in a scene are displayed as parallel when viewed with a parallel projection.  Parallel Projection Classification: Orthographic Parallel Projection and Oblique Projection o Orthographic parallel projections are done by projecting points along parallel lines that are perpendicular to the projection plane. o Oblique projections are obtained by projecting along parallel lines that are NOT perpendicular to the projection plane.
  • 10. Orthogonal Projections Q. Explain Orthogonal Projection in details A transformation of object descriptions to a view plane along lines that are all parallel to the view-plane normal vector N is called an orthogonal projection also termed as orthographic projection Classification of Orthographic Projection  Different types of orthographic projections • Front Projection • Top Projection • Side Projection • Axonometric Projection – Isometric  Front, side, and rear orthogonal projections of an object are called elevations  Top orthogonal projection is called a plan view
  • 11.  Axonometric orthogonal projections  We can also form orthogonal projections that display more than one face of an object, such views are called Axonometric projection  The most commonly used axonometric projection is the isometric projection, which is generated by aligning the projection plane (or the object) so that the plane intersects each coordinate axis in which the object is defined, called the principal axes, at the same distance from the origin
  • 13. Clipping Window and Orthogonal-Projection View Volume
  • 15. Normalization Transformation for an Orthogonal Projection  Once we have established the limits for the view volume, coordinate descriptions inside this rectangular parallelepiped are the projection coordinates, and they can be mapped into a normalized view volume without any further projection processing.  Some graphics packages use a unit cube for this normalized view volume, with each of the x, y, and z coordinates normalized in the range from 0 to 1.  Another normalization-transformation approach is to use a symmetric cube, with coordinates in the range from −1 to 1
  • 17. Perspective Projection  Perspective Projection transforms object positions to the view plane while converging to a center point of projection.  Perspective projection produces realistic views but does not preserve relative proportions.  Projections of distant objects are smaller than the projections of objects of the same size that are closer to the projection plane. Perspective-Projection Transformation Coordinates Q. Explain in detail perspective projection transformation coordinates
  • 20. Vanishing Points for Perspective Projections Q.Explain the perspective projection with reference and vanishing point with neat diagram  The point at which a set of projected parallel lines appears to converge is called a vanishing point.  Each set of projected parallel lines has a separate vanishing point. • Based on the number of vanishing points, the perspective projection is of three types – One point perspective projection(Figure b) – Two point perspective projection(Figure c) • One point - When the cube is projected to a view plane that intersects only the z axis, a single vanishing point in the z direction • Two point -When the cube is projected to a view plane that intersects both the z and x axes, two vanishing points are produced.
  • 21. Perspective-Projection Transformation Matrix Q.Design a Transformation matrix for perspective projection  Three-dimensional, homogeneous-coordinate representation to express the perspective- projection equations in the form Second after other processes have been applied, such as the normalization transformation and clipping routines, homogeneous coordinates are divided by parameter h to obtain the
  • 23. Symmetric Perspective-Projection Frustum Q.Explain in detail symmetric perspective projection Frustum  The line from the projection reference point through the center of the clipping window and on through the view volume is the centerline for a perspective projection frustum.  If this centerline is perpendicular to the view plane, we have a symmetric frustum (with respect to its centerline)
  • 24.  Another way to specify a symmetric perspective projection is to use parameters that approximate the properties of a camera lens. In computer graphics, the cone of vision is approximated with a symmetric frustum, and we can use a field-of-view angle to specify an angular size for the frustum. For a given projection reference point and view-plane position, the field-of view angle determines the height of the clipping window from the right triangles in the diagram of Figure below,
  • 26. Oblique Perspective-Projection Frustum Q.Explain in detail oblique perspective projection Frustum  If the centerline of a perspective-projection view volume is not perpendicular to the view plane, we have an oblique frustum In this case, first transform the view volume to a symmetric frustum and then to a normalized view volume.  An oblique perspective-projection view volume can be converted to a symmetric frustum by applying a z-axis shearing-transformation matrix.  Taking the projection reference point as (xprp, yprp, zprp) = (0, 0, 0), we obtain the elements of the required shearing matrix as
  • 27. • Similarly, with the projection reference point at the viewing-coordinate origin and with the near clipping plane as the view plane, the perspective-projection matrix is simplified to
  • 28.  Concatenating the simplified perspective-projection matrix with the shear matrix we have Normalized Perspective-Projection Transformation Coordinates  The final step in the perspective transformation process is to map this parallelepiped to a normalized view volume.  The transformed frustum view volume, which is a rectangular parallelepiped, is mapped to a symmetric normalized cube within a left-handed reference frame
  • 31. The Viewport Transformation and Three-Dimensional ScreenCoordinates  Once we have completed the transformation to normalized projection coordinates, clipping can be applied efficiently to the symmetric cube then the contents of the normalized view volume can be transferred to screen coordinates.  Positions throughout the three-dimensional view volume also have a depth (z coordinate), and we need to retain this depth information for the visibility testing and surface rendering algorithms
  • 32. OpenGL Three-Dimensional Viewing Functions Q. Explain OpenGL 3D Viewing functions  OpenGL Viewing-Transformation Function  OpenGL Orthogonal-Projection Function  OpenGL General Perspective-Projection Function  OpenGL Viewports and Display Windows OpenGL Viewing-Transformation Function