Anti-aliasing. Images and Aliasing

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

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

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

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

CS 428: Fall Introduction to. Radiosity. Andrew Nealen, Rutgers, /7/2009 1

Radiosity. Early Radiosity. Page 1

CS770/870 Spring 2017 Radiosity

Computer Graphics. Lecture 10. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura 12/03/15

Introduction to Radiosity

Local vs. Global Illumination & Radiosity

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

CS770/870 Spring 2017 Radiosity

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

Lightscape A Tool for Design, Analysis and Presentation. Architecture Integrated Building Systems

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

Global Illumination and Radiosity

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

Shading I Computer Graphics I, Fall 2008

Global Illumination. COMP 575/770 Spring 2013

Global Rendering. Ingela Nyström 1. Effects needed for realism. The Rendering Equation. Local vs global rendering. Light-material interaction

Illumination models: Radiosity analysis

Lighting. Figure 10.1

Image Synthesis. Global Illumination. Why Global Illumination? Achieve more photorealistic images

Comp 410/510 Computer Graphics. Spring Shading

Global Illumination. Why Global Illumination. Pros/Cons and Applications. What s Global Illumination

Virtual Reality for Human Computer Interaction

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

6. Illumination, Lighting

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

CSE 681 Illumination and Phong Shading

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

Computer Graphics. Lecture 14 Bump-mapping, Global Illumination (1)

COM337 COMPUTER GRAPHICS Other Topics

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

CS-184: Computer Graphics. Today. Lecture #16: Global Illumination. Sunday, November 8, 2009

Global Illumination. Frank Dellaert Some slides by Jim Rehg, Philip Dutre

Global Illumination The Game of Light Transport. Jian Huang

Illumination. The slides combine material from Andy van Dam, Spike Hughes, Travis Webb and Lyn Fong

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

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

Part I The Basic Algorithm. Principles of Photon Mapping. A two-pass global illumination method Pass I Computing the photon map

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

CS 488. More Shading and Illumination. Luc RENAMBOT

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Computer Graphics Global Illumination

Illumination & Shading

The Rendering Equation & Monte Carlo Ray Tracing

Surface Rendering Methods

The Rendering Equation and Path Tracing

WHY WE NEED SHADING. Suppose we build a model of a sphere using many polygons and color it with glcolor. We get something like.

This work is about a new method for generating diffusion curve style images. Although this topic is dealing with non-photorealistic rendering, as you

Final Project: Real-Time Global Illumination with Radiance Regression Functions

MIT Monte-Carlo Ray Tracing. MIT EECS 6.837, Cutler and Durand 1

Advanced Graphics. Global Illumination. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

Soft shadows. Steve Marschner Cornell University CS 569 Spring 2008, 21 February

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

Global Illumination and the Rendering Equation

782 Schedule & Notes

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

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

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

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

The Design and Implementation of a Radiosity Renderer. Alexandru Telea

CS 5625 Lec 2: Shading Models

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

Computer Graphics 1. Chapter 7 (June 17th, 2010, 2-4pm): Shading and rendering. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2010

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Reflection and Shading

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

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

Anti-aliasing and Monte Carlo Path Tracing

Simple Lighting/Illumination Models

The Rendering Equation. Computer Graphics CMU /15-662

COMP371 COMPUTER GRAPHICS

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

Computer Graphics Global Illumination

Illumination Algorithms

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

Scalable many-light methods

Practical Techniques for Ray Tracing in Games. Gareth Morgan (Imagination Technologies) Aras Pranckevičius (Unity Technologies) March, 2014

CS 325 Computer Graphics

Color and Light. CSCI 4229/5229 Computer Graphics Summer 2008

Advanced Ray Tracing

Chapter 7 - Light, Materials, Appearance

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

Sampling, Aliasing, & Mipmaps

critical theory Computer Science

Photorealistic 3D Rendering for VW in Mobile Devices

Biased Monte Carlo Ray Tracing

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

REYES REYES REYES. Goals of REYES. REYES Design Principles

Questions??? Announcements Assignment 3 due today

Optical Models of Direct Volume Rendering by Nelson Max

Introduction to Radiosity

Models and Architectures

Lighting & 3D Graphics. Images from 3D Creative Magazine

Rendering. Mike Bailey. Rendering.pptx. The Rendering Equation

CS354R: Computer Game Technology

Module 5: Video Modeling Lecture 28: Illumination model. The Lecture Contains: Diffuse and Specular Reflection. Objectives_template

Transcription:

CS 130 Anti-aliasing Images and Aliasing Aliasing errors caused by rasterizing How to correct them, in general 2 1

Aliased Lines Stair stepping and jaggies 3 Remove the jaggies Anti-aliased Lines 4 2

Aliasing Caused by high frequency information parading as low frequency 7 Aliasing Caused by high frequency information parading as low frequency 8 3

