SlideShare a Scribd company logo
Computer Graphics
An Introduction
What’s this course all about?
20/08/2022 Lecture 1 2
We will cover…
Graphics programming and algorithms
Graphics data structures
Colour
Applied geometry, modelling and rendering
Computer Graphics is about animation (films)
20/08/2022 Lecture 1 3
Major driving force now
Games are very important in Computer Graphics
20/08/2022 Lecture 1 4
Medical Imaging is another driving force
20/08/2022 Lecture 1 5
Computer Aided Design too
20/08/2022 Lecture 1 6
Scientific Visualisation
20/08/2022 Lecture 1 7
To view below and
above our visual range
First Lecture
• The graphics processes
– What we will cover on this course
• Some definitions
– Fundamental units we use in these processes
• First Practical
20/08/2022 Lecture 1 8
Overview of the Course
• Graphics Pipeline (Today)
• Modelling
– Surface / Curve modelling
• (Local lighting effects) Illumination, lighting, shading,
mirroring, shadowing
• Rasterization (creating the image using the 3D scene)
• Ray tracing
• Global illumination
• Curves and Surfaces
20/08/2022 Lecture 1 9
Graphics/Rendering Pipeline
• Graphics processes generally execute
sequentially
• Pipelining the process means dividing it
into stages
• Especially when rendering in real-time,
different hardware resources are assigned
for each stage
20/08/2022 Lecture 1 10
Graphics / Rendering Pipeline
• There are three stages
– Application Stage
– Geometry Stage
– Rasterization Stage
20/08/2022 Lecture 1 11
Application stage
• Entirely done in software by the CPU
• Read Data
– the world geometry database,
– User’s input by mice, trackballs, trackers, or sensing
gloves
• In response to the user’s input, the application
stage change the view or scene
20/08/2022 Lecture 1 12
Geometry Stage
20/08/2022 Lecture 1 13
Model Transformation
Modeling: shapes
Shading: reflection and lighting
Transformation: viewing
Hidden Surface Elimination
Rasterization
Stage
Rasterization Stage
20/08/2022 Lecture 1 14
Rasterization and Sampling
Texture Mapping
Image Composition
Intensity and Colour Quantization
Geometry Stage
Framebuffer/Display
An example thro’ the pipeline…
20/08/2022 Lecture 1 15
The scene we are trying to represent:
Images courtesy of Picture Inc.
Geometry Pipeline
20/08/2022 Lecture 1 16
Model Transformation
Loaded 3D Models
Shading: reflection and lighting
Transformation: viewing
Hidden Surface Elimination
Imaging
Pipeline
Preparing Shape Models
20/08/2022 Lecture 1 17
Designed by polygons, parametric curves/surfaces,
implicit surfaces and etc.
Defined in its own coordinate system
Model Transformation
20/08/2022 Lecture 1 18
Objects put into the scene by applying translation, scaling and
rotation
Linear transformation called homogeneous transformation is used
The location of all the vertices are updated by this transformation
Perspective Projection
20/08/2022 Lecture 1 19
We want to create a picture of the scene viewed from the camera
We apply a perspective transformation to convert the 3D coordinates
to 2D coordinates of the screen
Objects far away appear smaller, closer objects appear bigger
Hidden Surface Removal
20/08/2022 Lecture 1 20
Objects occluded by other objects must not be drawn
Shading
20/08/2022 Lecture 1 21
Now we need to decide the colour of each pixels taking into account
the object’s colour, lighting condition and the camera position
Object
point light source
Shading : Constant Shading - Ambient
20/08/2022 Lecture 1 22
Objects colours by its own colour
Shading – Flat Shading
20/08/2022 Lecture 1 23
Objects coloured based on its own colour and the lighting condition
One colour for one face
Gouraud shading, no specular highlights
20/08/2022 Lecture 1 24
Lighting calculation per vertex
Shapes by Polynomial Surfaces
20/08/2022 Lecture 1 25
Specular highlights added
20/08/2022 Lecture 1 26
Light perfectly reflected in a mirror-like way
Phong shading
20/08/2022 Lecture 1 27
Next, the Imaging Pipeline
20/08/2022 Lecture 1 28
Rasterization and Sampling
Texture Mapping
Image Composition
Intensity and Colour Quantization
Geometry
Framebuffer/Display
Pipeline
Rasterization
• Converts the vertex information output by
the geometry pipeline into pixel
information needed by the video display
• Aliasing: distortion artifacts produced
when representing a high-resolution signal
at a lower resolution.
• Anti-aliasing : technique to remove aliasing
20/08/2022 Lecture 1 29
Anti-aliasing
20/08/2022 Lecture 1 30
Aliased polygons
(jagged edges)
Anti-aliased polygons
20/08/2022 Lecture 1 31
How is anti-aliasing done? Each pixel is subdivided
(sub-sampled) in n regions, and each sub-pixel has a color;
Compute the average color value
Texture mapping
20/08/2022 Lecture 1 32
Other covered topics:
Reflections, shadows & Bump mapping
20/08/2022 Lecture 1 33
Other covered topics:
Global Illumination
20/08/2022 Lecture 1 34
Polynomial Curves, Surfaces
Graphics Definitions
• Point
– a location in space, 2D or 3D
– sometimes denotes one pixel
• Line
– straight path connecting two points
– infinitesimal width, consistent density
– beginning and end on points
20/08/2022 Lecture 1 36
Graphics Definitions
• Vertex
– point in 3D
• Edge
– line in 3D connecting two vertices
• Polygon/Face/Facet
– arbitrary shape formed by connected vertices
– fundamental unit of 3D computer graphics
• Mesh
– set of connected polygons forming a surface (or object)
– :
20/08/2022 Lecture 1 37
Graphics Definitions
• Rendering : process of generating an image
from the model
• Framebuffer : a video output device that
drives a video display from a memory
containing the color for every pixel
20/08/2022 Lecture 1 38
First Practical
• Write a program that renders an image of a teapot
and outputs it into an image file
• I prepared a demo program to load a 3D model and
draw the edges
• You update it so that the surface appears shaded
• See the course website for the details
20/08/2022 Lecture 1 39
Summary
• The course is about algorithms, not
applications
• Lots of mathematics
• Graphics execution is a pipelined approach
• Basic definitions presented
• Some support resources indicated
20/08/2022 Lecture 1 40

