SlideShare a Scribd company logo
1 of 15
Download to read offline
Lecture 1:
Graphics Systems and Models
Topics:
1. Applications of computer graphics
2. Graphics systems
3. Camera models
Chapter 1 of Angel.
1
Applications of computer graphics
Computer Graphics: all aspects of producing pictures or images using a
computer.
1. Display
• architectural drawings, e.g. plan of a building
• maps: geographical information
• plotting statistical graphs, e.g. share prices
• medical images: Computed Tomography (CT), Magnetic Resonance
Imaging (MRI)
• scientific visualization
2
2. Design (interaction important)
• Computer Aided Design (CAD)
• design of very-large-scale integrated (VSLI) circuits
3. Simulation
• flight simulation for training pilots
• computer games
• television and computer-animated films: Toy Story (Pixar), Ice Age
• virtual reality
4. User interfaces
• window-based operating systems: Microsoft Windows, Macintosh,
X Windows
• internet browsers: Netscape, Explorer
3
A Graphics System
1. Processor
2. Memory
3. Frame buffer
4. Output devices
5. Input devices
Frame
buffer
Processor
Memory
4
Pixels and the Frame Buffer
Most graphics systems are raster-based.
The raster is an array of picture elements — pixels.
The pixels are stored in the frame buffer.
The depth of the frame buffer = num. bits used per pixel.
1-bit-deep ⇒ black and white only.
8-bit-deep ⇒ 28
= 256 colours.
24-bit-deep ⇒ the RGB-colour system: red, green, blue, 256 shades for
each.
The resolution of the frame buffer = number of pixels.
Rasterization or scan conversion is the assignment of values to pixels
in the frame buffer that best represent graphical primitives: lines, circles,
polygons, etc. Done by the processor. Sophisticated graphics systems use
special-purpose processors for this.
5
Output devices
The usual display type is a cathode-ray-tube (CRT). Pixels in the frame
buffer are displayed as points on the surface of the display. The points
last only a few milliseconds, so the content of the frame buffer must be
redisplayed or refreshed. The rate must be high enough to avoid flicker:
the refresh rate.
There are two ways of displaying pixels:
• non-interlaced: row by row, i.e. scan line by scan line, typically 50
to 80 Hz (times per second).
• interlaced: odd and even rows are refreshed alternately, used in tele-
vision. For example, at 60 Hz, the screen is redrawn only 30 times per
sec.
y deflect
x deflectElectron gun
Focus
Phosphor
6
What is an image?
A combination of objects, lights, and a viewer (or camera).
7
Ray tracing
Trace rays from each light source and see whether they reach the viewer.
Those rays that do form the image. We could do ray tracing in computer
graphics but it is computationally extremely expensive. In practice we
avoid ray-tracing by simplifying our models, for example by assuming all
objects are equally bright (i.e. there are light sources everywhere). Then
each object (e.g. triangle) looks like a light emitter. It is possible to add
light sources and material properties and still avoid ray-tracing.
B
F
C
E
D
A
8
The pinhole camera:
(x, y, z)
(xp
, yp
, zp
)
d
z
y
x
a box with a small hole in the centre of one side with the film placed at
the other end. It is easy to model geometrically. Orient the camera along
the z axis with the pinhole at the origin. Suppose the camera has length d.
Assuming the pinhole allows only one ray of light from any point (x, y, z),
the ray is clearly projected to the point (xp, yp, −d), with coordinates
xp =
−dx
z
, yp =
−dy
z
.
The point (xp, yp, −d) is called the projection point. In an idealized
model, the colour on the film plane at this point is the colour of the point
(x, y, z).
9
The field or angle of view of the pinhole camera is the angle of the largest
object that is fully visible on the film plane. If h is the height of the camera
and θ the angle of view then
θ = 2 tan−1 h
2d
.
d
z
y
h
The pinhole camera has an infinite depth of field: every point in the
field of view is in focus.
The pinhole camera has two disadvantages: (1) too little light gets in,
and (2) the angle of view cannot be adjusted.
More sophisticated cameras replace the pinhole with a lens. The lens
allows more light to enter and different lenses give different angles of view
(c.f. a ‘wide angle lens’). Lenses, however, do not have an infinite depth of
field; not all distances are in focus.
Like the pinhole camera, computer graphics produces images in which
all objects are in focus.
10
The synthetic camera model
In computer graphics we use a synthetic camera model to mimic the
behaviour of a real camera. The image in a pinhole camera is inverted. The
film plane is behind the lens.
(y, z)
Object
Camera
(a) (b)
(yp
, -d)
(yp
, d )
(y, z)
z
yy
z
In the synthetic camera model we avoid the inversion by placing the
film plane, called the projection plane, in front of the lens.
11
The clipping rectangle or clipping window determines the size of
the image.
(a) (b)
This is similar to the effect of the angle of view in a pinhole camera.
d
z
y
h
12
Application Programmer’s Interface (API)
We will use OpenGL. Other possibilities are: PHIGS, Direct3D, VRML,
JAVA-3D.
We need to specify:
1. Objects
2. Viewer
3. Lights
4. Material properties
Objects are defined by a set of vertices, e.g. line segments, rectangles,
polygons, etc. A circle can be represented by its centre and one point on
the circle or by three points on the circle. OpenGL also allows the definition
of more complex curve and surface types (by approximating by triangles).
It also provides direct access to the frame buffer.
The viewer is determined by: position, orientation, focal length, film
plane.
Light sources have location, strength, colour, directionality, etc.
Material properties are attributes of the objects.
13
The Modelling-Rendering Paradigm
It can be an advantage to model and render a scene separately, using tailored
software and hardware for each task.
Modelling is very interactive but user does not need to see all the detail.
Rendering involves mainly number crunching and no user interaction.
Pixar’s Renderman provides an interface (i.e. file format) between the two
tasks.
Interface file
Modeler Renderer
14
The Geometric Pipeline
The four major steps in the imaging process are:
1. Transformation
2. Clipping
3. Projection
4. Rasterization
These operations can be pipelined, i.e. applied in parallel, to speed up the
imaging process. Several steps can be represented by 4 × 4 matrices. Such
matrices can be multiplied together, or concatenated, a process which
lends itself to pipeline architectures and parallelism.
TransformerVertices Clipper Projector Rasterizer Pixels
15