Aliasing Sampling Theory - Nyquist Limit - Nyquist Rate - a signal can be properly reconstructed from samples if sampled at a frequency that is greater than twice the frequency of the highest freq. in the signal spectrum 9 Aliasing in images 10 4

Aliasing Sub-sampling Sampling at pixel centers Luminosity trace 11 Aliasing Sub-sampling Rendered Image Luminosity trace 12 5

Aliasing Sub-sampling Original model Loss of detail Rendered Image 13 Aliasing What can be done? When generating CG images, we have a fair amount of control and we have options Techniques correct errors, called Anti-Aliasing such as: - Super-sampling - Filtering - Jittering 14 6

Filtering Original model Rendered Image Filtering methods examine areas of a color within a pixel 17 e.g. Gaussian blur Filtering 18 7

Super-sampling Multiple samples / pixel 19 Non-uniform filtering Weighted filtering Combine nine samples Filtering combines samples to find color within a pixel 20 8

Weighted filtering Filtering combines samples to find color within a pixel 21 Super-sampling with jittering Randomize sampling within grid Jittered samples 22 9

Example 23 Example 24 10

Example 25 Example 26 11

Advanced Rendering 27 Global Rendering: -Radiosity -Photon Mapping Non-photorealistic Rendering 12

Can you get this w/simple ray tracing? 29 Radiosity 30 13

Radiosity Physically based model for light interaction Accounts for indirect illumination - Color bleeding - Soft shadows 31 What is Radiosity? It is the name of a measure of light energy......and an algorithm: - Radiant Energy (flux) = energy flow per unit time (Watt) - Radiosity = flux per unit area (a derivative of flux with respect to area) radiated from a surface. - These are wavelength-dependent quantities. 32 14

Global Rendering Light strikes A - Some scattered - Some absorbed Some of scattered light strikes B - Some scattered - Some absorbed Some scattered light strikes A and so on 33 Discretizing the Rendering Equation Assume perfectly diffuse surfaces Discretize space into patches Color is constant per patch, for now 36 15

Solving for Radiosity Assume polygonal scene - polygons divided into n small patches - patch i has area A i - radiosity B i - Emits energy E i - Has surface reflectance r i (diffuse reflection) Models lighting in scenes for diffusely reflecting surfaces only. 37 Basic Equation Energy (i) = Emitted Energy (i) + Reflected Energy (i) i = 1,2,,n Reflected Energy(i) = r i * (Total Energy from Environment) Total Energy (i) = Sum of proportions of energy from all other objects that reach i n j 1 B F j ji where F ji = proportion of energy from j that reaches i per unit area of j (F is form-factor) 38 16

Form Factors N ai dai N aj r Patch i to patch j dai F dai da j = cosa i cos r 2 a j approximate Form-factor 39 Basic Equation Can write as system of n linear equations in n unknowns. FB = E B's are the unknown Assume all else is known One set of eqns for each wavelength! 40 17

The Radiosity Equation FB = E B 1 E 1 where B B 2 = and E = ¼ B n E 2 ¼ E n 1 r 1 F 11 r 1 F 12 ¼ r 1 F 1n and F = r 2 F 21 1 r 2 F 22 ¼ r 2 F 2n ¼ ¼ ¼ ¼ r n F n1 r n F n2 ¼ 1 r n F nn 41 Solving for the radiosity? Full matrix solution is impractical! Suppose there are 10,000 polygons. - Each divided into 10 patches (say). - n = 100,000 (patches) - n 2 = 10,000,000,000 (form factors) - Each form factor requires an element in the matrix. Hard to compute ALL simultaneously! 42 18

Solve the equation row by row, without ever storing the full matrix. Progressive Refinement Consider: Solving for the radiosity B i E i p i n j 1 B j F ij B i due to B j = r i B j F ij A single term determines influence of j on i. 43 Computation of Radiosity We shoot light out from patch i, allowing it to make a contribution to all other patches j - adjusting the radiosities of each of these other patches. Note the only form-factors needed are from that row of the matrix 44 19

Computation of Radiosity Iterate until convergence (or stop early) E i = E i-1 + FB i-l AKA: Jacobi iteration 45 Computation of Radiosity Iteration 0 46 20

Computation of Radiosity Iteration 1 47 Computation of Radiosity Iteration 2 48 21

Computation of Radiosity Iteration 3 49 Radiosity Examples 51 22

54 Advantages of Radiosity Global illumination method: modeling diffuse inter-reflection Color bleeding: a red wall next to a white one casts a reddish glow on the white wall Soft shadows: an area light source casts a soft shadow from a polygon No ambient hack View independent: assigns a brightness to every surface 55 23

Disadvantages of Radiosity Radiation is uniform in all directions Radiosity is piecewise constant No surface is transparent or translucent Must determine how to subdivide shapes into small enough patches 56 24