More Related Content

Similar to lect1.ppt

Introduction graphics
Introduction graphicsIntroduction graphics
Introduction graphics
Cecelia Yumnam
 
Autocad Course Outline
Autocad Course OutlineAutocad Course Outline
Autocad Course Outline
Joaquin Hamad
 
Lecture-1.pptx
Lecture-1.pptxLecture-1.pptx
Lecture-1.pptx
MajidKhan858527
 
Digital design
Digital designDigital design
Digital design
Sheetu Goel
 
Cad notes - ENGINEERING DRAWING - RGPV,BHOPAL
Cad notes - ENGINEERING DRAWING - RGPV,BHOPALCad notes - ENGINEERING DRAWING - RGPV,BHOPAL
Cad notes - ENGINEERING DRAWING - RGPV,BHOPAL
Abhishek Kandare
 
Bridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdf
Bridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdfBridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdf
Bridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdf
Safe Software
 
Application of computer graphics and input devices
Application of computer graphics and input devicesApplication of computer graphics and input devices
Application of computer graphics and input devices
Mani Kanth
 
CAD/CAM/CIM ( Lecture 2 model construction and product design)
CAD/CAM/CIM ( Lecture 2 model construction and product design)CAD/CAM/CIM ( Lecture 2 model construction and product design)
CAD/CAM/CIM ( Lecture 2 model construction and product design)
Amanuel Diriba From Jimma Institute of Technology
 
