Download - 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie [email protected] Lecture 1 - Overview
![Page 1: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/1.jpg)
1GR2-00
GR2Advanced Computer
GraphicsAGR
GR2Advanced Computer
GraphicsAGR
Lecture 1 - Overview
![Page 2: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/2.jpg)
2GR2-00
ObjectivesObjectives
To understand how 3D scenes can be modelled - in terms of geometry, appearance and behaviour - and rendered on a display
To understand how to deliver interactive animated 3D graphics over the Internet
To be able to create interactive 3D graphics applications using industry standard software (OpenGL and VRML)
![Page 3: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/3.jpg)
3GR2-00
Lecture Outline - The Basics
Lecture Outline - The Basics
MODELLING– representing objects in 3D– transforming objects and composing scenes
VIEWING– projecting 3D scenes onto a 2D display
surface RENDERING
– illumination– shading– adding realism via textures, shadows
![Page 4: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/4.jpg)
4GR2-00
Basic ModellingBasic Modelling
x
y
z
objects representedas set of faces - iepolygons- and facesas a set of points
scenes composedby scaling, rotating,translating objects tocreate a 3D world
![Page 5: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/5.jpg)
5GR2-00
ViewingViewing
Clipping– selects a volume of interest (cf 2D
clipping in GR1) Projection
– 3D scene is projected onto a 2D plane
camera
![Page 6: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/6.jpg)
6GR2-00
RenderingRendering
??
shading:how do we use ourknowledge of illuminationto shade surfaces in ourworld?
illumination:how is light reflectedfrom surfaces?
![Page 7: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/7.jpg)
7GR2-00
RenderingRendering
texture
shadows
![Page 8: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/8.jpg)
8GR2-00
Lecture Outline - InternetLecture Outline - Internet
VRML– ISO standard for 3D graphics over
the Web– allows modelling of geometry,
appearance and behaviour
![Page 9: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/9.jpg)
9GR2-00
Lecture Outline - Advanced
Lecture Outline - Advanced
ADVANCED RENDERING– direct versus global illumination
methods– ray tracing and radiosity
OTHER ADVANCED FEATURES– curve and surface modelling– image based rendering– non-photorealistic rendering
![Page 10: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/10.jpg)
10GR2-00
Lecture Outline - Advanced
Lecture Outline - Advanced
Advanced Rendering - global illumination– ray tracing
– radiositybased on physics of radiative heat
transfer between surfaces
light
eye
screen
objects
![Page 11: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/11.jpg)
11GR2-00
Ray TracingRay Tracing
![Page 12: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/12.jpg)
12GR2-00
RadiosityRadiosity
![Page 13: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/13.jpg)
13GR2-00
Practical OutlinePractical Outline
Basic graphics programming– creation of interactive 3D worlds
using OpenGL Web graphics
– creating interactive, animated 3D virtual worlds on the Web using VRML
Practical work will use the Silicon Graphics O2 laboratory, and the linux machines
![Page 14: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/14.jpg)
14GR2-00
AGR AGR
Virtual Environments– study group looking at the
advanced requirements for VR .. or interactive simulation
Practical work using Open Inventor
![Page 15: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/15.jpg)
15GR2-00
Course InfoCourse Info
Lectures– Monday 2.00 - 3.00 (LT25)– Tuesday 1.00 - 2.00 (LT25)
Practicals Web site
– http://www.scs.leeds.ac.uk/kwb/GR2 Newsgroups
– local.modules.gr2 local.modules.agr– local.modules.gr2.talk
local.modules.agr.talk
![Page 16: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/16.jpg)
16GR2-00
BooksBooks
Computer Graphics (second edition)– Hearn and Baker, Prentice Hall
3D Computer Graphics (third edition)– Alan Watt, Addison Wesley
Introduction to Computer Graphics– Foley, van Dam, Feiner and Hughes,
Addison-Wesley
![Page 17: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/17.jpg)
17GR2-00
BooksBooks
Interactive Computer Graphics (top-down approach using OpenGL)– Angel, Addison Wesley
The VRML 2.0 Handbook– Hartman and Wernecke, Addison-
Wesley
OpenGL Manual
![Page 18: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/18.jpg)
18GR2-00
AssessmentAssessment
Module Examination Coursework
GR2 75% 25%
AGR 60% 40%
![Page 19: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/19.jpg)
19GR2-00
Before we begin...mathematics!
Before we begin...mathematics!
3D Co-ordinate Systems
LEFT RIGHT
x
yz
x
y
z
z points away z points toward
Align thumb with x, first finger with y, then second fingerof appropriate hand gives z direction. Common now touse a RIGHT HANDED system.
![Page 20: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/20.jpg)
20GR2-00
Points and VectorsPoints and Vectors
We shall write points as column vectors
xyz
P =
Difference of two points gives a direction vector:D = P2 - P1
x
y
z
P2
P1
x
y
z
P
Note: If P1 and P2are on a plane, thenD lies in the plane
![Page 21: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/21.jpg)
21GR2-00
Magnitude of a VectorMagnitude of a Vector
The magnitude of a vector V = (v1,v2,v3)T is given by:
|V| = sqrt(v1*v1 + v2*v2 + v3*v3)
eg (1,2,3)T has magnitude sqrt(14) A unit vector has magnitude 1 A unit vector in the direction of
V is V / |V|
![Page 22: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/22.jpg)
22GR2-00
Scalar or Dot ProductScalar or Dot Product
The scalar product, or dot product, of two vectors U and V is defined as:
U.V = u1*v1 + u2*v2 + u3*v3
It is important in computer graphics because we can show that also:
U.V = |U|*|V|*coswhere is the angle between U and V
This lets us calculate angle ascos = (u1*v1 + u2*v2 + u3*v3) / (|U|*|V|)
![Page 23: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/23.jpg)
23GR2-00
Diffuse LightingDiffuse Lighting
Diffuse reflection depends on angle between light direction and surface normal:reflected intensity = light intensity *
cosine of angle between light direction and surface normal
light normal
scalar product letsus calculate cos
![Page 24: 1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie kwb@scs.leeds.ac.uk Lecture 1 - Overview](https://reader036.vdocuments.us/reader036/viewer/2022062404/5515f4a8550346a2308b464e/html5/thumbnails/24.jpg)
24GR2-00
Vector or Cross ProductVector or Cross Product
The vector or cross product is defined as:UxV = (u2v3 - u3v2, u3v1 - u1v3, u1v2 - u2v1)
We can also show that:UxV = N |U||V| sin where N is unit vector orthogonal to U and V
(forming a right handed system) and is angle between U and V
This allows us to find the normal to a plane– cross-product of two directions lying in plane ,
eg (P3-P2), (P2-P1), where P1, P2, P3 are three points in the plane