University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Advanced Rendering II,

Slides:



Advertisements
Similar presentations
Technische Universität München Fakultät für Informatik Computer Graphics SS 2014 Sampling Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
Advertisements

CS 445 / 645 Introduction to Computer Graphics Lecture 18 Antialiasing Antialiasing.
Computer graphics & visualization Global Illumination Effects.
Lecture 14 Illumination II – Global Models
Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
Computer Graphics Viewing, Rendering, Antialiasing گرد آوري و تاليف: دكتر احمد رضا نقش نيل چي دانشگاه اصفهان گروه مهندسي كامپيوتر.
Advanced Computer Graphics
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.
Illumination Models Radiosity Chapter 14 Section 14.7 Some of the material in these slides may have been adapted from University of Virginia, MIT, Colby.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Clipping Week 8, Wed Mar.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Picking Week 10, Mon Mar.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Advanced Rendering II.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2008 Alla Sheffer Advanced Rendering Week.
Rendering theory & practice. Introduction  We’ve looked at modelling, surfacing and animating.  The final stage is rendering.  This can be the most.
3D Graphics Processor Architecture Victor Moya. PhD Project Research on architecture improvements for future Graphic Processor Units (GPUs). Research.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
7M836 Animation & Rendering
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Scan Conversion Week 6, Fri 10 Oct 2003 sampling.
The Radiosity Method Donald Fong February 10, 2004.
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Advanced Rendering University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
Today More raytracing stuff –Soft shadows and anti-aliasing More rendering methods –The text book is good on this –I’ll be using images from the CDROM.
Antialiasing CAP4730: Computational Structures in Computer Graphics.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
-Global Illumination Techniques
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Procedural Approaches.
Radiosity Jian Huang, CS594, Fall 2002 This set of slides reference the text book and slides used at Ohio State.
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
CS 445 / 645 Introduction to Computer Graphics Lecture 15 Shading Shading.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Collision II, Antialiasing.
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.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
Image-Based Rendering Geometry and light interaction may be difficult and expensive to model –Think of how hard radiosity is –Imagine the complexity of.
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.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
David Luebke 3/17/2016 Advanced Computer Graphics Antialiasing David Luebke
CS552: Computer Graphics Lecture 33: Illumination and Shading.
CS 376 Introduction to Computer Graphics 04 / 18 / 2007 Instructor: Michael Eckmann.
CS552: Computer Graphics Lecture 36: Ray Tracing.
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
Advanced Computer Graphics
Distributed Ray Tracing
© University of Wisconsin, CS559 Fall 2004
(c) 2002 University of Wisconsin
Distributed Ray Tracing
(c) 2002 University of Wisconsin
CS5500 Computer Graphics May 29, 2006
Distributed Ray Tracing
Presentation transcript:

University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Advanced Rendering II, Sampling Week 9, Wed Mar 9

2 News some people still haven’t demoed P2 if you don’t demo you get a 0! come see me after class sign up with ASAP

3 News guest lecture Friday Prof. Robert Bridson, on animation among the many cool things he’s done: cloth simulation used for Yoda fight scene

4 News summer job available in civil engineering

