SlideShare a Scribd company logo
1 of 40
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

Autocad Course Outline
Autocad Course OutlineAutocad Course Outline
Autocad Course OutlineJoaquin Hamad
 
Cad notes - ENGINEERING DRAWING - RGPV,BHOPAL
Cad notes - ENGINEERING DRAWING - RGPV,BHOPALCad notes - ENGINEERING DRAWING - RGPV,BHOPAL
Cad notes - ENGINEERING DRAWING - RGPV,BHOPALAbhishek 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.pdfSafe 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 devicesMani Kanth
 
autocad 2002 tutorial 3d modeling
autocad 2002 tutorial 3d modelingautocad 2002 tutorial 3d modeling
autocad 2002 tutorial 3d modelingAsril Perangin
 
IDC 2010 Conference Presentation
IDC 2010 Conference PresentationIDC 2010 Conference Presentation
IDC 2010 Conference PresentationGonçalo Amador
 
Virtual Reality 3D home applications
Virtual Reality 3D home applicationsVirtual Reality 3D home applications
Virtual Reality 3D home applicationsslebrun
 
Introduction_image_processing_and_applications_.pptx
Introduction_image_processing_and_applications_.pptxIntroduction_image_processing_and_applications_.pptx
Introduction_image_processing_and_applications_.pptxVINOTHRAJR1
 
UNIT 1 CAD CAM.pptx
UNIT 1 CAD CAM.pptxUNIT 1 CAD CAM.pptx
UNIT 1 CAD CAM.pptxMani Raja
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing BasicsA B Shinde
 
Digital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfDigital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfVaideshSiva1
 
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 YogiTekendra 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

Digital Marketing Company in Bangalore.pdf
Digital Marketing Company in Bangalore.pdfDigital Marketing Company in Bangalore.pdf
Digital Marketing Company in Bangalore.pdfOnecity
 
NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...
NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...
NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...Amil baba
 
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdfECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdfSarbjit Bahga
 
CADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdfCADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdfDuyDo100
 
Branding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdfBranding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdfAlexandra Plesner
 
Spring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers ParisSpring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers ParisPeclers Paris
 
Latest Trends in Home and Building Design
Latest Trends in Home and Building DesignLatest Trends in Home and Building Design
Latest Trends in Home and Building DesignResDraft
 
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...Amil baba
 
And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)☕ 🥧 🚲 Martin Gude
 
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证ugzga
 
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...Amil baba
 
Webhost NVME Cloud VPS Hosting1234455678
Webhost NVME Cloud VPS Hosting1234455678Webhost NVME Cloud VPS Hosting1234455678
Webhost NVME Cloud VPS Hosting1234455678Cloud99 Cloud
 
Levi's Advertisement and camapign design
Levi's Advertisement and camapign designLevi's Advertisement and camapign design
Levi's Advertisement and camapign designAkankshaD3
 
如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证ugzga
 
Bit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfolioBit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfoliodhrumibshah13
 
Naer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing ProjectNaer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing Projectbuvanatest
 
100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...
100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...
100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...pillahdonald
 
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证ugzga
 
Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...
Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...
Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...mikehavy0
 
Recycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfRecycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfjeffreycarroll14
 

Recently uploaded (20)

Digital Marketing Company in Bangalore.pdf
Digital Marketing Company in Bangalore.pdfDigital Marketing Company in Bangalore.pdf
Digital Marketing Company in Bangalore.pdf
 
NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...
NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...
NO1 Best Best Amil In Rawalpindi Bangali Baba In Rawalpindi jadu tona karne w...
 
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdfECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
 
CADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdfCADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdf
 
Branding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdfBranding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdf
 
Spring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers ParisSpring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers Paris
 
Latest Trends in Home and Building Design
Latest Trends in Home and Building DesignLatest Trends in Home and Building Design
Latest Trends in Home and Building Design
 
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
 
And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)
 
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
 
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
 
Webhost NVME Cloud VPS Hosting1234455678
Webhost NVME Cloud VPS Hosting1234455678Webhost NVME Cloud VPS Hosting1234455678
Webhost NVME Cloud VPS Hosting1234455678
 
Levi's Advertisement and camapign design
Levi's Advertisement and camapign designLevi's Advertisement and camapign design
Levi's Advertisement and camapign design
 
如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(Birmingham毕业证书)伯明翰大学学院毕业证成绩单本科硕士学位证留信学历认证
 
Bit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfolioBit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfolio
 
Naer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing ProjectNaer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing Project
 
100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...
100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...
100^%)( KATLEHONG))(*((+27838792658))*))௹ )Abortion Pills for Sale in Doha, D...
 
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
 
Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...
Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...
Abortion Clinic in Springs +27791653574 Springs WhatsApp Abortion Clinic Serv...
 
Recycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfRecycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdf
 

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