Rendering. Generate an image from geometric primitives II. Rendering III. Modeling IV. Animation. (Michael Bostock, CS426, Fall99)

Similar documents
3D Rendering. Course Syllabus. Where Are We Now? Rendering. 3D Rendering Example. Overview. Rendering. I. Image processing II. Rendering III.

3D Rendering and Ray Casting

3D Rendering and Ray Casting

קורס גרפיקה ממוחשבת 2010/2009 סמסטר א' Rendering 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Subdivision Surfaces. Course Syllabus. Course Syllabus. Modeling. Equivalence of Representations. 3D Object Representations

Polygonal Meshes. 3D Object Representations. 3D Object Representations. 3D Polygonal Mesh. 3D Polygonal Mesh. Geometry background

Supplement to Lecture 16

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Overview of 3D Object Representations

3D Modeling I. CG08b Lior Shapira Lecture 8. Based on: Thomas Funkhouser,Princeton University. Thomas Funkhouser 2000

Computer Science 426 Midterm 3/11/04, 1:30PM-2:50PM

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

Ray Casting. Connelly Barnes CS 4810: Graphics

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

Rendering. What is 3D rendering? קורס גרפיקה ממוחשבת 2008 סמסטר ב' מצלמה תאורה. Rendering Scenarios. Rendering Scenarios. 3D Rendering Issues

Illumination. Courtesy of Adam Finkelstein, Princeton University

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

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

Ray Tracing Foley & Van Dam, Chapters 15 and 16

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

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

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

Ray tracing. EECS 487 March 19,

Computer Graphics I Lecture 11

Introduction to Computer Graphics with WebGL

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

Lecture 11: Ray tracing (cont.)

Models and Architectures

Last week. Machiraju/Zhang/Möller

Models and Architectures. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

EECS 487, Fall 2005 Exam 2

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

Pipeline Operations. CS 4620 Lecture 10

Ray Tracing I. History

Ray Tracing. Shandong University

Ray Tracing I. Internet Raytracing Competition

Today. Part 1: Ray casting Part 2: Lighting Part 3: Recursive Ray tracing Part 4: Acceleration Techniques

Ray-Tracing. Misha Kazhdan

Computer Graphics 7: Viewing in 3-D

Monte Carlo Ray Tracing. Computer Graphics CMU /15-662

The Traditional Graphics Pipeline

SUMMARY. CS380: Introduction to Computer Graphics Ray tracing Chapter 20. Min H. Kim KAIST School of Computing 18/05/29. Modeling

CPSC GLOBAL ILLUMINATION

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

Real-Time Shadows. Last Time? Textures can Alias. Schedule. Questions? Quiz 1: Tuesday October 26 th, in class (1 week from today!

782 Schedule & Notes

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

The University of Calgary

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

3D Rasterization II COS 426

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

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Sung-Eui Yoon ( 윤성의 )

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

Chapter 4. Chapter 4. Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 1

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

Lecture 11. More Ray Casting/Tracing

The Traditional Graphics Pipeline

Topics and things to know about them:

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

Overview: Ray Tracing & The Perspective Projection Pipeline

Photorealism: Ray Tracing

Data Representation in Visualisation

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

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

Rendering Algorithms: Real-time indirect illumination. Spring 2010 Matthias Zwicker

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

Ray Tracing Basics I. Computer Graphics as Virtual Photography. camera (captures light) real scene. photo. Photographic print. Photography: processing

RASTERISED RENDERING

COMP environment mapping Mar. 12, r = 2n(n v) v

Texture. Texture Mapping. Texture Mapping. CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

CS580: Ray Tracing. Sung-Eui Yoon ( 윤성의 ) Course URL:

CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

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

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19

Three Main Themes of Computer Graphics

Ray Casting. 3D Rendering. Ray Casting. Ray Casting. Ray Casting. Ray Casting

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

Rasterization Overview

Computer Graphics. Overview CS 217. Introduction. Applications. Systems & software. What is computer graphics? What is it good for?

Computer Graphics and Image Processing Ray Tracing I

EF432. Introduction to spagetti and meatballs

3D graphics, raster and colors CS312 Fall 2010

Computing Visibility. Backface Culling for General Visibility. One More Trick with Planes. BSP Trees Ray Casting Depth Buffering Quiz

Computer Graphics Ray Casting. Matthias Teschner

Reading. Ray Tracing. Eye vs. light ray tracing. Geometric optics. Required:

Ray Tracer I: Ray Casting Due date: 12:00pm December 3, 2001

Ray Tracing I: Basics

Photon Mapping. Due: 3/24/05, 11:59 PM

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

FROM VERTICES TO FRAGMENTS. Lecture 5 Comp3080 Computer Graphics HKBU

Introduction to Computer Vision. Introduction CMPSCI 591A/691A CMPSCI 570/670. Image Formation

Illumination Models III: Ray Tracing (View Dependent Global Illumination)

Overview. Pipeline implementation I. Overview. Required Tasks. Preliminaries Clipping. Hidden Surface removal

6.837 Introduction to Computer Graphics Quiz 2 Thursday November 20, :40-4pm One hand-written sheet of notes allowed

Monte Carlo Integration

The Law of Reflection

Computer Graphics. Bing-Yu Chen National Taiwan University

Chapter 5. Projections and Rendering

Understanding Variability

Transcription:

1 Course Syllabus 2 I. Image processing 3D Adam Finkelstein Princeton University C0S 426, Fall 2001 II. III. Modeling IV. Animation Image Processing (Rusty Coleman, CS426, Fall99) (Michael Bostock, CS426, Fall99) Modeling (Dennis Zorin, CalTech) Animation (Angel, Plate 1) Where Are We ow? 3 4 I. Image processing Generate an image from geometric primitives II. III. Modeling IV. Animation Image Processing (Rusty Coleman, CS426, Fall99) (Michael Bostock, CS426, Fall99) Geometric Primitives Raster Image Modeling (Dennis Zorin, CalTech) Animation (Angel, Plate 1) 3D Example 5 6 What issues must be addressed by a 3D rendering system? 1

» 3D scene representation How is the 3D scene described in a computer? 7 3D Scene Representation Scene is usually approximated by 3D primitives ο Point ο Line segment ο Polygon ο Polyhedron ο Curved surface ο Solid object ο etc. 8 3D Point Specifies a location ο Represented by three coordinates ο Infinitely small Coordinate x; Coordinate y; Coordinate z; } Point; (x,y,z) 9 3D Vector Specifies a direction and a magnitude ο Represented by three coordinates ο Magnitude V = sqrt(dx dx + dy dy + dz dz) ο Has no location Coordinate dx; Coordinate dy; Coordinate dz; } Vector; Dot product of two 3D vectors ο V 1 V 2 =dx 1 dx 2 +dy 1 dy 2 +dz 1 dz 2 ο V 1 V 2 = V 1 V 2 cos(θ) Θ (dx 1,dy 1,dz 1 ) 10 (dx 2,dy 2,dz 2 ) 3D Line 11 3D Ray 12 Line segment with both endpoints at infinity»p= +tv, (- <t< ) Point P1; Vector V; }Line; V Line segment with one endpoint at infinity»p= +tv, (0<=t< ) Point P1; Vector V; }Ray; V 2

