Professional Documents
Culture Documents
Gustavo Patow
GGG - UdG
Those slides are based on the
Advanced
Advanced Computer Graphics
Graphics
course by Tomas Akenine-Mller
1
Real-Time Rendering
Shadows
Reflections/refractions
Trees, clouds, water, crowds...
State-of-the-Art
Real-Time Rendering
2001
Complexity: 8 million
triangles
Photo-realistic Rendering
Application
input
3D
scene
Geometry
Rasterizer
Image
output
8
Application
Geometry
Rasterizer
Application
Geometry
Examples:
Rasterizer
Collision detection
Speed-up techniques
Animation
Application
Geometry
Rasterizer
Rendering Primitives
11
Application
Geometry
Rasterizer
A 3D scene is:
Application
Geometry
Rasterizer
13
Application
The GEOMETRY
stage in more detail
Geometry
Rasterizer
Application
GEOMETRY
The view transform
GEOMETRY
Virtual Camera
Application
Geometry
15
Rasterizer
point
Rasterizer
Geometry
dir
fov near
(angle)
far
16
GEOMETRY
Projection
Application
Geometry
Rasterizer
17
GEOMETRY
Projection
Application
Geometry
Rasterizer
18
Application
GEOMETRY
Lighting
Geometry
Rasterizer
light
blue
Geometry
red
green
Application
Geometry
Rasterizer
GEOMETRY
Clipping and Screen Mapping
10
GEOMETRY
Summary
model space
compute lighting
world space
projection
image space
Application
world space
clip
Geometry
Rasterizer
camera space
map to screen
21
Application
Geometry
Rasterizer
11
Application
Geometry
Rasterizer
The RASTERIZER
in more detail
Rasterizer
Texturing
Geometry
Scan-conversion
Application
23
Double buffering
And more
24
12
The RASTERIZER
Scan conversion
Geometry
Rasterizer
Application
Or on a line, or on a point
Interpolation
Texturing
Z-buffering
And more
The RASTERIZER
Interpolation
25
Application
Geometry
Rasterizer
red
green
26
13
Application
The RASTERIZER
Interpolation
Rasterizer
Gouraud Shading
f(u1)
We know:
Geometry
f(u)~ (f(u1)+f(u2)+f(u3))/3
u1
f(u)??
f(u3)
u3
f(u2)
u2
Phong Shading
u1
f(u)~ f((u1+u2+u3)/3)
u3
u2
The RASTERIZER
Texturing
Geometry
Rasterizer
Application
27
More realism
Bump mapping
Pseudo reflections
Store lighting
Almost infinitely many uses
28
14
The RASTERIZER
Z-buffering
Triangle 1
Triangle 2
Draw 1 then 2
The RASTERIZER
Z-buffering
Application
correct
Draw 2 then 1
Geometry
29
Rasterizer
Rasterizer
incorrect
Geometry
Application
15
The RASTERIZER
Double buffering
Application
Geometry
Rasterizer
The RASTERIZER
Double buffering
Application
Geometry
Rasterizer
32
16
And, lately
HARDWARE
Application
Geometry
Tessellation
programs
Vertex
Shader
programs
Rasterizer
Geometry
Shader
programs
Pixel Shader
program
33
17