1 chapter 5: sources, shadows, shading light source: anything emits light that is internally...

Post on 18-Jan-2016

215 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

2

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

source has profound effects on the distribution

of light around the source.

3

4

5

6

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

7

8

The radiosity at scene point P due to source point Q

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:

10

5.3 Local Shading Model

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

Object Mesh Model Shaded Model

11

○ Shadows occur when the patch can not see sources

point source area source

12

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

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:

15

16

17

18

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

20

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

22

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

24

25

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

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

28

○ Qualitative effects of interreflection

Example 1:

ObservedPredicted

29

Example 2:

Predicted Observed

30

Example 3:

ObservedPredicted

31

Example 4:

32

33

top related