Ray Tracing: Special Topics CSCI 4239/5239 Advanced Computer Graphics Spring 2018

Similar documents
The Rendering Equation. Computer Graphics CMU /15-662

Lighting and Shading

Name Section Date. Experiment Reflection and Refraction

REFLECTION & REFRACTION

Chapter 26 Geometrical Optics

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Reflection & refraction

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

The Rendering Equation. Computer Graphics CMU /15-662, Fall 2016

Global Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Computer Graphics. Lecture 9 Environment mapping, Mirroring

Reflection and Refraction. Chapter 29

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

All forms of EM waves travel at the speed of light in a vacuum = 3.00 x 10 8 m/s This speed is constant in air as well

Real Time Reflections Han-Wei Shen

Phys 102 Lecture 17 Introduction to ray optics

The Rendering Equation and Path Tracing

Global Illumination The Game of Light Transport. Jian Huang

Chapter 7: Geometrical Optics. The branch of physics which studies the properties of light using the ray model of light.

Raytracing. COSC 4328/5327 Scott A. King

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

CS 5625 Lec 2: Shading Models

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

PHYSICS. Chapter 34 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

03 RENDERING PART TWO

LIGHT. Speed of light Law of Reflection Refraction Snell s Law Mirrors Lenses

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

Light & Optical Systems Reflection & Refraction. Notes

Lighting affects appearance

Introduction to Visualization and Computer Graphics

Photorealism: Ray Tracing

CS 325 Computer Graphics

Overview. Radiometry and Photometry. Foundations of Computer Graphics (Spring 2012)

I have a meeting with Peter Lee and Bob Cosgrove on Wednesday to discuss the future of the cluster. Computer Graphics

Global Illumination. COMP 575/770 Spring 2013

Algebra Based Physics

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Ground Truth. Welcome!

Lighting and Materials

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Lecture 10: Ray tracing

Physics Experiment 13

Reflection and Refraction

Recap: Refraction. Amount of bending depends on: - angle of incidence - refractive index of medium. (n 2 > n 1 ) n 2

Complex Shading Algorithms

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

CS5620 Intro to Computer Graphics

Chapter 12 Notes: Optics

Light: Geometric Optics

Refraction. P04 Refraction (complete).notebook. November 06, What is a medium? Ex.

2/26/2016. Chapter 23 Ray Optics. Chapter 23 Preview. Chapter 23 Preview

Reflection and Refraction of Light

Ray Tracing. Kjetil Babington

Virtual Reality for Human Computer Interaction

FLAP P6.2 Rays and geometrical optics COPYRIGHT 1998 THE OPEN UNIVERSITY S570 V1.1

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Textbook Reference: Glencoe Physics: Chapters 16-18

Ray Tracing. CSCI 420 Computer Graphics Lecture 15. Ray Casting Shadow Rays Reflection and Transmission [Ch ]

Chapter 32 Light: Reflection and Refraction. Copyright 2009 Pearson Education, Inc.

Reflections. I feel pretty, oh so pretty

2/1/10. Outline. The Radiance Equation. Light: Flux Equilibrium. Light: Radiant Power. Light: Equation. Radiance. Jan Kautz

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.

Chapter 7: Geometrical Optics

Radiance. Radiance properties. Radiance properties. Computer Graphics (Fall 2008)

Recursive Ray Tracing. Ron Goldman Department of Computer Science Rice University

Light. Electromagnetic wave with wave-like nature Refraction Interference Diffraction

UNIT C: LIGHT AND OPTICAL SYSTEMS

At the interface between two materials, where light can be reflected or refracted. Within a material, where the light can be scattered or absorbed.

Lighting Models. CS116B Chris Pollett Mar 21, 2004.

Chapter 9- Ray-Tracing

Lecture Outline Chapter 26. Physics, 4 th Edition James S. Walker. Copyright 2010 Pearson Education, Inc.

Interactive Methods in Scientific Visualization

Computer Graphics. Ray Tracing. Based on slides by Dianna Xu, Bryn Mawr College

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

speed of light in vacuum = speed of light in the material

Chapter 26 Geometrical Optics

CMSC427 Advanced shading getting global illumination by local methods. Credit: slides Prof. Zwicker

Lighting and Reflectance COS 426

Timothy Walsh. Reflection Models

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016

Illumination and Shading - II

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Light: Geometric Optics (Chapter 23)

CS6670: Computer Vision

Chapter 5 Mirror and Lenses