More Related Content

What's hot

Neural Scene Representation & Rendering: Introduction to Novel View Synthesis
Neural Scene Representation & Rendering: Introduction to Novel View SynthesisNeural Scene Representation & Rendering: Introduction to Novel View Synthesis
Neural Scene Representation & Rendering: Introduction to Novel View SynthesisVincent Sitzmann
 
Build Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface ReconstructionBuild Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface ReconstructionDouglas Lanman
 
Structure and Motion - 3D Reconstruction of Cameras and Structure
Structure and Motion - 3D Reconstruction of Cameras and StructureStructure and Motion - 3D Reconstruction of Cameras and Structure
Structure and Motion - 3D Reconstruction of Cameras and StructureGiovanni Murru
 
Ip fundamentals(3)-edit7
Ip fundamentals(3)-edit7Ip fundamentals(3)-edit7
Ip fundamentals(3)-edit7Emily Kapoor
 
Advanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics APIAdvanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics APITomi Aarnio
 
Rendering: Vertices, Indices, UVs and Shaders
Rendering: Vertices, Indices, UVs and ShadersRendering: Vertices, Indices, UVs and Shaders
Rendering: Vertices, Indices, UVs and ShadersDavid Goemans
 
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Konrad Wenzel
 
Robots that see like humans
Robots that see like humansRobots that see like humans
Robots that see like humansWalter Lucetti
 
Pengantar Structure from Motion Photogrammetry
Pengantar Structure from Motion PhotogrammetryPengantar Structure from Motion Photogrammetry
Pengantar Structure from Motion PhotogrammetryDany Laksono
 
