SlideShare a Scribd company logo
1 of 11
Download to read offline
3/4/2019
1
SBE 306: Computer Graphics
Pipeline
Dr. Ayman Eldeib
Systems & Biomedical
Engineering Department
Spring 2019
Computer Graphics Pipeline
Graphical Information Flow
Transform
Illuminate
Transform
Clip
Project
Rasterize
Model & Camera
Parameters
Rendering Pipeline Framebuffer Display
A memory
array in which
the computer
stores an
image
3/4/2019
2
Computer Graphics Pipeline
 There are two pipelines:
 The upper pipeline – Geometric Primitives
o Vertex-based primitives – points, lines and polygons
 The lower pipeline – Image Primitives
o Pixel-based primitives – image and bitmaps
 These two separate pipelines are linked through texture
mapping
Cont.
Graphical Information Flow
Computer Graphics Pipeline
Rendering Pipeline
Spring 2011
Modeling
Transforms
3D geometry
Primitives
Lighting
Calculations
Viewing
Transform
Clipping
Projection
Transform
Scan
Conversion
Image
Transform into 3D world coordinate system
Transform into 3D camera coordinate system
Draw pixels (includes texturing, hidden surface, ...)
Clip primitives outside camera’s view
Transform into 2D screen coordinate system
Illuminate according to lighting and reflectance
3/4/2019
3
Computer Graphics Pipeline
Spring 2011
Modeling
Transforms
3D geometry
Primitives
Lighting
Calculations
Viewing
Transform
Clipping
Projection
Transform
Scan
Conversion
Image
 Model/view transforms combined
 Really “vertices” not “primitives”
Making this the vertex pipeline
 There’s a lot going on in the “scan conversion”
stage! [pixel or fragment pipeline]
Primitive assembly
Rasterization
Texture mapping
Per-pixel lighting
Visibility (Z-buffer)
For an OpenGL system
Cont.
Rendering Pipeline
Computer Graphics Pipeline
Graphical Information Flow
GPUCPU
Application
Vertex
Processor & Rasterization
Assembly
& Rasterization
Pixel
Processor
Vertices
(3D)
Vertices
(2D)
Fragments
(pre-pixels)
Final pixels
(Color, Depth)
Graphics State
Render-to-texture
Application Geometry
“vertex pipeline”
Rasterization
“pixel/fragment pipeline”
Handle input,
Simulation & AI, etc.
Transform, Lighting, Calculate
texture coords, etc.
fill pixels, Interpolate vertex
parameters, Look up/filter
textures, etc.
Video
Memory
(Textures)
3/4/2019
4
Computer Graphics Pipeline
OpenGL and Related APIs

Computer Graphics Pipeline
OpenGL: Application Structure Basics
 Configure and open window
 Initialize OpenGL state
 Register input callback functions
 Render
 Resize
 Input: keyboard, mouse, etc
 Enter event processing loop
3/4/2019
5
Computer Graphics Pipeline
Modeling: The Basics
 Common interactive 3-D primitives: points,
lines, polygons (i.e., triangles)
 Organized into objects
 Collection of primitives, other objects
 Associated matrix for transformations
 Instancing: using same geometry for multiple
objects
 4 wheels on a car, 2 arms on a robot
Computer Graphics Pipeline
Modeling: The Scene Graph
 The scene graph captures transformations and object-
object relationships
 Maintain a matrix stack of transformations
 Nodes are objects;
 Arrows indicate instancing
Each has a matrix Robot
BodyHead
ArmTrunkLegEyeMouth
3/4/2019
6
Computer Graphics Pipeline
Rendering: Transformation
 There are three set of transformation:
Modeling transforms
o Size, place, scale, and rotate objects parts
o Object coordinates  world coordinates
Viewing transforms
o Rotate & translate the world to lie directly in front of the camera
Typically place camera at origin
Typically looking down -Z axis
oWorld coordinates  view coordinates
Projection transforms
o Apply perspective foreshortening
o View coordinates  screen coordinates
Computer Graphics Pipeline
OpenGL: 3D Coordinate System
Left handed Right handed
OpenGL uses a right handed coordinate system
3/4/2019
7
Computer Graphics Pipeline
 OpenGL has a model view matrix that is applied