3D Line Segment Specifies a linear combination of two points»p= +t(p 2 - ), (0 t 1) Point P1; Point P2; } Segment; P 2 13 3D Plane Specifies a linear combination of three points ο Implicit representation:»p +d=0,or =(a,b,c)»ax+by+cz+d=0 Vector ; Distance d; } Plane; ο is the plane normal» Unit-length vector» Perpendicular to plane P 2 d P 3 14 3D Polygon Area inside a sequence of coplanar points ο Triangle ο Quadrilateral ο Convex ο Star-shaped ο Concave ο Self-intersecting Point *points; int npoints; } Polygon; Points are in counter-clockwise order ο Holes (use > 1 polygon struct) 15 3D Sphere All points at distance r from point (c x,c y,c z ) ο Implicit representation:»(x-c x ) 2 +(y-c y ) 2 +(z-c z ) 2 =r 2» x = r cos(φ) cos(θ) +c x» y = r cos(φ) sin(θ) +c y»z=rsin(φ) +c z r Point center; Distance radius; } Sphere; 16 3D Geometric Primitives 17 18 More detail on 3D modeling later in course ο Point ο Line segment ο Polygon ο Polyhedron ο Curved surface ο Solid object ο etc.» 3D viewer representation How is the viewing device described in a computer? H&B Figure 10.46 3

Camera Models 19 Camera Parameters 20 The most common model is pin-hole camera ο All captured light rays arrive along paths toward focal point without lens distortion (everything is in focus) ο Sensor response proportional to radiance Other models consider... Depth of field Motion blur Lens distortion View plane Eye position (focal point) Position ο Eye position (px, py, pz) Orientation ο View direction (dx, dy, dz) ο Up direction (ux, uy, uz) Aperature ο Field of view (xfov, yfov) Film plane ο Look at point ο View plane normal back right Up direction Eye Position View direction View Plane Look at Point Moving the camera 21 22 Up Back Towards» Visible surface determination Right How can the front-most surface be found with an algorithm? View Frustum Demo Visible Surface Determination The color of each pixel on the view plane depends on the radiance emanating from visible surfaces 23 Ray Casting For each sample ο Construct ray from eye position through view plane ο Find first surface intersected by ray through pixel ο Compute color of sample based on surface radiance 24 Rays through view plane Simplest method is ray casting Eye position View plane 4

Ray Casting For each sample ο Construct ray from eye position through view plane ο Find first surface intersected by ray through pixel ο Compute color of sample based on surface radiance 25 Visible Surface Determination For each sample ο Construct ray from eye position through view plane ο Find first surface intersected by ray through pixel ο Compute color of sample based on surface radiance 26 More efficient algorithms utilize spatial coherence! Algorithms 27 28 is a problem in sampling and reconstruction!» Lighting simulation Howdowecomputethe radiance for each sample ray? Lighting Simulation 29 Lighting Simulation 30 Lighting parameters ο Light source emission ο Surface reflectance ο Atmospheric attenuation ο Camera response Surface Light Source Direct illumination ο Ray casting ο Polygon shading Global illumination ο Ray tracing ο Monte Carlo methods ο Radiosity methods Surface Light Source More on these methods later! Camera Camera 5

Summary 31 ext Lecture 32 Major issues in 3D rendering ο 3D scene representation ο 3D viewer representation ο Visible surface determination ο Lighting simulation Ray intersections Light and reflectance models Indirect illumination Concluding note ο Accurate physical simulation is complex and intractable» algorithms apply many approximations to simplify representations and computations Render Boy (R. Kalnins & H. Oki, Assignment 5, CS 426, Fall98, Princeton University) For assignment #2, you will write a ray tracer! 6