autocad 2002 tutorial 3d modeling
autocad 2002 tutorial 3d modelingautocad 2002 tutorial 3d modeling
autocad 2002 tutorial 3d modeling
Asril Perangin
 
IDC 2010 Conference Presentation
IDC 2010 Conference PresentationIDC 2010 Conference Presentation
IDC 2010 Conference Presentation
Gonçalo Amador
 
Overview of Computer Graphics
Overview of Computer GraphicsOverview of Computer Graphics
Overview of Computer Graphics
United International University
 
Virtual Reality 3D home applications
Virtual Reality 3D home applicationsVirtual Reality 3D home applications
Virtual Reality 3D home applications
slebrun
 
Introduction_image_processing_and_applications_.pptx
Introduction_image_processing_and_applications_.pptxIntroduction_image_processing_and_applications_.pptx
Introduction_image_processing_and_applications_.pptx
VINOTHRAJR1
 
UNIT 1 CAD CAM.pptx
UNIT 1 CAD CAM.pptxUNIT 1 CAD CAM.pptx
UNIT 1 CAD CAM.pptx
Mani Raja
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
A B Shinde
 
Digital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfDigital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdf
VaideshSiva1
 
B. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath Yogi
Tekendra Nath Yogi
 

Similar to lect1.ppt (20)

Introduction graphics
Introduction graphicsIntroduction graphics
Introduction graphics
 
Autocad Course Outline
Autocad Course OutlineAutocad Course Outline
Autocad Course Outline
 
Lecture-1.pptx
Lecture-1.pptxLecture-1.pptx
Lecture-1.pptx
 
Digital design
Digital designDigital design
Digital design
 
Cad notes
Cad notesCad notes
Cad notes
 
CAD
CADCAD
CAD
 
Cad notes - ENGINEERING DRAWING - RGPV,BHOPAL
Cad notes - ENGINEERING DRAWING - RGPV,BHOPALCad notes - ENGINEERING DRAWING - RGPV,BHOPAL
Cad notes - ENGINEERING DRAWING - RGPV,BHOPAL
 
Bridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdf
Bridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdfBridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdf
Bridging Between CAD & GIS - 8 Ways to Automate Your Data Integration.pdf
 
Application of computer graphics and input devices
Application of computer graphics and input devicesApplication of computer graphics and input devices
Application of computer graphics and input devices
 
CAD/CAM/CIM ( Lecture 2 model construction and product design)
CAD/CAM/CIM ( Lecture 2 model construction and product design)CAD/CAM/CIM ( Lecture 2 model construction and product design)
CAD/CAM/CIM ( Lecture 2 model construction and product design)
 
autocad 2002 tutorial 3d modeling
autocad 2002 tutorial 3d modelingautocad 2002 tutorial 3d modeling
autocad 2002 tutorial 3d modeling
 
IDC 2010 Conference Presentation
IDC 2010 Conference PresentationIDC 2010 Conference Presentation
IDC 2010 Conference Presentation
 
Cgp lecture1 introduction
Cgp lecture1 introductionCgp lecture1 introduction
Cgp lecture1 introduction
 
Overview of Computer Graphics
Overview of Computer GraphicsOverview of Computer Graphics
Overview of Computer Graphics
 
Virtual Reality 3D home applications
Virtual Reality 3D home applicationsVirtual Reality 3D home applications
Virtual Reality 3D home applications
 
Introduction_image_processing_and_applications_.pptx
Introduction_image_processing_and_applications_.pptxIntroduction_image_processing_and_applications_.pptx
Introduction_image_processing_and_applications_.pptx
 
UNIT 1 CAD CAM.pptx
UNIT 1 CAD CAM.pptxUNIT 1 CAD CAM.pptx
UNIT 1 CAD CAM.pptx
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
 
Digital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfDigital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdf
 
B. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit1.1 By Tekendra Nath Yogi
 

Recently uploaded

一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
peuce
 
一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理
一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理
一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理
kecekev
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
M. A. Architect
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
Carolina de Bartolo
 
Moldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo espMoldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo esp
Hess9
 
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptxUNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
GOWSIKRAJA PALANISAMY
 
PDF SubmissionDigital Marketing Institute in Noida
PDF SubmissionDigital Marketing Institute in NoidaPDF SubmissionDigital Marketing Institute in Noida
PDF SubmissionDigital Marketing Institute in Noida
PoojaSaini954651
 
Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.
Techno Merch
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
Alan Dix
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
asuzyq
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptxUNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
GOWSIKRAJA PALANISAMY
 
Impact of Fonts: in Web and Apps Design
Impact of Fonts:  in Web and Apps DesignImpact of Fonts:  in Web and Apps Design
Impact of Fonts: in Web and Apps Design
contactproperweb2014
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
708pb191
 

Recently uploaded (20)

一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
 
一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理
一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理
一比一原版(UW毕业证)西雅图华盛顿大学毕业证如何办理
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
 
Moldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo espMoldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo esp
 
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptxUNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
 
PDF SubmissionDigital Marketing Institute in Noida
PDF SubmissionDigital Marketing Institute in NoidaPDF SubmissionDigital Marketing Institute in Noida
PDF SubmissionDigital Marketing Institute in Noida
 
Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptxUNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
UNIT IV-VISUAL STYLE AND MOBILE INTERFACES.pptx
 
Impact of Fonts: in Web and Apps Design
Impact of Fonts:  in Web and Apps DesignImpact of Fonts:  in Web and Apps Design
Impact of Fonts: in Web and Apps Design
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
 