to each point (vertex)
 You can alter the current model view matrix by
calling a transformation function
 This applies the transformation to all points
drawn after the transformation call
OpenGL: Modeling
Computer Graphics Pipeline
Viewing: Camera Movement
3/4/2019
8
Computer Graphics Pipeline
OpenGL: Camera Movement
 In OpenGL the last transformation defined is the
first one applied
 To move the camera a transformation must be
applied to all scene points
 Thus a transformation that moves the camera
should be the first transformation applied
Cont.
Computer Graphics Pipeline
OpenGL: Camera Frame
• gluLookAt(eyex, eyey, eyez, centerx, centery, centerz, upx, upy, upz)
• Camera is at eye, looking at center, with the up direction being up
Eye
Up vector (u)
Center
-Z
YX
V vector (v)
3/4/2019
9
Computer Graphics Pipeline
OpenGL: Specifying Viewpoint
 glMatrixMode(GL_MODELVIEW);
 glLoadIdentity();
 gluLookAt(eyeX, eyeY, eyeZ,
lookX, lookY, lookZ,
upX, upY, upZ);
 eye[XYZ]: camera position in world coordinates
 look[XYZ]: a point centered in camera’s view
 up[XYZ]: a vector defining the camera’s vertical
 Creates a matrix that transforms points in world coordinates to camera
coordinates
 Camera at origin
 Looking down -Z axis
 Up vector aligned with Y axis (actually Y-Z plane)
Computer Graphics Pipeline
OpenGL: Camera Movement
gluLookAt(eyex, eyey, eyez, centerx, centery, centerz, upx, upy, upz)
Camera is at eye, looking at center, with the up direction being up
 First, create a coordinate frame for the camera
The look vector is center minus eye
Then use cross product with up vector
 Define a rotation matrix
 Apply appropriate translation for camera (eye)
location
3/4/2019
10
Computer Graphics Pipeline
OpenGL: Camera Example
Crystal Ball Interface
 Allow the user two options perhaps using the
left-right and up-down arrow keys
1. Rotate about the vertical direction in the
window
2. Rotate about the horizontal direction in
the window
Computer Graphics Pipeline
 Eye position – location of camera center
(ex,ey,ez)
 Look vector – direction camera is looking
w vector
 Up vector – the vertical direction for the camera
u vector
 V is horizontal direction for the camera
Cont.
OpenGL: Camera Example
Crystal Ball Interface
3/4/2019
11
Computer Graphics Pipeline
 Rotate about the vertical direction in the window
Rotate the eye position about the up vector
The up vector and the center point remain fixed
 Rotate about the horizontal direction in the window
