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

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

EECS 487: Interactive Computer Graphics

Distribution Ray Tracing

Physically Realistic Ray Tracing

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

Distributed Ray Tracing

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

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

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

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

distribution ray tracing

distribution ray-tracing

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

Anti-aliasing and Monte Carlo Path Tracing

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

Sung-Eui Yoon ( 윤성의 )

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

Distributed 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

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

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

Computer Graphics Project

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

Project 3 Path Tracing

Ray tracing. EECS 487 March 19,

Anti-aliasing and sampling

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

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 Part 2. CSC418/2504 Introduction to Computer Graphics. TA: Muhammed Anwar

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

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

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

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

Computer Graphics. Sampling Theory & Anti-Aliasing. Philipp Slusallek

COMP371 COMPUTER GRAPHICS

SDK White Paper. Soft Shadows

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

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

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

Advanced Ray Tracing

CS 148, Summer 2012 Introduction to Computer Graphics and Imaging Justin Solomon

Building a Fast Ray Tracer

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping

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

Topics and things to know about them:

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

REYES REYES REYES. Goals of REYES. REYES Design Principles

Philipp Slusallek Karol Myszkowski. Realistic Image Synthesis SS18 Instant Global Illumination

COMP371 COMPUTER GRAPHICS

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

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

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

Computational Photography

Anti-aliased and accelerated ray tracing. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

The V-Ray installer will automatically remove any previous installations. This will allow you to seamlessly upgrade from previous versions.

Anti-aliased and accelerated ray tracing. University of Texas at Austin CS384G - Computer Graphics

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

Scalable many-light methods

Local vs. Global Illumination & Radiosity

CS 4620 Program 4: Ray II

Irradiance Gradients. Media & Occlusions

Path Tracing. Mikael Persson mpersson December 3, 2001

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

Lecture 11. More Ray Casting/Tracing

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

13 Distribution Ray Tracing

Amortized Supersampling

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

CS201 Computer Vision Lect 4 - Image Formation

Advanced Shading I: Shadow Rasterization Techniques

3D Rendering and Ray Casting

Fall CSCI 420: Computer Graphics. 7.1 Rasterization. Hao Li.

The feature set you are required to implement in your ray tracer is as follows (by order from easy to hard):

Questions from Last Week? Extra rays needed for these effects. Shadows Motivation

CS 431/636 Advanced Rendering Techniques

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

CS 563 Advanced Topics in Computer Graphics Lecture 2: Bare-Bones Raytracer. by Emmanuel Agu

THEA RENDER ADAPTIVE BSD ENGINE

Adaptive Supersampling Using Machine Learning Techniques

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

Monte Carlo Integration

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

Logistics. CS 586/480 Computer Graphics II. Questions from Last Week? Slide Credits

Realistic Camera Model

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

CS 465 Program 5: Ray II

INFOMAGR Advanced Graphics. Jacco Bikker - February April Welcome!

Filtering theory: Battling Aliasing with Antialiasing. Department of Computer Engineering Chalmers University of Technology

CSCI 420 Computer Graphics Lecture 14. Rasterization. Scan Conversion Antialiasing [Angel Ch. 6] Jernej Barbic University of Southern California

Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation

Ray Tracing. Foley & Van Dam, Chapters 15 and 16

Ray Tracing Foley & Van Dam, Chapters 15 and 16

Rasterization. Rasterization (scan conversion) Digital Differential Analyzer (DDA) Rasterizing a line. Digital Differential Analyzer (DDA)

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

Ray Tracing: Image Quality and Texture

CPSC GLOBAL ILLUMINATION

Sampling and Monte-Carlo Integration

Ø Sampling Theory" Ø Fourier Analysis Ø Anti-aliasing Ø Supersampling Strategies" Ø The Hall illumination model. Ø Original ray tracing paper

Transcription:

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

Bibliography K. Suffern; Ray Tracing from the Ground Up, http://www.raytracegroundup.com Chapter 4, 5 for Anti-Aliasing Chapter 6 for Disc Sampling Chapter 10 for Depth of Field

