Anti-aliased and accelerated ray tracing

Slides:



Advertisements
Similar presentations
Visible-Surface Detection(identification)
Advertisements

CS 551 / CS 645 Antialiasing. What is a pixel? A pixel is not… –A box –A disk –A teeny tiny little light A pixel is a point –It has no dimension –It occupies.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Ray Tracing Variants Distributed ray tracing Generalized rays Cone Tracing Beam Tracing Pencil.
Illumination Model & Surface-rendering Method 박 경 와.
CS 376 Introduction to Computer Graphics 04 / 09 / 2007 Instructor: Michael Eckmann.
Introduction to Volume Rendering Presented by Zvi Devir.
Lecture 8 Advanced Rendering – Ray Tracing, Radiosity & NPR.
© Chun-Fa Chang Sampling Theorem & Antialiasing. © Chun-Fa Chang Motivations “ My ray traced images have a lot more pixels than the TV screen. Why do.
Antialiasing CptS 548 Advanced Computer Graphics John C. Hart.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Computer Graphics 2 Lecture x: Acceleration Techniques for Ray-Tracing Benjamin Mora 1 University of Wales Swansea Dr. Benjamin Mora.
Antialiasing CAP4730: Computational Structures in Computer Graphics.
1 Speeding Up Ray Tracing Images from Virtual Light Field Project ©Slides Anthony Steed 1999 & Mel Slater 2004.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Texture Mapping.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Distribution Ray Tracing.
Visible-Surface Detection Jehee Lee Seoul National University.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Ray Tracing.
Real-time Graphics for VR Chapter 23. What is it about? In this part of the course we will look at how to render images given the constrains of VR: –we.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
Recursion and Data Structures in Computer Graphics Ray Tracing 1.
Hierarchical Penumbra Casting Samuli Laine Timo Aila Helsinki University of Technology Hybrid Graphics, Ltd.
Duy & Piotr. How to reconstruct a high quality image with the least amount of samples per pixel the least amount of resources And preserving the image.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Bounding Volume Hierarchy. The space within the scene is divided into a grid. When a ray travels through a scene, it only passes a few boxes within the.
Advanced topics Advanced Multimedia Technology: Computer Graphics Yung-Yu Chuang 2006/01/04 with slides by Brian Curless, Zoran Popovic, Mario Costa Sousa.
Sampling Theorem & Antialiasing
CS559: Computer Graphics Lecture 12: Antialiasing & Visibility Li Zhang Spring 2008.
Ray Tracing Optimizations
David Luebke 3/5/2016 Advanced Computer Graphics Lecture 4: Faster Ray Tracing David Luebke
CSE 681 Introduction to Ray Tracing. CSE 681 Ray Tracing Shoot a ray through each pixel; Find first object intersected by ray. Image plane Eye Compute.
CS 325 Introduction to Computer Graphics 04 / 07 / 2010 Instructor: Michael Eckmann.
Ray Tracing Acceleration (1). Acceleration of Ray Tracing Goal: Reduce the number of ray/primitive intersections.
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Sampling and Reconstruction.
Antialiasing. What is alias? Alias - A false signal in telecommunication links from beats between signal frequency and sampling frequency (from dictionary.com)
Bounding Volume Hierarchies and Spatial Partitioning
Real-Time Soft Shadows with Adaptive Light Source Sampling
(c) 2002 University of Wisconsin, CS559
CSC418 Computer Graphics Back Faces Visibility Algorithms.
Combining Edges and Points for Interactive High-Quality Rendering
Distributed Ray Tracing
Visible-Surface Detection Methods
Bounding Volume Hierarchies and Spatial Partitioning
Real-Time Ray Tracing Stefan Popov.
3D Graphics Rendering PPT By Ricardo Veguilla.
Sampling Theorem & Antialiasing
Sampling and Antialiasing
3D Object Representations
Mike Merchant Nicholas Hilbert
Jim X. Chen George Mason University
© University of Wisconsin, CS559 Fall 2004
Sampling Theorem told us …
(c) 2002 University of Wisconsin
Distribution Ray Tracing
Anti-aliased and accelerated ray tracing
CMSC 635 Ray Tracing.
Digital Media Dr. Jim Rowan ITEC 2110.
Sampling and Reconstruction
UMBC Graphics for Games
Distributed Ray Tracing
(c) 2002 University of Wisconsin
Image synthesis using classical optics
CSCE 441: Computer Graphics Ray Tracing
Primitive Drawing Algorithm
Distributed Ray Tracing
Sweep Fill Details For row = min to row=max
Primitive Drawing Algorithm
Introduction to Ray Tracing
Distributed Ray Tracing
GEARS: A General and Efficient Algorithm for Rendering Shadows
Presentation transcript:

Anti-aliased and accelerated ray tracing

Reading Required: Further reading: Watt, sections 12.5.3 – 12.5.4, 14.7 Further reading: A. Glassner. An Introduction to Ray Tracing. Academic Press, 1989. [In the lab.] University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 2

Aliasing in rendering Sketch the triangle that would create the given image -- lower right corner coverage. Called the jaggies. Point to frame 1, 4, 7, 10, 13 One of the most common rendering artifacts is the “jaggies”. Consider rendering a white polygon against a black background: We would instead like to get a smoother transition: University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 3

Anti-aliasing Q: How do we avoid aliasing artifacts? Sampling: 1. Increase sampling rate -- not practical for fixed resolution display. 2. Smooth out high frequences analytically. Requires an analytic function. 3. Supersample and average down. Q: How do we avoid aliasing artifacts? Sampling: Pre-filtering: Combination: Example - polygon: University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 4

Polygon anti-aliasing Show anti-aliased image with ray sample. A: Motion blur Draw a dot streaking across the screen, first as jumps then as smear. University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 5

Antialiasing in a ray tracer Put a box around the “support of a pixel”. Show ray-traced output We would like to compute the average intensity in the neighborhood of each pixel. When casting one ray per pixel, we are likely to have aliasing artifacts. To improve matters, we can cast more than one ray per pixel and average the result. A.k.a., super-sampling and averaging down. University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 6

Speeding it up Vanilla ray tracing is really slow! Put a box around the “support of a pixel”. Show ray-traced output Vanilla ray tracing is really slow! Consider: m x m pixels, k x k supersampling, and n primitives, average ray path length of d, with 2 rays cast recursively per intersection. Complexity = For m=1,000,000, k = 5, n = 100,000, d=8…very expensive!! In practice, some acceleration technique is almost always used. We’ve already looked at reducing d with adaptive ray termination. Now we look at reducing the effect of the k and n terms. University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 7

Antialiasing by adaptive sampling |I1 - I2| > thresh I1/I2 or I2/I1 > 1 + thresh -- better since it’s based on relative values, which is the way the eye perceives. Show how ray sample doesn’t take 16X longer to trace. Casting many rays per pixel can be unnecessarily costly. For example, if there are no rapid changes in intensity at the pixel, maybe only a few samples are needed. Solution: adaptive sampling. Q: When do we decide to cast more rays in a particular area? University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 8

Faster ray-polyhedron intersection Let’s say you were intersecting a ray with a polyhedron: Straightforward method intersect the ray with each triangle return the intersection with the smallest t-value. Q: How might you speed this up? University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 9

Hierarchical bounding volumes We can generalize the idea of bounding volume acceleration with hierarchical bounding volumes. Key: build balanced trees with tight bounding volumes. Many different kinds of bounding volumes. Note that bounding volumes can overlap. University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 10

Uniform spatial subdivision Another approach is uniform spatial subdivision. Idea: Partition space into cells (voxels) Associate each primitive with the cells it overlaps Trace ray through voxel array using fast incremental arithmetic to step from cell to cell University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 11

Non-uniform spatial subdivision Still another approach is non-uniform spatial subdivision. Other variants include k-d trees and BSP trees. Various combinations of these ray intersections techniques are also possible. See Glassner and pointers at bottom of project web page for more. University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell 12