Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.

Similar presentations


Presentation on theme: "CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination."— Presentation transcript:

1

2 CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination

3 Local vs. Global Illumination Local Illumination Models n e.g. Phong n Model source from a light reflected once off a surface towards the eye n Indirect light is included with an ad hoc “ambient” term which is normally constant across the scene Global Illumination Models n e.g. ray tracing or radiosity (both are incomplete) n Try to measure light propagation in the scene n Model interaction between objects and other objects and objects and their environment

4 All surfaces are not created equal n Specular surfaces –e.g. mirrors, glass balls –An idealized model provides ‘perfect’ reflection  Incident ray is reflected back as a ray in a single direction  No scattering (unrealistic) n Diffuse surfaces –e.g. flat paint, chalk –Lambertian surfaces –Incident light is scattered in all directions  Also unrealistic for most surfaces

5 Categories of light transport n Specular-Specular n Specular-Diffuse n Diffuse-Diffuse n Diffuse-Specular

6 Real surfaces are more complex…

7 Ray Tracing n Traces path of specularly reflected or transmitted (refracted) rays through environment n Rays are infinitely thin n Don’t disperse n Signature: shiny objects exhibiting sharp, multiple reflections

8 Ray Tracing n Unifies in one framework –Hidden surface removal –Shadow computation –Reflection of light –Refraction of light –Global specular interaction

9 Raytracing slides borrowed from…

10

11 Ray tracing setup

12

13 Ray does not intersect objects

14

15

16

17 Ray hits object

18

19 Shadow test

20

21 Point in shadow n With a simple lighting model, apply the ambient term for the shadow region

22

23

24 Reflected ray is sent out from intersection point

25 Reflected ray has hit object n Local illumination model calculated where ray intersects with second object n Result carried back to origin of ray on first object, contributes to object’s colour

26

27 Transmitted ray generated for transparent objects

28 Transmitted ray hit object n Local illumination model calculated where the ray hit object n Result carried back to the point of first intersection

29

30 No reflection

31 Single reflection

32 Double reflection

33 Ray Tracing Deficiencies n Local specular illumination model spreads rays in specular reflection, but global model doesn’t n Ignores major light transport mechanisms –Interaction of diffuse surfaces n Intersection computation time is very long

34 Ray Tracing Efficiency Improvements n Bounding volumes n Spatial subdivision –Octrees –SEADS –BSP

35 Ray Tracing Improvements: Image Quality n Backwards ray tracing –Trace from the light to the surfaces and then from the eye to the surfaces –“shower” scene with light and then collect it –“Where does light go?” vs “Where does light come from?” –Good for caustics

36 Ray Tracing Improvements: Image Quality n Cone tracing –Models some dispersion effects n Distributed Ray Tracing –Super sample each ray –Blurred reflections, refractions –Soft shadows –Depth of field –Motion blur

37 Radiosity n Diffuse interaction within a closed environment n Theoretically sound n View independent n No specular interactions

38 Global Illumination

39 Direct light is only part of the story

40 Ambient light

41 Lambertian Reflection and Colour Bleeding

42 Radiosity

43 Radiosity Equation

44 Form Factors

45 Techniques for Calculating Form Factors

46

47

48

49

50

51

52 Where to next? n The general rendering equation (not part of this course!) n Next class…Curves and Surfaces


Download ppt "CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination."

Similar presentations


Ads by Google