An Application of Stereo Image Reprojection from Multi-Angle Images fo...
An  Application  of  Stereo  Image  Reprojection  from  Multi-Angle Images fo...An  Application  of  Stereo  Image  Reprojection  from  Multi-Angle Images fo...
An Application of Stereo Image Reprojection from Multi-Angle Images fo...Tatsuro Matsubara
 
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWSAPPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWSijcga
 
Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06Robin Colclough
 
Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...
Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...
Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...Umbra
 
Interactive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space TechniquesInteractive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space Techniquescodevania
 
Two Dimensional Image Reconstruction Algorithms
Two Dimensional Image Reconstruction AlgorithmsTwo Dimensional Image Reconstruction Algorithms
Two Dimensional Image Reconstruction Algorithmsmastersrihari
 

What's hot (20)

Neural Scene Representation & Rendering: Introduction to Novel View Synthesis
Neural Scene Representation & Rendering: Introduction to Novel View SynthesisNeural Scene Representation & Rendering: Introduction to Novel View Synthesis
Neural Scene Representation & Rendering: Introduction to Novel View Synthesis
 
Computer vision
Computer visionComputer vision
Computer vision
 
Build Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface ReconstructionBuild Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface Reconstruction
 
Structure and Motion - 3D Reconstruction of Cameras and Structure
Structure and Motion - 3D Reconstruction of Cameras and StructureStructure and Motion - 3D Reconstruction of Cameras and Structure
Structure and Motion - 3D Reconstruction of Cameras and Structure
 
Ip fundamentals(3)-edit7
Ip fundamentals(3)-edit7Ip fundamentals(3)-edit7
Ip fundamentals(3)-edit7
 
Advanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics APIAdvanced Game Development with the Mobile 3D Graphics API
Advanced Game Development with the Mobile 3D Graphics API
 
Stereo vision
Stereo visionStereo vision
Stereo vision
 
Stereo vision
Stereo visionStereo vision
Stereo vision
 
Rendering: Vertices, Indices, UVs and Shaders
Rendering: Vertices, Indices, UVs and ShadersRendering: Vertices, Indices, UVs and Shaders
Rendering: Vertices, Indices, UVs and Shaders
 
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
 
Robots that see like humans
Robots that see like humansRobots that see like humans
Robots that see like humans
 
Pengantar Structure from Motion Photogrammetry
Pengantar Structure from Motion PhotogrammetryPengantar Structure from Motion Photogrammetry
Pengantar Structure from Motion Photogrammetry
 
lecture4 raster details in computer graphics(Computer graphics tutorials)
lecture4 raster details in computer graphics(Computer graphics tutorials)lecture4 raster details in computer graphics(Computer graphics tutorials)
lecture4 raster details in computer graphics(Computer graphics tutorials)
 
An Application of Stereo Image Reprojection from Multi-Angle Images fo...
An  Application  of  Stereo  Image  Reprojection  from  Multi-Angle Images fo...An  Application  of  Stereo  Image  Reprojection  from  Multi-Angle Images fo...
An Application of Stereo Image Reprojection from Multi-Angle Images fo...
 
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWSAPPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
 
Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06
 