Distribution RT Distributed Ray Tracing, also called Distribution Ray Tracing and Stochastic Ray Tracing, is a refinement of ray tracing that allows for the rendering of "soft" phenomena Averaging multiple rays distributed over an interval Soft shadows can be rendered by distributing shadow rays over the light source area. Anti-aliasing can be rendered by distributing rays over a pixel Distribute rays across the eye to simulate depth of field effect Blurry reflections and transmissions can be rendered by distributing reflection and transmission rays over a solid angle about the "true" reflection or transmission direction. Distribute rays in time to get temporal antialiasing (motion blur)

A moiré pattern, formed by two sets of parallel lines, one set inclined at an angle of 5 to the other

Supersampling attempts to reduce the errors by shooting more than one viewing ray into each pixel and averaging the results to determine the pixel's apparent color.

Regular Sampling Fire more than one ray for each pixel (e.g., a 4x4 grid of rays Average the results (perhaps using a filter)

Regular Sampling Replace the code With code that samples on a regular n x n grid:

Regular Sampling Optimization Regular sampling takes 16 times longer to render Solutions: Adaptive, non-recursive supersampling

Adaptive, non-recursive supersampling initially traces one ray per pixel. If the color of a pixel differs from its neighbors (to the left or below) by at least the set threshold value then the pixel is supersampled by shooting a given, fixed number of additional rays. A good threshold value is 0.3 If r1, g1, b1 and r2, g2, b2 are the rgb components of two pixels then the difference between pixels is computed by: diff = abs(r1-r2) + abs(g1-g2) + abs(b1-b2) If the anti-aliasing threshold is 0.0 then every pixel is super-sampled. If the threshold is 3.0 then no antialiasing is done

Adaptive Supersampling - Monte- Carlo Sampling It s a recursive technique It starts by tracing four rays at the corners of each pixel. If the colors are similar (check the threshold) then just use their average Otherwise recursively subdivide each cell of the grid into four subpixels: fire additional 5 rays at the center and at mid of the 4 edges Sub-pixels are separately traced and tested for further subdivision Keep going until each 2x2 grid is close to uniform or limit is reached Filter the result The advantage of this method is the reduced number of rays that have to be traced. Samples that are common among adjacent pixels and sub-pixels are stored and reused to avoid re-tracing of rays.

Adaptive Supersampling - Monte- Carlo Sampling

Stochastic (Random) Sampling Adaptive Supersampling still divides pixels into regular patterns of rays, and suffers from aliasing that can occur from regular pixel subdivision Moiré patterns It sends a fixed number of rays into a pixel, but makes sure they are randomly distributed (but more or less evenly cover the area)

ξ is a call that returns a uniform random number in the range [0, 1] One interesting side effect of the stochastic sampling patterns is that they actually injects noise into the solution (slightly grainier images). This noise tends to be less objectionable than aliasing artifacts. Noise can be quite objectionable unless many samples are taken. Solution: Hybrid strategy that randomly perturbs a regular grid Jittering or Stratified Sampling Stochastic (Random) Sampling Code:

Jittering

Soft Shadows Account for the light being an area rather than a point To approximate the light with a distributed set of N point lights, each with one Nth of the intensity of the base light Problem: typically dozens of point lights are needed to achieve visually smooth results (slows down the performance of the RT) Solution: represent the area light as an infinite number of point lights and choose one at random for each viewing ray

Soft Shadows

Virtual and Real Camera the virtual camera (a) models the pinhole camera; the eye corresponds to the pinhole of (b) In(a) the view plane is between the eye and the objects the pinhole in (b) is in the between the objects and the film plane The lens is infiniteley small Real cameras have finite-aperture lens with focal distance

Depth of Field Thin Lens Depth of field (DOF) is the range of distances parallel to the lens axis in which the scene is in focus In RT, the image can appear in focus over the range of distances where the circle of confusion is smaller than a pixel

Thin-Lens Simulation The simulation requires a large number of rays/pixel whose origins are distributed over the surface of the lens

Depth of Field To simulate DOF: Compute the point p where the center ray hits the focal plane; Use p and the sample point on the lens to compute the direction of the primary ray so that this ray also goes through p; Ray-trace the primary ray into the scene; the center ray does not contribute to the pixel color But p, although in perfect focus, will not be antialiased; what to do?

DOF + Antialiasing

Center Rays We don t have to trace the center rays

Depth of Field

Depth of Field Aperture: sample point on unit disc or unit square times the lens radius

Depth of Field

Depth of Field