Distributed Ray Tracing

Similar documents
Announcements. Written Assignment 2 out (due March 8) Computer Graphics

Distribution Ray Tracing

distribution ray tracing

EECS 487: Interactive Computer Graphics

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 457 Autumn 2017

Distribution Ray-Tracing. Programação 3D Simulação e Jogos

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

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

Physically Realistic Ray Tracing

Distribution Ray Tracing. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

distribution ray-tracing

Reading. 8. Distribution Ray Tracing. Required: Watt, sections 10.6,14.8. Further reading:

Specular reflection. Lighting II. Snell s Law. Refraction at boundary of media

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

Reading. Distribution Ray Tracing. BRDF, revisited. Pixel anti-aliasing. ω in. Required: Shirley, section Further reading:

Sung-Eui Yoon ( 윤성의 )

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 557 Autumn 2017

Anti-aliasing and Monte Carlo Path Tracing

Ray Tracing Part 2. CSC418/2504 Introduction to Computer Graphics. TA: Muhammed Anwar

Distributed Ray Tracing

Advanced Ray Tracing

Sampling: Antialiasing - Intro

Global Illumination The Game of Light Transport. Jian Huang

Ray Tracing. Johns Hopkins Department of Computer Science Course : Rendering Techniques, Professor: Jonathan Cohen

Ray Tracing III. Wen-Chieh (Steve) Lin National Chiao-Tung University

Ray Tracing. CS334 Fall Daniel G. Aliaga Department of Computer Science Purdue University

SAMPLING AND NOISE. Increasing the number of samples per pixel gives an anti-aliased image which better represents the actual scene.

Local vs. Global Illumination & Radiosity

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

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

CS 563 Advanced Topics in Computer Graphics Camera Models. by Kevin Kardian

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

Shadows. COMP 575/770 Spring 2013

Ray tracing. EECS 487 March 19,

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Ray Tracing. Cornell CS4620/5620 Fall 2012 Lecture Kavita Bala 1 (with previous instructors James/Marschner)

Project 3 Path Tracing

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

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

Chapter 11 Global Illumination. Part 1 Ray Tracing. Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11.

Ray-Tracing. Misha Kazhdan

Computer Graphics Project

Minimizing Noise and Bias in 3D DIC. Correlated Solutions, Inc.

Intro to Ray-Tracing & Ray-Surface Acceleration

Depth of Field for Photorealistic Ray Traced Images JESSICA HO AND DUNCAN MACMICHAEL MARCH 7, 2016 CSS552: TOPICS IN RENDERING

Building a Fast Ray Tracer

Today. Anti-aliasing Surface Parametrization Soft Shadows Global Illumination. Exercise 2. Path Tracing Radiosity

Lighting and Shading

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

Ray Tracing. CPSC 453 Fall 2018 Sonny Chan

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

Ray Tracing. Last Time? Reading for Today. Reading for Today

A Brief Overview of. Global Illumination. Thomas Larsson, Afshin Ameri Mälardalen University

Corona Sky Corona Sun Corona Light Create Camera About

INFOGR Computer Graphics. Jacco Bikker - April-July Lecture 14: Grand Recap. Welcome!

Ray-tracing Acceleration. Acceleration Data Structures for Ray Tracing. Shadows. Shadows & Light Sources. Antialiasing Supersampling.

CS559 Computer Graphics Fall 2015

Last Time: Acceleration Data Structures for Ray Tracing. Schedule. Today. Shadows & Light Sources. Shadows

Ray Tracing COMP575/COMP770

CptS 548 (Advanced Computer Graphics) Unit 3: Distribution Ray Tracing

Working with the BCC Bump Map Generator

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

Introduction to 3D Concepts

Other Rendering Techniques CSE 872 Fall Intro You have seen Scanline converter (+z-buffer) Painter s algorithm Radiosity CSE 872 Fall

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

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007

Introduction to 2D and 3D Computer Graphics. Realistic Rendering. -- Ray Tracing--

Global Illumination. COMP 575/770 Spring 2013

Lecture 11. More Ray Casting/Tracing

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

Lecture 7 - Path Tracing

Advanced Shading I: Shadow Rasterization Techniques

Spring 2012 Final. CS184 - Foundations of Computer Graphics. University of California at Berkeley

Motivation. Sampling and Reconstruction of Visual Appearance. Effects needed for Realism. Ray Tracing. Outline

Introduction Ray tracing basics Advanced topics (shading) Advanced topics (geometry) Graphics 2010/2011, 4th quarter. Lecture 11: Ray tracing

Cameras. Camera. Digital Image Synthesis Yung-Yu Chuang 10/26/2006

CS230 : Computer Graphics Lecture 4. Tamar Shinar Computer Science & Engineering UC Riverside

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

Shading I Computer Graphics I, Fall 2008

A Quick Introduction to POV-Ray

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

INFOMAGR Advanced Graphics. Jacco Bikker - February April Welcome!

Real-Time Shadows. Last Time? Today. Why are Shadows Important? Shadows as a Depth Cue. For Intuition about Scene Lighting

Raytracing & Epsilon. Today. Last Time? Forward Ray Tracing. Does Ray Tracing Simulate Physics? Local Illumination

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

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

Ray Tracing Part 1. CSC418/2504 Introduction to Computer Graphics. TA: Muhammed Anwar & Kevin Gibson