lect1.ppt

  • 2. What’s this course all about? 20/08/2022 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data structures Colour Applied geometry, modelling and rendering
  • 3. Computer Graphics is about animation (films) 20/08/2022 Lecture 1 3 Major driving force now
  • 4. Games are very important in Computer Graphics 20/08/2022 Lecture 1 4
  • 5. Medical Imaging is another driving force 20/08/2022 Lecture 1 5
  • 6. Computer Aided Design too 20/08/2022 Lecture 1 6
  • 7. Scientific Visualisation 20/08/2022 Lecture 1 7 To view below and above our visual range
  • 8. First Lecture • The graphics processes – What we will cover on this course • Some definitions – Fundamental units we use in these processes • First Practical 20/08/2022 Lecture 1 8
  • 9. Overview of the Course • Graphics Pipeline (Today) • Modelling – Surface / Curve modelling • (Local lighting effects) Illumination, lighting, shading, mirroring, shadowing • Rasterization (creating the image using the 3D scene) • Ray tracing • Global illumination • Curves and Surfaces 20/08/2022 Lecture 1 9
  • 10. Graphics/Rendering Pipeline • Graphics processes generally execute sequentially • Pipelining the process means dividing it into stages • Especially when rendering in real-time, different hardware resources are assigned for each stage 20/08/2022 Lecture 1 10
  • 11. Graphics / Rendering Pipeline • There are three stages – Application Stage – Geometry Stage – Rasterization Stage 20/08/2022 Lecture 1 11
  • 12. Application stage • Entirely done in software by the CPU • Read Data – the world geometry database, – User’s input by mice, trackballs, trackers, or sensing gloves • In response to the user’s input, the application stage change the view or scene 20/08/2022 Lecture 1 12
  • 13. Geometry Stage 20/08/2022 Lecture 1 13 Model Transformation Modeling: shapes Shading: reflection and lighting Transformation: viewing Hidden Surface Elimination Rasterization Stage
  • 14. Rasterization Stage 20/08/2022 Lecture 1 14 Rasterization and Sampling Texture Mapping Image Composition Intensity and Colour Quantization Geometry Stage Framebuffer/Display
  • 15. An example thro’ the pipeline… 20/08/2022 Lecture 1 15 The scene we are trying to represent: Images courtesy of Picture Inc.
  • 16. Geometry Pipeline 20/08/2022 Lecture 1 16 Model Transformation Loaded 3D Models Shading: reflection and lighting Transformation: viewing Hidden Surface Elimination Imaging Pipeline
  • 17. Preparing Shape Models 20/08/2022 Lecture 1 17 Designed by polygons, parametric curves/surfaces, implicit surfaces and etc. Defined in its own coordinate system
  • 18. Model Transformation 20/08/2022 Lecture 1 18 Objects put into the scene by applying translation, scaling and rotation Linear transformation called homogeneous transformation is used The location of all the vertices are updated by this transformation
  • 19. Perspective Projection 20/08/2022 Lecture 1 19 We want to create a picture of the scene viewed from the camera We apply a perspective transformation to convert the 3D coordinates to 2D coordinates of the screen Objects far away appear smaller, closer objects appear bigger
  • 20. Hidden Surface Removal 20/08/2022 Lecture 1 20 Objects occluded by other objects must not be drawn
  • 21. Shading 20/08/2022 Lecture 1 21 Now we need to decide the colour of each pixels taking into account the object’s colour, lighting condition and the camera position Object point light source
  • 22. Shading : Constant Shading - Ambient 20/08/2022 Lecture 1 22 Objects colours by its own colour
  • 23. Shading – Flat Shading 20/08/2022 Lecture 1 23 Objects coloured based on its own colour and the lighting condition One colour for one face
  • 24. Gouraud shading, no specular highlights 20/08/2022 Lecture 1 24 Lighting calculation per vertex
  • 25. Shapes by Polynomial Surfaces 20/08/2022 Lecture 1 25
  • 26. Specular highlights added 20/08/2022 Lecture 1 26 Light perfectly reflected in a mirror-like way
  • 28. Next, the Imaging Pipeline 20/08/2022 Lecture 1 28 Rasterization and Sampling Texture Mapping Image Composition Intensity and Colour Quantization Geometry Framebuffer/Display Pipeline
  • 29. Rasterization • Converts the vertex information output by the geometry pipeline into pixel information needed by the video display • Aliasing: distortion artifacts produced when representing a high-resolution signal at a lower resolution. • Anti-aliasing : technique to remove aliasing 20/08/2022 Lecture 1 29
  • 30. Anti-aliasing 20/08/2022 Lecture 1 30 Aliased polygons (jagged edges) Anti-aliased polygons
  • 31. 20/08/2022 Lecture 1 31 How is anti-aliasing done? Each pixel is subdivided (sub-sampled) in n regions, and each sub-pixel has a color; Compute the average color value
  • 33. Other covered topics: Reflections, shadows & Bump mapping 20/08/2022 Lecture 1 33
  • 34. Other covered topics: Global Illumination 20/08/2022 Lecture 1 34
  • 36. Graphics Definitions • Point – a location in space, 2D or 3D – sometimes denotes one pixel • Line – straight path connecting two points – infinitesimal width, consistent density – beginning and end on points 20/08/2022 Lecture 1 36
  • 37. Graphics Definitions • Vertex – point in 3D • Edge – line in 3D connecting two vertices • Polygon/Face/Facet – arbitrary shape formed by connected vertices – fundamental unit of 3D computer graphics • Mesh – set of connected polygons forming a surface (or object) – : 20/08/2022 Lecture 1 37
  • 38. Graphics Definitions • Rendering : process of generating an image from the model • Framebuffer : a video output device that drives a video display from a memory containing the color for every pixel 20/08/2022 Lecture 1 38
  • 39. First Practical • Write a program that renders an image of a teapot and outputs it into an image file • I prepared a demo program to load a 3D model and draw the edges • You update it so that the surface appears shaded • See the course website for the details 20/08/2022 Lecture 1 39
  • 40. Summary • The course is about algorithms, not applications • Lots of mathematics • Graphics execution is a pipelined approach • Basic definitions presented • Some support resources indicated 20/08/2022 Lecture 1 40