How do we draw a picture - PowerPoint PPT Presentation

1 / 52
About This Presentation
Title:

How do we draw a picture

Description:

How do we draw a picture – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 53
Provided by: csOta
Category:
Tags: draw | nous | picture

less

Transcript and Presenter's Notes

Title: How do we draw a picture


1
How do we draw a picture?
  • Define geometry. Now what?
  • We can draw the edges of the faces. Wireframe.
  • We can only draw the edges of faces that are
    visible.
  • We can fill in the faces. Giving each object a
    colour (constant shading).

2
Flat Shading
  • Assumes the object is faceted, and light and
    viewer at infinity.
  • Illumination model is applied only once per
    polygon.
  • What if the object represents a curved surface?

3
Mach Bands
  • Perceived intensity change at edges are
    exaggerated by receptors in our eyes, making the
    dark facet look darker and the light facet look
    lighter.

4
(No Transcript)
5
(No Transcript)
6
Gouraud Shading
  • Also called smooth shading, intensity
    interpolation shading or color interpolation
    shading.
  • Discontinuities eliminated by interpolating
    intensity.
  • Almost removes Mach bands (high curvature can
    still suffer).
  • OpenGL implements Gouraud shading.
  • Easily implemented in hardware.

7
How it works
8
Work out lighting
9
Average across polygon
10
Inconsistencies
11
Sometimes want sharp edge
Do you have more than one normal at a vertex?
12
(No Transcript)
13
Phong Shading
Not Phong Illumination
  • Also called normal-vector interpolation shading.
  • Interpolates the surface normals instead of the
    intensity values.
  • Calculate illumination at every pixel, as well as
    a vector normalization. Much slower than Gouraud.
  • Gives better results, especially for highlights.
  • Can handle highlights within a polygon.

14
Interpolate normal
15
Do lighting
16
(No Transcript)
17
(No Transcript)
18
Interpolation Shading Problems
  • Must store normals at each vertex.
  • Silhouette edges not smoothed.
  • Interpolation can mask regular changes.
  • Interpolation in image space ignores perspective
    distortion.
  • Crease edges should not have smooth shading.
  • Orientation dependence.

19
Fixes for Interpolation Shading
  • Use triangles.
  • Use more triangles.
  • Use multiple normals (to get sharp edges)

20
(No Transcript)
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
(No Transcript)
27
(No Transcript)
28
(No Transcript)
29
(No Transcript)
30
(No Transcript)
31
(No Transcript)
32
(No Transcript)
33
(No Transcript)
34
(No Transcript)
35
(No Transcript)
36
(No Transcript)
37
(No Transcript)
38
(No Transcript)
39
(No Transcript)
40
(No Transcript)
41
(No Transcript)
42
(No Transcript)
43
(No Transcript)
44
(No Transcript)
45
(No Transcript)
46
(No Transcript)
47
(No Transcript)
48
(No Transcript)
49
(No Transcript)
50
(No Transcript)
51
(No Transcript)
52
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com