CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Object-Order vs. Screen-Order Rendering April 24, 2003.

Slides:



Advertisements
Similar presentations
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Advertisements

Graphics Pipeline.
Lecture 14 Illumination II – Global Models
3D Graphics Rendering and Terrain Modeling
1 Computer Graphics Chapter 9 Rendering. [9]-2RM Rendering Three dimensional object rendering is the set of collective processes which make the object.
Part I: Basics of Computer Graphics
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Texture Mapping II April 10, 2003.
CS 325 Introduction to Computer Graphics 04 / 09 / 2010 Instructor: Michael Eckmann.
CS 4731: Computer Graphics Lecture 18: Hidden Surface Removal Emmanuel Agu.
Computer Graphics (Fall 2005) COMS 4160, Lecture 21: Ray Tracing
(conventional Cartesian reference system)
X86 and 3D graphics. Quick Intro to 3D Graphics Glossary: –Vertex – point in 3D space –Triangle – 3 connected vertices –Object – list of triangles that.
CSCE 641: Computer Graphics Ray Tracing Jinxiang Chai.
Ray Casting Ray-Surface Intersections Barycentric Coordinates Reflection and Transmission [Shirley, Ch.9] Ray Tracing Handouts Ray Casting Ray-Surface.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Adv. Computer Graphics CS6500, Spring 2003.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Texture Mapping.
IN4151 Introduction 3D graphics 1 Introduction to 3D computer graphics part 2 Viewing pipeline Multi-processor implementation GPU architecture GPU algorithms.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Acceleration of Rendering.
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 14: Ray Tracing
Vertices and Fragments III Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
CSCE 641: Computer Graphics Ray Tracing Jinxiang Chai.
Fundamentals of Computer Graphics Part 6 Shading prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared with Angel,E.:
Ray Tracing II A More Practical Version. A QUICK REVIEW.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
COMP 261 Lecture 14 3D Graphics 2 of 2. Doing better than 3x3? Translation, scaling, rotation are different. Awkward to combine them. Use homogeneous.
Computer Graphics Panos Trahanias ΗΥ358 Spring 2009.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
1 Computer Graphics Week3 –Graphics & Image Processing.
Advanced Computer Graphics March 06, Grading Programming assignments Paper study and reports (flipped classroom) Final project No written exams.
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
Project Raytracing. Content Goals Idea of Raytracing Ray Casting – Therory – Practice Raytracing – Theory – Light model – Practice Output images Conclusion.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
CSE Real Time Rendering Week 2. Graphics Processing 2.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS-378: Game Technology Lecture #4: Texture and Other Maps Prof. Okan Arikan University of Texas, Austin V Lecture #4: Texture and Other Maps.
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
COMPUTER GRAPHICS CSCI 375. What do I need to know?  Familiarity with  Trigonometry  Analytic geometry  Linear algebra  Data structures  OOP.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)
Ray Tracing II. HW1 Part A due October 10 Camera module Object module –Read from a file –Sphere and Light only Ray tracer module: –No shading. No reflection.
CSCE 441: Computer Graphics Ray Tracing
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
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.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
CS 325 Introduction to Computer Graphics 04 / 07 / 2010 Instructor: Michael Eckmann.
Chapter 1 Graphics Systems and Models Models and Architectures.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
Photorealistic Rendering vs. Interactive 3D Graphics
Computer Graphics Chapter 9 Rendering.
3D Graphics Rendering PPT By Ricardo Veguilla.
Models and Architectures
© University of Wisconsin, CS559 Fall 2004
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
Models and Architectures
CS5500 Computer Graphics May 29, 2006
CS-378: Game Technology Lecture #4: Texture and Other Maps
Models and Architectures
CSCE 441: Computer Graphics Ray Tracing
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Introduction to Ray Tracing
Presentation transcript:

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Object-Order vs. Screen-Order Rendering April 24, 2003

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Today’s Short Film Red’s Dream by Pixar

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 A quick flashback to the first lecture…

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Themes Real-time, interactive 3D graphics.  CS5502 Photorealistic Image Sythesis. How to draw a lot of polygons fast? –Culling; Simplification (level-of-detail) How to make them look good? –Real-time shading

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 How Do You Draw a Picture (Without a Computer)? What is your subject? Viewing Parameters: – Camera, Picture Frames, Resolutions Many ways to specify it: (1)eye, focus length, image plane (2)eye, direction, FOV, up vector

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Method A: Object Order Algorithm (Process one polygon at a time.)

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring D to 2D Projection OK, so we can map a 3D point (or vertex) to 2D image. But what about a 3D surface? Polygons are made from points. Actually, we only need triangles!

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Scan Conversion Also called rasterization. The 3D to 2D Projection gives us 2D vertices (points). We need to fill in the interior.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Shading Interpolation between any two vertices: –Vertex colors (lit or unlit?) –Normal vectors –Z –w (or 1/w) for perspective correction –Texture coordinates

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Method B: Screen Order Algorithm (Process one pixel at a time.)

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Ray Tracing Algorithm More detail in Watt’s (pp ) and (pp ) Reflected Transmitted

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Creating a Ray Parameters: –Image Plane (position, size, and resolution) –Viewpoint –Which ray (x, y)?

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Ray-Object Intersection For example: sphere (x-x 0 ) 2 +(y-y 0 ) 2 +(z-z 0 ) 2 =r 2 Ray: (x,y)=(x 1,y 1 )+t(x d,y d ) Find t that satisfy (x-x 0 ) 2 +(y-y 0 ) 2 +(z-z 0 ) 2 =r 2 Normal vector? Also easy for planes, cones, …etc.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Shading Models Pixel color = ambient + diffuse + specular + reflected + transmitted The weight of each is determined by the surface properties.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Reflection and Refraction Reflected ray is determined by: – incoming ray and normal vector. Refracted ray is determined by: –Incoming ray –Normal vector –And density

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Recursive Algorithm The reflected ray and refracted ray are traced recursively. Termination condition: –Depth of trace –Weight (to the final pixel color) of ray Pseudo code in Watt’s page 349.

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Advantage We get all the following automatically: –Hidden surface removal –Shadow –Reflection –Transparency and refraction

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Disadvantage Slow. Many rays are spawned. Slow. Ray-object intersection for every ray and every object. (Space partition helps a lot!). The lighting is still not completely right!

CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Can you get this with ray tracing?