Lighting and Shading Computer Graphics I Lecture 7. Light Sources Phong Illumination Model Normal Vectors [Angel, Ch

Chapter 23. Light Geometric Optics

Radiometry and reflectance

CPSC 314 LIGHTING AND SHADING

Approximating Refraction Kenneth Hurley Please send me comments/questions/suggestions

Lecture 7 Notes: 07 / 11. Reflection and refraction

782 Schedule & Notes

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Global Illumination. CSCI 420 Computer Graphics Lecture 18. BRDFs Raytracing and Radiosity Subsurface Scattering Photon Mapping [Ch

Refraction of Light. This bending of the ray is called refraction

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Transcription:

Ray Tracing: Special Topics CSCI 4239/5239 Advanced Computer Graphics Spring 2018

Theoretical foundations Ray Tracing from the Ground Up Chapters 13-15 Bidirectional Reflectance Distribution Function BRDF Describes how light is reflected on each bounce Chains to transfer colors

Radiometric Quantities Radiant Energy Q (J) Radiant Flux = dq/dt (W) 2 Radiant Flux Density d /da (W/m ) Irradiance E [Arriving flux density] Radiant exitance M [Leaving flux density] Radiant Intensity I d /d (W/m2/sr) Radiance L d2 /dad (W/m2/sr)

Ray Properties Radiance is constant along rays Radiance can be defined at the eye Radiance can be defined at a point

Angular Dependence on Irradiance Lambert's Law L = d2 /da d cos

Notation and Directions

BRDF Definition f(p, i, o) = dlo(p, ) / dli(p, ) cos i d i Properties Reciprocity Linearity f(p, i, o) = f(p, o, i) Sum all BDRFs at a point Conservation of energy Total re-radiated energy must be less than incident

Common BDRFs Diffuse f(p, i, o) = Md(p) Specular f(p, i, o) = Ms(p) (R o)s R = 2(N L)N-L

Bouncing Rays from Surfaces

Antialiasing

Super-sampling Pixels

Super-sampling Area Lights

Side-effects of Sampling Pattern

Depth of Field Important for realism Background is fuzzy Partly out of focus Imperfect optics Turbulence Graphic backgrounds are often too perfect

Thin Lens Theory

Out of Focus Images

Depth of Field Results

Ambient Occlusion Floor has a vague shadow outline Parts of object near floor is darker Ambient light is not anisotropic and uniform

Computing Ambient Occlusion

Ambient Occlusion Results

Mirror Reflection Mirror reflections are a signature of ray tracing Shiny objects Glass Metal Multiple reflections may occur Occurs naturally in ray tracing Requires tracing ray through multiple bounces Adds significant effort

Conservation of Energy Mirrors reflect almost all the energy Retains beam geometry

Number of Reflections 0 dull 1 simple mirror >1 hall of mirrors Effort grows with number of bounces

Hall of Mirrors (Showcases Ray Tracing)

Mirror vs Glossy Reflection Mirror reflections are perfect Glossy reflections are imperfect Reflected ray = 2(N V)N V + Super sample for many values of

Degrees of perfection

Simple Transparency Light passes through objects Light changes through object Rays are bent Colors are changed Rays multiply Reflected Transmitted

Refraction Index of refraction = c/v Vacuum 1 Air 1.0003 Water 1.33 Glass 1.5 Diamond 2.42 Snell's law sin i /sin t =

Media Transitions Direction of bend depends on whether the refrection index increases or decreases Air is very low Angles decrease into liquids Angles increase out of liquids

Internal reflections Critical angle Refraction bends ray back into medium Higher contrast causes larger critical angle That is why diamonds are so sparkly

Transparency require bifurcating rays

Objects Appearance Object inside other material Objects are magnified when not viewed parallel to the normal Object's apparent position is displaced Objects on other side Objects apparent position is displaced

Distortion by Glass Spheres Sphere as a lens Eye position is critical ``

Light movement through sphere Magnification Internal reflection

Realistic Transparency Three 's Air Glass Water Colored liquid Beveled edges Glass Meniscus Mixed transparency Foam is opaque

Reflectance and Attenuation

Multiple Internal Reflections

Colored Beaker

The Fish Bowl Making it real Complex shape Three media Colored media Beveled edges Challenges Multiple reflections Refraction

Adding Textures Per pixel modification of surface appearance Use texture coordinates to map textures to objects When ray tracing, you have to do this yourself Textures modify ray color on each bounce

Caustics

Tim Dunn's Gallery

Production Ray Tracing Tim Dunn

Reflections in Raster Methods Two possible approaches Textures (image space) Virtual objects (object space) Both approaches requires rendering the scene multiple times Mirrors can be planar or curved Mirrors are windows to the virtual scene

Virtual Objects Draw object where they seem to appear Clip to reflector

Planar Reflection Equation Point on mirror P Normal vector V

Rendering Order Reflections are difficult when the mirror is an object inside the scene Mirror on wall is easier

Limiting the Reflector User defined clipping volume Front and back clipping planes Frustrum Stencil buffer Special cases Scissors test Alpha blending

Reflections using Textures Quads Simple mirrors Environment maps Cube map Sphere map

Reflections from Curved Surfaces Cannot be done using virtual objects Readily done by distorting textures

Inter-reflections Hall of mirrors requires multiple passes Similar to max-levels