Compute the current horizontal direction from
the up vector and the look vector
Rotate the eye about the horizontal direction
Rotate the up vector about the horizontal
direction
OpenGL: Camera Example
Crystal Ball Interface
Cont.
g{tÇ~ lÉâg{tÇ~ lÉâg{tÇ~ lÉâg{tÇ~ lÉâ

More Related Content

What's hot

Elements of Analytical Photogrammetry
Elements of Analytical PhotogrammetryElements of Analytical Photogrammetry
Elements of Analytical PhotogrammetryNadia Aziz
 
Machine parts orthographic projections
Machine parts orthographic projections Machine parts orthographic projections
Machine parts orthographic projections Mohd Mujahid Nasir
 
Sergey A. Sukhanov, "3D content production"
Sergey A. Sukhanov, "3D content production"Sergey A. Sukhanov, "3D content production"
Sergey A. Sukhanov, "3D content production"Mikhail Vink
 
Terra formation control or how to move mountains
Terra formation control or how to move mountainsTerra formation control or how to move mountains
Terra formation control or how to move mountainsijcga
 
14 struds 2010 (Aug release)
14 struds 2010 (Aug  release)14 struds 2010 (Aug  release)
14 struds 2010 (Aug release)struds
 
Photogrammetry for Architecture and Construction
Photogrammetry for Architecture and ConstructionPhotogrammetry for Architecture and Construction
Photogrammetry for Architecture and ConstructionDat Lien
 
study Seam Carving For Content Aware Image Resizing
study Seam Carving For Content Aware Image Resizingstudy Seam Carving For Content Aware Image Resizing
study Seam Carving For Content Aware Image ResizingChiamin Hsu
 
BASIC CONCEPTS OF PHOTOGRAMMETRY
BASIC CONCEPTS OF PHOTOGRAMMETRYBASIC CONCEPTS OF PHOTOGRAMMETRY
BASIC CONCEPTS OF PHOTOGRAMMETRYNamitha M R
 
Icaros Photogrammetric Suite (IPS) Workflow
Icaros Photogrammetric Suite (IPS) WorkflowIcaros Photogrammetric Suite (IPS) Workflow
Icaros Photogrammetric Suite (IPS) WorkflowIcarosMapping
 
Photogrammetry - areaotriangulation
Photogrammetry - areaotriangulationPhotogrammetry - areaotriangulation
Photogrammetry - areaotriangulationjayan_sri
 
Lecture 4 image measumrents & refinement
Lecture 4  image measumrents & refinementLecture 4  image measumrents & refinement
Lecture 4 image measumrents & refinementSarhat Adam
 
SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016
SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016
SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016PIYAL Bhuiyan
 

What's hot (20)

Elements of Analytical Photogrammetry
Elements of Analytical PhotogrammetryElements of Analytical Photogrammetry
Elements of Analytical Photogrammetry
 
Photogrammetry
PhotogrammetryPhotogrammetry
Photogrammetry
 
Machine parts orthographic projections
Machine parts orthographic projections Machine parts orthographic projections
Machine parts orthographic projections
 
Sergey A. Sukhanov, "3D content production"
Sergey A. Sukhanov, "3D content production"Sergey A. Sukhanov, "3D content production"
Sergey A. Sukhanov, "3D content production"
 
Actuate BIRT - Graph
Actuate BIRT - GraphActuate BIRT - Graph
Actuate BIRT - Graph
 
Photogrammetry
PhotogrammetryPhotogrammetry
Photogrammetry
 
Photogrammetry1
Photogrammetry1Photogrammetry1
Photogrammetry1
 
appendix
appendixappendix
appendix
 
Normal Mapping / Computer Graphics - IK
Normal Mapping / Computer Graphics - IKNormal Mapping / Computer Graphics - IK
Normal Mapping / Computer Graphics - IK
 
Terra formation control or how to move mountains
Terra formation control or how to move mountainsTerra formation control or how to move mountains
Terra formation control or how to move mountains
 
14 struds 2010 (Aug release)
14 struds 2010 (Aug  release)14 struds 2010 (Aug  release)
14 struds 2010 (Aug release)
 
Photogrammetry for Architecture and Construction
Photogrammetry for Architecture and ConstructionPhotogrammetry for Architecture and Construction
Photogrammetry for Architecture and Construction
 
study Seam Carving For Content Aware Image Resizing
study Seam Carving For Content Aware Image Resizingstudy Seam Carving For Content Aware Image Resizing
study Seam Carving For Content Aware Image Resizing
 
3 d modeling part 2
3 d modeling part 23 d modeling part 2
3 d modeling part 2
 
BASIC CONCEPTS OF PHOTOGRAMMETRY
BASIC CONCEPTS OF PHOTOGRAMMETRYBASIC CONCEPTS OF PHOTOGRAMMETRY
BASIC CONCEPTS OF PHOTOGRAMMETRY
 
Icaros Photogrammetric Suite (IPS) Workflow
Icaros Photogrammetric Suite (IPS) WorkflowIcaros Photogrammetric Suite (IPS) Workflow
Icaros Photogrammetric Suite (IPS) Workflow
 
Dipole
DipoleDipole
Dipole
 
Photogrammetry - areaotriangulation
Photogrammetry - areaotriangulationPhotogrammetry - areaotriangulation
Photogrammetry - areaotriangulation
 
Lecture 4 image measumrents & refinement
Lecture 4  image measumrents & refinementLecture 4  image measumrents & refinement
Lecture 4 image measumrents & refinement
 
SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016
SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016
SURVEYING - Photogrammetry (CE 115) Lec2 By Afia Narzis Spring 2016
 

Similar to CG Pipeline Stages

CAD/CAM & Automation Unit I computer graphics
CAD/CAM & Automation Unit I computer graphicsCAD/CAM & Automation Unit I computer graphics
CAD/CAM & Automation Unit I computer graphicsAniket Joshi
 
Introduction to Computer Graphics
Introduction to Computer GraphicsIntroduction to Computer Graphics
Introduction to Computer GraphicsAbdullah Khan
 
Build Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-PlanesBuild Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-PlanesDouglas Lanman
 
Introduction_computer_graphics_unit-1.pptx
Introduction_computer_graphics_unit-1.pptxIntroduction_computer_graphics_unit-1.pptx
Introduction_computer_graphics_unit-1.pptxshivanipuran1
 
Game Engine Overview
Game Engine OverviewGame Engine Overview
Game Engine OverviewSharad Mitra
 
Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...
Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...
Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...ijma
 
Unit 1-ME8691 & COMPUTER AIDED DESIGN AND MANUFACTURING
Unit 1-ME8691 & COMPUTER AIDED DESIGN AND    MANUFACTURINGUnit 1-ME8691 & COMPUTER AIDED DESIGN AND    MANUFACTURING
Unit 1-ME8691 & COMPUTER AIDED DESIGN AND MANUFACTURINGMohanumar S
 
57892883 geometric-modeling
57892883 geometric-modeling57892883 geometric-modeling
57892883 geometric-modelingmanojg1990
 
57892883 geometric-modeling
57892883 geometric-modeling57892883 geometric-modeling
57892883 geometric-modelingmanojg1990
 
Synthetic Curves.pdf
Synthetic Curves.pdfSynthetic Curves.pdf
Synthetic Curves.pdfMehulMunshi3
 
Non-Planar Projections (GRAPP 2008)
Non-Planar Projections (GRAPP 2008)Non-Planar Projections (GRAPP 2008)
Non-Planar Projections (GRAPP 2008)Matthias Trapp
 
International journal of signal and image processing issues vol 2015 - no 1...
International journal of signal and image processing issues   vol 2015 - no 1...International journal of signal and image processing issues   vol 2015 - no 1...
International journal of signal and image processing issues vol 2015 - no 1...sophiabelthome
 
BEV Semantic Segmentation
BEV Semantic SegmentationBEV Semantic Segmentation
BEV Semantic SegmentationYu Huang
 

Similar to CG Pipeline Stages (20)

viewing3d pipeline
viewing3d pipelineviewing3d pipeline
viewing3d pipeline
 
08viewing3d
08viewing3d08viewing3d
08viewing3d
 
CG.pptx
CG.pptxCG.pptx
CG.pptx
 
CAD/CAM & Automation Unit I computer graphics
CAD/CAM & Automation Unit I computer graphicsCAD/CAM & Automation Unit I computer graphics
CAD/CAM & Automation Unit I computer graphics
 
Introduction to Computer Graphics
Introduction to Computer GraphicsIntroduction to Computer Graphics
Introduction to Computer Graphics
 
Build Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-PlanesBuild Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-Planes
 
Introduction_computer_graphics_unit-1.pptx
Introduction_computer_graphics_unit-1.pptxIntroduction_computer_graphics_unit-1.pptx
Introduction_computer_graphics_unit-1.pptx
 
Game Engine Overview
Game Engine OverviewGame Engine Overview
Game Engine Overview
 
Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...
Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...
Leader Follower Formation Control of Ground Vehicles Using Dynamic Pixel Coun...
 
Unit2 cad/ cam
Unit2 cad/ camUnit2 cad/ cam
Unit2 cad/ cam
 
Unit 1-ME8691 & COMPUTER AIDED DESIGN AND MANUFACTURING
Unit 1-ME8691 & COMPUTER AIDED DESIGN AND    MANUFACTURINGUnit 1-ME8691 & COMPUTER AIDED DESIGN AND    MANUFACTURING
Unit 1-ME8691 & COMPUTER AIDED DESIGN AND MANUFACTURING
 
57892883 geometric-modeling
57892883 geometric-modeling57892883 geometric-modeling
57892883 geometric-modeling
 
57892883 geometric-modeling
57892883 geometric-modeling57892883 geometric-modeling
57892883 geometric-modeling
 
reviewpaper
reviewpaperreviewpaper
reviewpaper
 
A step towards interactive displays of digital elevation models
A step towards interactive displays of digital elevation modelsA step towards interactive displays of digital elevation models
A step towards interactive displays of digital elevation models
 
Synthetic Curves.pdf
Synthetic Curves.pdfSynthetic Curves.pdf
Synthetic Curves.pdf
 
Non-Planar Projections (GRAPP 2008)
Non-Planar Projections (GRAPP 2008)Non-Planar Projections (GRAPP 2008)
Non-Planar Projections (GRAPP 2008)
 
International journal of signal and image processing issues vol 2015 - no 1...
International journal of signal and image processing issues   vol 2015 - no 1...International journal of signal and image processing issues   vol 2015 - no 1...
International journal of signal and image processing issues vol 2015 - no 1...
 
BEV Semantic Segmentation
BEV Semantic SegmentationBEV Semantic Segmentation
BEV Semantic Segmentation
 
Surfaces
SurfacesSurfaces
Surfaces
 

More from cairo university

Tocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedTocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedcairo university
 
Tocci chapter 12 memory devices
Tocci chapter 12 memory devicesTocci chapter 12 memory devices
Tocci chapter 12 memory devicescairo university
 
Tocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitsTocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitscairo university
 
Tocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xTocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xcairo university
 
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitscairo university
 
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...cairo university
 
A15 sedra ch 15 memory circuits
A15  sedra ch 15 memory circuitsA15  sedra ch 15 memory circuits
A15 sedra ch 15 memory circuitscairo university
 
A14 sedra ch 14 advanced mos and bipolar logic circuits
A14  sedra ch 14 advanced mos and bipolar logic circuitsA14  sedra ch 14 advanced mos and bipolar logic circuits
A14 sedra ch 14 advanced mos and bipolar logic circuitscairo university
 
A13 sedra ch 13 cmos digital logic circuits
A13  sedra ch 13 cmos digital logic circuitsA13  sedra ch 13 cmos digital logic circuits
A13 sedra ch 13 cmos digital logic circuitscairo university
 
A09 sedra ch 9 frequency response
A09  sedra ch 9 frequency responseA09  sedra ch 9 frequency response
A09 sedra ch 9 frequency responsecairo university
 
5 sedra ch 05 mosfet revision
5  sedra ch 05  mosfet revision5  sedra ch 05  mosfet revision
5 sedra ch 05 mosfet revisioncairo university
 
Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01cairo university
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01cairo university
 

More from cairo university (20)

Tocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedTocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extended
 
Tocci chapter 12 memory devices
Tocci chapter 12 memory devicesTocci chapter 12 memory devices
Tocci chapter 12 memory devices
 
Tocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitsTocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuits
 
Tocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xTocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified x
 
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuits
 
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
 
A15 sedra ch 15 memory circuits
A15  sedra ch 15 memory circuitsA15  sedra ch 15 memory circuits
A15 sedra ch 15 memory circuits
 
A14 sedra ch 14 advanced mos and bipolar logic circuits
A14  sedra ch 14 advanced mos and bipolar logic circuitsA14  sedra ch 14 advanced mos and bipolar logic circuits
A14 sedra ch 14 advanced mos and bipolar logic circuits
 
A13 sedra ch 13 cmos digital logic circuits
A13  sedra ch 13 cmos digital logic circuitsA13  sedra ch 13 cmos digital logic circuits
A13 sedra ch 13 cmos digital logic circuits
 
A09 sedra ch 9 frequency response
A09  sedra ch 9 frequency responseA09  sedra ch 9 frequency response
A09 sedra ch 9 frequency response
 
5 sedra ch 05 mosfet.ppsx
5  sedra ch 05  mosfet.ppsx5  sedra ch 05  mosfet.ppsx
5 sedra ch 05 mosfet.ppsx
 
5 sedra ch 05 mosfet
5  sedra ch 05  mosfet5  sedra ch 05  mosfet
5 sedra ch 05 mosfet
 
5 sedra ch 05 mosfet revision
5  sedra ch 05  mosfet revision5  sedra ch 05  mosfet revision
5 sedra ch 05 mosfet revision
 
Fields Lec 2
Fields Lec 2Fields Lec 2
Fields Lec 2
 
Fields Lec 1
Fields Lec 1Fields Lec 1
Fields Lec 1
 
Fields Lec 5&6
Fields Lec 5&6Fields Lec 5&6
Fields Lec 5&6
 
Fields Lec 4
Fields Lec 4Fields Lec 4
Fields Lec 4
 
Fields Lec 3
Fields Lec 3Fields Lec 3
Fields Lec 3
 
Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01
 

Recently uploaded

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

CG Pipeline Stages

  • 1. 3/4/2019 1 SBE 306: Computer Graphics Pipeline Dr. Ayman Eldeib Systems & Biomedical Engineering Department Spring 2019 Computer Graphics Pipeline Graphical Information Flow Transform Illuminate Transform Clip Project Rasterize Model & Camera Parameters Rendering Pipeline Framebuffer Display A memory array in which the computer stores an image
  • 2. 3/4/2019 2 Computer Graphics Pipeline  There are two pipelines:  The upper pipeline – Geometric Primitives o Vertex-based primitives – points, lines and polygons  The lower pipeline – Image Primitives o Pixel-based primitives – image and bitmaps  These two separate pipelines are linked through texture mapping Cont. Graphical Information Flow Computer Graphics Pipeline Rendering Pipeline Spring 2011 Modeling Transforms 3D geometry Primitives Lighting Calculations Viewing Transform Clipping Projection Transform Scan Conversion Image Transform into 3D world coordinate system Transform into 3D camera coordinate system Draw pixels (includes texturing, hidden surface, ...) Clip primitives outside camera’s view Transform into 2D screen coordinate system Illuminate according to lighting and reflectance
  • 3. 3/4/2019 3 Computer Graphics Pipeline Spring 2011 Modeling Transforms 3D geometry Primitives Lighting Calculations Viewing Transform Clipping Projection Transform Scan Conversion Image  Model/view transforms combined  Really “vertices” not “primitives” Making this the vertex pipeline  There’s a lot going on in the “scan conversion” stage! [pixel or fragment pipeline] Primitive assembly Rasterization Texture mapping Per-pixel lighting Visibility (Z-buffer) For an OpenGL system Cont. Rendering Pipeline Computer Graphics Pipeline Graphical Information Flow GPUCPU Application Vertex Processor & Rasterization Assembly & Rasterization Pixel Processor Vertices (3D) Vertices (2D) Fragments (pre-pixels) Final pixels (Color, Depth) Graphics State Render-to-texture Application Geometry “vertex pipeline” Rasterization “pixel/fragment pipeline” Handle input, Simulation & AI, etc. Transform, Lighting, Calculate texture coords, etc. fill pixels, Interpolate vertex parameters, Look up/filter textures, etc. Video Memory (Textures)
  • 4. 3/4/2019 4 Computer Graphics Pipeline OpenGL and Related APIs  Computer Graphics Pipeline OpenGL: Application Structure Basics  Configure and open window  Initialize OpenGL state  Register input callback functions  Render  Resize  Input: keyboard, mouse, etc  Enter event processing loop
  • 5. 3/4/2019 5 Computer Graphics Pipeline Modeling: The Basics  Common interactive 3-D primitives: points, lines, polygons (i.e., triangles)  Organized into objects  Collection of primitives, other objects  Associated matrix for transformations  Instancing: using same geometry for multiple objects  4 wheels on a car, 2 arms on a robot Computer Graphics Pipeline Modeling: The Scene Graph  The scene graph captures transformations and object- object relationships  Maintain a matrix stack of transformations  Nodes are objects;  Arrows indicate instancing Each has a matrix Robot BodyHead ArmTrunkLegEyeMouth
  • 6. 3/4/2019 6 Computer Graphics Pipeline Rendering: Transformation  There are three set of transformation: Modeling transforms o Size, place, scale, and rotate objects parts o Object coordinates  world coordinates Viewing transforms o Rotate & translate the world to lie directly in front of the camera Typically place camera at origin Typically looking down -Z axis oWorld coordinates  view coordinates Projection transforms o Apply perspective foreshortening o View coordinates  screen coordinates Computer Graphics Pipeline OpenGL: 3D Coordinate System Left handed Right handed OpenGL uses a right handed coordinate system
  • 7. 3/4/2019 7 Computer Graphics Pipeline  OpenGL has a model view matrix that is applied to each point (vertex)  You can alter the current model view matrix by calling a transformation function  This applies the transformation to all points drawn after the transformation call OpenGL: Modeling Computer Graphics Pipeline Viewing: Camera Movement
  • 8. 3/4/2019 8 Computer Graphics Pipeline OpenGL: Camera Movement  In OpenGL the last transformation defined is the first one applied  To move the camera a transformation must be applied to all scene points  Thus a transformation that moves the camera should be the first transformation applied Cont. Computer Graphics Pipeline OpenGL: Camera Frame • gluLookAt(eyex, eyey, eyez, centerx, centery, centerz, upx, upy, upz) • Camera is at eye, looking at center, with the up direction being up Eye Up vector (u) Center -Z YX V vector (v)
  • 9. 3/4/2019 9 Computer Graphics Pipeline OpenGL: Specifying Viewpoint  glMatrixMode(GL_MODELVIEW);  glLoadIdentity();  gluLookAt(eyeX, eyeY, eyeZ, lookX, lookY, lookZ, upX, upY, upZ);  eye[XYZ]: camera position in world coordinates  look[XYZ]: a point centered in camera’s view  up[XYZ]: a vector defining the camera’s vertical  Creates a matrix that transforms points in world coordinates to camera coordinates  Camera at origin  Looking down -Z axis  Up vector aligned with Y axis (actually Y-Z plane) Computer Graphics Pipeline OpenGL: Camera Movement gluLookAt(eyex, eyey, eyez, centerx, centery, centerz, upx, upy, upz) Camera is at eye, looking at center, with the up direction being up  First, create a coordinate frame for the camera The look vector is center minus eye Then use cross product with up vector  Define a rotation matrix  Apply appropriate translation for camera (eye) location
  • 10. 3/4/2019 10 Computer Graphics Pipeline OpenGL: Camera Example Crystal Ball Interface  Allow the user two options perhaps using the left-right and up-down arrow keys 1. Rotate about the vertical direction in the window 2. Rotate about the horizontal direction in the window Computer Graphics Pipeline  Eye position – location of camera center (ex,ey,ez)  Look vector – direction camera is looking w vector  Up vector – the vertical direction for the camera u vector  V is horizontal direction for the camera Cont. OpenGL: Camera Example Crystal Ball Interface
  • 11. 3/4/2019 11 Computer Graphics Pipeline  Rotate about the vertical direction in the window Rotate the eye position about the up vector The up vector and the center point remain fixed  Rotate about the horizontal direction in the window Compute the current horizontal direction from the up vector and the look vector Rotate the eye about the horizontal direction Rotate the up vector about the horizontal direction OpenGL: Camera Example Crystal Ball Interface Cont. g{tÇ~ lÉâg{tÇ~ lÉâg{tÇ~ lÉâg{tÇ~ lÉâ