3D scanner using kinect
3D scanner using kinect3D scanner using kinect
3D scanner using kinect
 
Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...
Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...
Shadow Caster Culling for Efficient Shadow Mapping (Authors: Jiří Bittner, Ol...
 
Interactive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space TechniquesInteractive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space Techniques
 
Two Dimensional Image Reconstruction Algorithms
Two Dimensional Image Reconstruction AlgorithmsTwo Dimensional Image Reconstruction Algorithms
Two Dimensional Image Reconstruction Algorithms
 

Similar to Lecture1

Virtual Reality 3D home applications
Virtual Reality 3D home applicationsVirtual Reality 3D home applications
Virtual Reality 3D home applicationsslebrun
 
24th IP_Fundamentals.ppt
24th IP_Fundamentals.ppt24th IP_Fundamentals.ppt
24th IP_Fundamentals.pptMphill2018
 
visual realism in geometric modeling
visual realism in geometric modelingvisual realism in geometric modeling
visual realism in geometric modelingsabiha khathun
 
Rendering Algorithms.pptx
Rendering Algorithms.pptxRendering Algorithms.pptx
Rendering Algorithms.pptxSherinRappai
 
Copy of 3 d report
Copy of 3 d reportCopy of 3 d report
Copy of 3 d reportVirajjha
 
5 ray casting computer graphics
5 ray casting computer graphics5 ray casting computer graphics
5 ray casting computer graphicscairo university
 
CUDA by Example : Constant Memory and Events : Notes
CUDA by Example : Constant Memory and Events : NotesCUDA by Example : Constant Memory and Events : Notes
CUDA by Example : Constant Memory and Events : NotesSubhajit Sahu
 
Graphics display-devicesmod-1
Graphics display-devicesmod-1Graphics display-devicesmod-1
Graphics display-devicesmod-1Praveen Kumar
 
Shadow Techniques for Real-Time and Interactive Applications
Shadow Techniques for Real-Time and Interactive ApplicationsShadow Techniques for Real-Time and Interactive Applications
Shadow Techniques for Real-Time and Interactive Applicationsstefan_b
 
Biometric simulator for visually impaired (1)
Biometric simulator for visually impaired (1)Biometric simulator for visually impaired (1)
Biometric simulator for visually impaired (1)Rahul Bhagat
 
Computer Graphics 01.pptx
Computer Graphics 01.pptxComputer Graphics 01.pptx
Computer Graphics 01.pptxSMohiuddin1
 
Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3Slide_N
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1qpqpqp
 
Class[4][19th jun] [three js-camera&light]
Class[4][19th jun] [three js-camera&light]Class[4][19th jun] [three js-camera&light]
Class[4][19th jun] [three js-camera&light]Saajid Akram
 
Advance image processing
Advance image processingAdvance image processing
Advance image processingAAKANKSHA JAIN
 

Similar to Lecture1 (20)

CG.pptx
CG.pptxCG.pptx
CG.pptx
 
Virtual Reality 3D home applications
Virtual Reality 3D home applicationsVirtual Reality 3D home applications
Virtual Reality 3D home applications
 
24th IP_Fundamentals.ppt
24th IP_Fundamentals.ppt24th IP_Fundamentals.ppt
24th IP_Fundamentals.ppt
 
visual realism in geometric modeling
visual realism in geometric modelingvisual realism in geometric modeling
visual realism in geometric modeling
 
Rendering Algorithms.pptx
Rendering Algorithms.pptxRendering Algorithms.pptx
Rendering Algorithms.pptx
 
427lects
427lects427lects
427lects
 
Computer Graphics - Introduction and CRT Devices
Computer Graphics - Introduction and CRT DevicesComputer Graphics - Introduction and CRT Devices
Computer Graphics - Introduction and CRT Devices
 
Copy of 3 d report
Copy of 3 d reportCopy of 3 d report
Copy of 3 d report
 
5 ray casting computer graphics
5 ray casting computer graphics5 ray casting computer graphics
5 ray casting computer graphics
 
ei2106-submit-opt-415
ei2106-submit-opt-415ei2106-submit-opt-415
ei2106-submit-opt-415
 
CUDA by Example : Constant Memory and Events : Notes
CUDA by Example : Constant Memory and Events : NotesCUDA by Example : Constant Memory and Events : Notes
CUDA by Example : Constant Memory and Events : Notes
 
Chapter2 DIP
Chapter2 DIP Chapter2 DIP
Chapter2 DIP
 
Graphics display-devicesmod-1
Graphics display-devicesmod-1Graphics display-devicesmod-1
Graphics display-devicesmod-1
 
Shadow Techniques for Real-Time and Interactive Applications
Shadow Techniques for Real-Time and Interactive ApplicationsShadow Techniques for Real-Time and Interactive Applications
Shadow Techniques for Real-Time and Interactive Applications
 
Biometric simulator for visually impaired (1)
Biometric simulator for visually impaired (1)Biometric simulator for visually impaired (1)
Biometric simulator for visually impaired (1)
 
Computer Graphics 01.pptx
Computer Graphics 01.pptxComputer Graphics 01.pptx
Computer Graphics 01.pptx
 
Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1
 
Class[4][19th jun] [three js-camera&light]
Class[4][19th jun] [three js-camera&light]Class[4][19th jun] [three js-camera&light]
Class[4][19th jun] [three js-camera&light]
 
Advance image processing
Advance image processingAdvance image processing
Advance image processing
 

More from Mobeen Mustafa

More from Mobeen Mustafa (11)

Theory of automata
Theory of automataTheory of automata
Theory of automata
 
FInite Automata
FInite AutomataFInite Automata
FInite Automata
 
Language
LanguageLanguage
Language
 
Mathematical preliminaries in Automata
Mathematical preliminaries in AutomataMathematical preliminaries in Automata
Mathematical preliminaries in Automata
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Lect3 ch15-unit2
Lect3 ch15-unit2Lect3 ch15-unit2
Lect3 ch15-unit2
 
Incremental Model
Incremental ModelIncremental Model
Incremental Model
 
RAD
RADRAD
RAD
 
Types of graphics cards
Types of graphics cardsTypes of graphics cards
Types of graphics cards
 
convert number to string
convert number to string convert number to string
convert number to string
 
Process or preparing effective b.m
Process or preparing effective b.mProcess or preparing effective b.m
Process or preparing effective b.m
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

Lecture1

  • 1. Lecture 1: Graphics Systems and Models Topics: 1. Applications of computer graphics 2. Graphics systems 3. Camera models Chapter 1 of Angel. 1
  • 2. Applications of computer graphics Computer Graphics: all aspects of producing pictures or images using a computer. 1. Display • architectural drawings, e.g. plan of a building • maps: geographical information • plotting statistical graphs, e.g. share prices • medical images: Computed Tomography (CT), Magnetic Resonance Imaging (MRI) • scientific visualization 2
  • 3. 2. Design (interaction important) • Computer Aided Design (CAD) • design of very-large-scale integrated (VSLI) circuits 3. Simulation • flight simulation for training pilots • computer games • television and computer-animated films: Toy Story (Pixar), Ice Age • virtual reality 4. User interfaces • window-based operating systems: Microsoft Windows, Macintosh, X Windows • internet browsers: Netscape, Explorer 3
  • 4. A Graphics System 1. Processor 2. Memory 3. Frame buffer 4. Output devices 5. Input devices Frame buffer Processor Memory 4
  • 5. Pixels and the Frame Buffer Most graphics systems are raster-based. The raster is an array of picture elements — pixels. The pixels are stored in the frame buffer. The depth of the frame buffer = num. bits used per pixel. 1-bit-deep ⇒ black and white only. 8-bit-deep ⇒ 28 = 256 colours. 24-bit-deep ⇒ the RGB-colour system: red, green, blue, 256 shades for each. The resolution of the frame buffer = number of pixels. Rasterization or scan conversion is the assignment of values to pixels in the frame buffer that best represent graphical primitives: lines, circles, polygons, etc. Done by the processor. Sophisticated graphics systems use special-purpose processors for this. 5
  • 6. Output devices The usual display type is a cathode-ray-tube (CRT). Pixels in the frame buffer are displayed as points on the surface of the display. The points last only a few milliseconds, so the content of the frame buffer must be redisplayed or refreshed. The rate must be high enough to avoid flicker: the refresh rate. There are two ways of displaying pixels: • non-interlaced: row by row, i.e. scan line by scan line, typically 50 to 80 Hz (times per second). • interlaced: odd and even rows are refreshed alternately, used in tele- vision. For example, at 60 Hz, the screen is redrawn only 30 times per sec. y deflect x deflectElectron gun Focus Phosphor 6
  • 7. What is an image? A combination of objects, lights, and a viewer (or camera). 7
  • 8. Ray tracing Trace rays from each light source and see whether they reach the viewer. Those rays that do form the image. We could do ray tracing in computer graphics but it is computationally extremely expensive. In practice we avoid ray-tracing by simplifying our models, for example by assuming all objects are equally bright (i.e. there are light sources everywhere). Then each object (e.g. triangle) looks like a light emitter. It is possible to add light sources and material properties and still avoid ray-tracing. B F C E D A 8
  • 9. The pinhole camera: (x, y, z) (xp , yp , zp ) d z y x a box with a small hole in the centre of one side with the film placed at the other end. It is easy to model geometrically. Orient the camera along the z axis with the pinhole at the origin. Suppose the camera has length d. Assuming the pinhole allows only one ray of light from any point (x, y, z), the ray is clearly projected to the point (xp, yp, −d), with coordinates xp = −dx z , yp = −dy z . The point (xp, yp, −d) is called the projection point. In an idealized model, the colour on the film plane at this point is the colour of the point (x, y, z). 9
  • 10. The field or angle of view of the pinhole camera is the angle of the largest object that is fully visible on the film plane. If h is the height of the camera and θ the angle of view then θ = 2 tan−1 h 2d . d z y h The pinhole camera has an infinite depth of field: every point in the field of view is in focus. The pinhole camera has two disadvantages: (1) too little light gets in, and (2) the angle of view cannot be adjusted. More sophisticated cameras replace the pinhole with a lens. The lens allows more light to enter and different lenses give different angles of view (c.f. a ‘wide angle lens’). Lenses, however, do not have an infinite depth of field; not all distances are in focus. Like the pinhole camera, computer graphics produces images in which all objects are in focus. 10
  • 11. The synthetic camera model In computer graphics we use a synthetic camera model to mimic the behaviour of a real camera. The image in a pinhole camera is inverted. The film plane is behind the lens. (y, z) Object Camera (a) (b) (yp , -d) (yp , d ) (y, z) z yy z In the synthetic camera model we avoid the inversion by placing the film plane, called the projection plane, in front of the lens. 11
  • 12. The clipping rectangle or clipping window determines the size of the image. (a) (b) This is similar to the effect of the angle of view in a pinhole camera. d z y h 12
  • 13. Application Programmer’s Interface (API) We will use OpenGL. Other possibilities are: PHIGS, Direct3D, VRML, JAVA-3D. We need to specify: 1. Objects 2. Viewer 3. Lights 4. Material properties Objects are defined by a set of vertices, e.g. line segments, rectangles, polygons, etc. A circle can be represented by its centre and one point on the circle or by three points on the circle. OpenGL also allows the definition of more complex curve and surface types (by approximating by triangles). It also provides direct access to the frame buffer. The viewer is determined by: position, orientation, focal length, film plane. Light sources have location, strength, colour, directionality, etc. Material properties are attributes of the objects. 13
  • 14. The Modelling-Rendering Paradigm It can be an advantage to model and render a scene separately, using tailored software and hardware for each task. Modelling is very interactive but user does not need to see all the detail. Rendering involves mainly number crunching and no user interaction. Pixar’s Renderman provides an interface (i.e. file format) between the two tasks. Interface file Modeler Renderer 14
  • 15. The Geometric Pipeline The four major steps in the imaging process are: 1. Transformation 2. Clipping 3. Projection 4. Rasterization These operations can be pipelined, i.e. applied in parallel, to speed up the imaging process. Several steps can be represented by 4 × 4 matrices. Such matrices can be multiplied together, or concatenated, a process which lends itself to pipeline architectures and parallelism. TransformerVertices Clipper Projector Rasterizer Pixels 15