1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally...

33
1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit area around a poin t

Transcript of 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally...

Page 1: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

1

Chapter 5: Sources, Shadows, ShadingLight source: Anything emits light that is internally generated

Exitance: The internally generated power per unit area around a point

Page 2: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

2

The geometry (e.g., point, line, area) of the

source has profound effects on the distribution

of light around the source.

Page 3: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

3

Page 4: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

4

Page 5: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

5

Page 6: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

6

5.2.4 Area Sources (e.g., overcast sky) -- Modeled as surface patches whose radiance is independent of direction, i.e.,

Page 7: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

7

Page 8: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

8

The radiosity at scene point P due to source point Q

Page 9: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

9

5.2.3 Line Sources (e.g., fluorescent light bulb)

-- Modeled as a thin cylinder with diameter

(2) The radiosity of patches changes as the reciprocal of distance to the source rather than the square of the distance

/ r(1) The length of the source does not change, but the width does as

Remarks:

Page 10: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

10

5.3 Local Shading Model

-- Describes radiosity at a scene point due to light sources

Object Mesh Model Shaded Model

Page 11: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

11

○ Shadows occur when the patch can not see sources

point source area source

Page 12: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

12

Page 13: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

13

5.3.3 Ambient Illumination

○ Strategies for dealing with ambient illumination i) Add a constant term ii) Model the world as polygons of constant radiosity

Page 14: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

14

5.4 Application: Photometric Stereo -- Determines depths of pixels from a number of images taken under different illuminations. The variations in brightness code the shapes of scene surfaces

Basketball

。 Example:

Page 15: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

15

Page 16: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

16

Page 17: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

17

Page 18: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

18

Page 19: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

19

。 Monge curve -- A 2D curve can be formulated by an explicit function, i.e., ( )y f x

Slope:

( ) tan

dy df x

dx dx

Page 20: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

20

Page 21: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

21

where C: ending at h: representing the height of the surface at the start point

( , )x y

Derivatives give changes in surface heightReconstructing the surface by summing derivatives along some path C

Page 22: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

22

Page 23: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

23

5.5 Interreflections, Global Shading Models

Interreflection: A surface patch is illuminated by light reflected off other patches Global Shading Model: A shading model incorporates interreflection effects

Page 24: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

24

Page 25: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

25

Page 26: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

26

patch ( ) ( ) visible( , ) ( , )j i d j Q

jB P P P Q K P Q B dA

5.5.2 Solving for Radiosity Subdivide the world into small, flat patches with constant radiosity The radiosity at P on patch i due to the radiosity of patch j is

Page 27: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

27

5.5.3 Qualitative Effects of Interreflections Local shading model describes the world poorly Global shading model involves unknown terms

Assume the exitance of each patch is constant

Page 28: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

28

○ Qualitative effects of interreflection

Example 1:

ObservedPredicted

Page 29: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

29

Example 2:

Predicted Observed

Page 30: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

30

Example 3:

ObservedPredicted

Page 31: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

31

Example 4:

Page 32: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

32

Page 33: 1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.

33