Today. Acceleration Data Structures for Ray Tracing. Cool results from Assignment 2. Last Week: Questions? Schedule

Theoretically Perfect Sensor

Computer Graphics. Si Lu. Fall uter_graphics.htm 11/22/2017

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate?

SDK White Paper. Soft Shadows

Illumination Algorithms

Understanding Variability

A Little Background. Motivation. Motivation

CS354 Computer Graphics Ray Tracing. Qixing Huang Januray 24th 2017

Acceleration Data Structures

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Ray tracing-ii. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd 3/21/07 1

Shading. Brian Curless CSE 557 Autumn 2017

Transcription:

CT5510: Computer Graphics Distributed Ray Tracing BOCHANG MOON

Distributed Ray Tracing Motivation The classical ray tracing produces very clean images (look fake) Perfect focus Perfect reflections Sharp shadows [Cook et al. 1984] The main idea is to replace the single ray with a distribution of rays [Whitted 1980] Add randomness to rendering Antialiasing Soft shadows Depth of field Motion blur Glossy reflections [Cook et al. 1984]

Antialiasing To reduce image aliasing, we need to compute a pixel color by averaging multiple samples, instead of taking a ray sample only at the center point

Antialiasing To reduce image aliasing, we need to compute a pixel color by averaging multiple samples, instead of taking a ray sample only at the center point

Antialiasing To reduce image aliasing, we need to compute a pixel color by averaging multiple samples, instead of taking a ray sample only at the center point

Antialiasing e.g. one sample / pixel for each pixel (x, y) do, 0.5, 0.5

Antialiasing e.g. four samples / pixel Regular sampling: divide each pixel area to grids and generate a ray within each grid for each pixel (x, y) do, 0 for p = 0 to n 1 do for q = 0 to n 1 do,,.,, /,. Equal to the traditional rendering Uses a larger image resolution Down sample the image to make a target resolution Still make the regular pattern!

Antialiasing e.g. four samples / pixel Random sampling: randomly generate rays for each pixel (x, y) do, 0 for p = 0 to 1do,,,,, / 0,1 is a random number The regular pattern is converted into image noise

Antialiasing e.g. four samples / pixel Jittering (stratified sampling): randomly generate a ray within each grid for each pixel (x, y) do, 0 for p = 0 to n 1 do for q = 0 to n 1 do,,,, /, This is a hybrid approach between the regular and random sampling

Antialiasing More samples? e.g. 16 samples / pixel Ground truth solution? samples / pixel Note that rendering time is a function of the number of ray samples

Soft Shadows

Soft Shadows A point light source introduces hard shadows Visible or invisible

Soft Shadows An area light source introduces soft shadows Visible Partially visible (penumbra) Invisible

Soft Shadows How can we implement the soft shadows? Approximate the area light with multiple point lights (regularly chosen) Produce regular patterns Distributed ray tracing: randomly choose one within the light shape

Soft Shadows e.g. area light defined as a parallelogram Select a random point, 0,1 Generate a shadow ray from this point b c a

Soft Shadows 4 shadow rays / pixel 16 shadow rays / pixel 64 shadow rays / pixel

Depth of field This effect occurs when using a nonzero size lens Approximate real cameras that have lenses with focal lengths [Moon et al. 15]

Depth of field This effect occurs when using a nonzero size lens Approximate real cameras that have lenses with focal lengths Can model the lens with a disk Previously, every object is focused due to a pinhole camera model Image plane Image plane

Depth of field This effect occurs when using a nonzero size lens Approximate real cameras that have lenses with focal lengths Can model the lens with a disk Lens Image plane Focal plane

Depth of field Implementations Generate a primary ray using: Randomly choose a point on lens (e.g., disk) Randomly choose a point within a pixel area Average the colors (shading results) from the rays Image plane

Glossy Reflection Some surfaces (e.g., brushed metal) are between the ideal diffuse (e.g., Lambertian) and specular surfaces (e.g., mirror) Cook et al. 1984

Glossy Reflection Can simulate the glossy reflection by generating secondary rays (e.g., reflected ray) with random direction, instead of using the direction of mirror reflections ray r r p

Glossy Reflection Generate a basis (u, v, w) from a single vector, r Previously, we generate a basis from two vectors (t can be any vector if t is not collinear with w) ray r r p

Glossy Reflection Generate a basis (u, v, w) from a single vector, r,, u and v constructs a 2D square which is perpendicular to r Let a is the width of the square (similar to the size of highlights) Sample a 2D random point from a unit square 0,1, 0,1 Transform the point into one on the square r r Construct the reflected direction p

Glossy Reflection The reflected ray s Origin: p Direction: r Primary ray Secondary ray r r p

Motion Blur Objects can move when the aperture of a real camera is open It introduces a blurred appearance of a moving object General procedure: Set up a time interval, Randomly choose a time ε, A moving object travels using a transform matrix e.g., given two rotation matrices (start and end), we can find an intermediate transform related to [Cook et al. 1984]

Motion Blur ε ε

Discussion Distributed ray tracing introduces a way to simulate distributed effects, by using a distribution of rays Whitted vs. distributed ray tracing In the classical ray tracing, rays are determined deterministically Distributed ray tracer uses a random number to simulate the distributed effects Next class? Global illumination methods

Further Readings Chapter 13 Distributed Ray Tracing [Cook et al. 1984]