5 Summer Job Opportunity Student needed to integrate UBC Earthquake Engineering Research Facility with Network for Earthquake Engineering Simulation ( Student needed to integrate UBC Earthquake Engineering Research Facility with Network for Earthquake Engineering Simulation ( Required: Required:  Graphics background  Linux familiarity  NSERC USRA eligible ( Contact Ken Elwood and CC me Contact Ken Elwood and CC me Contact today by 2pm Contact today by 2pm Decision will be made by Friday! Decision will be made by Friday!

6 News summer job available in civil engineering today is last day to express interest! position must be filled by Friday come see me after class if you’re interested even if you already sent mail, so that I can match faces to names

7 Review: Particle Systems changeable/fluid stuff fire, steam, smoke, water, grass, hair, dust, waterfalls, fireworks, explosions, flocks life cycle generation, dynamics, death rendering tricks avoid hidden surface computations

8 Review: Simple Ray Tracing view dependent method cast a ray from viewer’s eye through each pixel compute intersection of ray with first object in scene cast ray from intersection point on object to light sources projection reference point pixel positions on projection plane

9 Review: Recursive Ray Tracing ray tracing can handle reflection (chrome) refraction (glass) shadows spawn secondary rays reflection, refraction if another object is hit, recurse to find its color shadow cast ray from intersection point to light source, check if intersects another object projection reference point pixel positions on projection plane

10 Review: Subsurface Scattering light enters surface, bounces around inside, leaves at different location on the surface

11 Advanced Rendering II

12 Radiosity radiosity definition rate at which energy emitted or reflected by a surface radiosity methods capture diffuse-diffuse bouncing of light indirect effects difficult to handle with raytracing

13 Radiosity recall radiative heat transfer conserve light energy in a volume model light transport until convergence solution captures diffuse-diffuse bouncing of light view independent technique calculate solution for entire scene offline browse from any viewpoint in realtime heat/light source thermometer/eye reflective objects energy packets

14 Radiosity [IBM] divide surfaces into small patches loop: check for light exchange between all pairs form factor: orientation of one patch wrt other patch (n x n matrix)

15 Raytracing vs. Radiosity Comparison ray-tracing: great specular, approx. diffuse view dependent radiosity: great diffuse, specular ignored view independent, mostly-enclosed volumes advanced hybrids: combine them raytraced radiosity

16 Image-Based Rendering store and access only pixels no geometry, no light simulation,... input: set of images output: image from new viewpoint surprisingly large set of possible new viewpoints

17 IBR Characteristics display time not tied to scene complexity expensive rendering or real photographs massive compression possible (120:1) can point camera in or out QuickTimeVR: camera rotates, no translation

18 Characterizing Light 7D plenoptic function: P(x, y, z, , t) (x,y,z): every position in space  every angle : every wavelength of light t: every time can simplify to 4D function fix time: static scene fix wavelength: static lighting partially fix position: empty space between camera and object

19 4D Light Field / Lumigraph P(u,v,s,t) images: just one kind of 2D slice

20 Non-Photorealistic Rendering look of hand-drawn sketches or paintings /

21 NPRQuake

22 Advanced Rendering so many more algorithms, so little class time! Renderman REYES photon mapping and lots more...

23 Sampling

24 Samples most things in the real world are continuous everything in a computer is discrete the process of mapping a continuous function to a discrete one is called sampling the process of mapping a discrete function to a continuous one is called reconstruction the process of mapping a continuous variable to a discrete one is called quantization rendering an image requires sampling and quantization displaying an image involves reconstruction

25 Line Segments we tried to sample a line segment so it would map to a 2D raster display we quantized the pixel values to 0 or 1 we saw stair steps, or jaggies

26 Line Segments instead, quantize to many shades but what sampling algorithm is used?

27 Unweighted Area Sampling shade pixels wrt area covered by thickened line equal areas cause equal intensity, regardless of distance from pixel center to area rough approximation formulated by dividing each pixel into a finer grid of pixels primitive cannot affect intensity of pixel if it does not intersect the pixel

28 Weighted Area Sampling intuitively, pixel cut through the center should be more heavily weighted than one cut along corner weighting function, W(x,y) specifies the contribution of primitive passing through the point (x, y) from pixel center x Intensity W(x,y)

29 Images an image is a 2D function I (x, y) that specifies intensity for each point (x, y)

30 Image Sampling and Reconstruction convert continuous image to discrete set of samples display hardware reconstructs samples into continuous image finite sized source of light for each pixel discrete input valuescontinuous light output

31 Point Sampling an Image simplest sampling is on a grid sample depends solely on value at grid points

32 Point Sampling multiply sample grid by image intensity to obtain a discrete set of points, or samples. Sampling Geometry

33 some objects missed entirely, others poorly sampled could try unweighted or weighted area sampling but how can we be sure we show everything? need to think about entire class of solutions! Sampling Errors

34 Image As Signal image as spatial signal 2D raster image discrete sampling of 2D spatial signal 1D slice of raster image discrete sampling of 1D spatial signal Examples from Foley, van Dam, Feiner, and Hughes Pixel position across scanline Intensity

35 Sampling Theory how would we generate a signal like this out of simple building blocks? theorem any signal can be represented as an (infinite) sum of sine waves at different frequencies

36 Sampling Theory in a Nutshell terminology bandwidth – length of repeated sequence on infinite signal frequency – 1/bandwidth (number of repeated sequences in unit length) example – sine wave bandwidth = 2  frequency = 1/ 2 

37 Summing Waves I

38 Summing Waves II represent spatial signal as sum of sine waves (varying frequency and phase shift) very commonly used to represent sound “spectrum”

39 1D Sampling and Reconstruction

40 1D Sampling and Reconstruction

41 1D Sampling and Reconstruction

42 1D Sampling and Reconstruction

43 1D Sampling and Reconstruction problems jaggies – abrupt changes

44 1D Sampling and Reconstruction problems jaggies – abrupt changes lose data

45 Sampling Theorem continuous signal can be completely recovered from its samples iff sampling rate greater than twice maximum frequency present in signal - Claude Shannon

46 Nyquist Rate lower bound on sampling rate twice the highest frequency component in the image’s spectrum

47 Falling Below Nyquist Rate when sampling below Nyquist Rate, resulting signal looks like a lower-frequency one this is aliasing!

48 Nyquist Rate

49 Aliasing incorrect appearance of high frequencies as low frequencies to avoid: antialiasing supersample sample at higher frequency low pass filtering remove high frequency function parts aka prefiltering, band-limiting

50 Supersampling None3x35x5

51 Low-Pass Filtering

52 Low-Pass Filtering

53 Filtering low pass blur high pass edge finding

54 Previous Antialiasing Example texture mipmapping: low pass filter