CS3241 C OMPUTER G RAPHICS Tutorial 8. Q UESTION #1 Given an object represented in polygons, how to find its bounding sphere?

Slides:



Advertisements
Similar presentations
CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
Advertisements

Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Week 7 - Monday.  What did we talk about last time?  Specular shading  Aliasing and antialiasing.
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
3D Graphics Rendering and Terrain Modeling
CLASS 9 ADVANCE RENDERING RAY TRACING RADIOSITY LIGHT FIELD CS770/870.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
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.
Based on slides created by Edward Angel
Illumination Model & Surface-rendering Method 박 경 와.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
University of New Mexico
CS 325 Introduction to Computer Graphics 04 / 09 / 2010 Instructor: Michael Eckmann.
CS 4731: Computer Graphics Lecture 18: Hidden Surface Removal Emmanuel Agu.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Object-Order vs. Screen-Order Rendering April 24, 2003.
CS 376 Introduction to Computer Graphics 04 / 09 / 2007 Instructor: Michael Eckmann.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
CS 376 Introduction to Computer Graphics 04 / 04 / 2007 Instructor: Michael Eckmann.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
Cornell CS465 Fall 2004 Lecture 3© 2004 Steve Marschner 1 Ray Tracing CS 465 Lecture 3.
Cornell CS465 Fall 2004 Lecture 3© 2004 Steve Marschner 1 Ray Tracing CS 465 Lecture 3.
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.:
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) CS 426 Intro to 3D Computer Graphics © 2003, 2004, 2005 Jason Leigh Electronic.
COMP 175: Computer Graphics March 24, 2015
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Spherical Mirrors Spherical mirror – a section of a sphere of radius R and with a center of curvature C R C Mirror.
Introducing To 3D Modeling George Atanasov Telerik Corporation
Computer Graphics World, View and Projection Matrices CO2409 Computer Graphics Week 8.
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
Advanced Computer Graphics Depth & Stencil Buffers / Rendering to Textures CO2409 Computer Graphics Week 19.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Graphics Lecture 13: Slide 1 Interactive Computer Graphics Lecture 13: Radiosity - Principles.
Intro. to Advanced Lighting, Basic Ray Tracing Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Monday, April.
More on Environment Mapping Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Wednesday, December 10, 2003.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
CS 325 Introduction to Computer Graphics 04 / 14 / 2010 Instructor: Michael Eckmann.
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.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Basic Ray Tracing CMSC 435/634.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Arrangements and Duality Motivation: Ray-Tracing Fall 2001, Lecture 9 Presented by Darius Jazayeri 10/4/01.
Computer Graphics Lecture 08 Fasih ur Rehman. Last Class Ray Tracing.
CS 376 Introduction to Computer Graphics 04 / 02 / 2007 Instructor: Michael Eckmann.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
CS COMPUTER GRAPHICS LABORATORY. LIST OF EXPERIMENTS 1.Implementation of Bresenhams Algorithm – Line, Circle, Ellipse. 2.Implementation of Line,
11/5/2002 (c) University of Wisconsin, CS 559 Last Time Local Shading –Diffuse term –Specular term –All together –OpenGL brief overview.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 13.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
More on Ray Tracing Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Wednesday, April 14, 2004.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
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.
OpenGL and You I Cast, Therefore I Am. Ray Casting Idea is simple, implementation takes some work –Cast rays as if you were the camera –Determine intersection.
09/23/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Reflections Shadows Part 1 Stage 1 is in.
CS 325 Introduction to Computer Graphics 04 / 07 / 2010 Instructor: Michael Eckmann.
Illumination Models. Introduction 1 Illumination model: Given a point on a surface, what is the perceived color and intensity? Known as Lighting Model,
Revision Sheet Computer Graphics and Human Interaction By Dr. HANY ELSALAMONY1.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Computer Graphics Lecture 30 Mathematics of Lighting and Shading - IV Taqdees A. Siddiqi
CS 376 Introduction to Computer Graphics 04 / 18 / 2007 Instructor: Michael Eckmann.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Week 7 - Monday CS361.
3D Graphics Rendering PPT By Ricardo Veguilla.
Merle Norman Cosmetics, Los Angeles
Lighting.
Introduction to Ray Tracing
Presentation transcript:

CS3241 C OMPUTER G RAPHICS Tutorial 8

Q UESTION #1 Given an object represented in polygons, how to find its bounding sphere?

Q UESTION #1 First find the centroid of the object, and then find the furthest vertex of the object from the centroid. The distance between them will be the radius of the sphere and the centroid will be the center. Centroid Furthest Vertex

Q UESTION #2 There are two mirrors in the space and a viewer as the following configuration on the left. Assuming there is no light source nearby but only some ambient lighting. The viewer should see the picture in the screen as in the right picture. Picture to be seen on the screen (Not drawn in the correct scale) Mirror A Mirror B Screen Viewer Mirror A Mirror B

Q UESTION #2 If we render the picture with ray tracing, how many times do we need to test if a ray intersects an object? Assuming the screen dimension is 1024x768 pixels. The grey area in the picture has pixels (excluding the white area) and the white area has pixels. Assuming this is the most basic ray tracing without any other techniques to reduce the number of ray-object intersection test. However, you can assume that a ray does not intersect the object which the ray just comes out from. (Note that the viewer is NOT an object in the scene.) List the steps and explain your answers also. Picture to be seen on the screen (Not drawn in the correct scale) Mirror A Mirror B Screen Viewer Mirror A Mirror B

Q UESTION #2 2 tests for a black pixel Test against both A and B Picture to be seen on the screen (Not drawn in the correct scale) Mirror A Mirror B Screen Viewer Mirror A Mirror B

Q UESTION # tests for a grey pixel Picture to be seen on the screen (Not drawn in the correct scale) Mirror A Mirror B Screen Viewer Mirror A Mirror B

Q UESTION #2 # Black pixels = 1024 x 768 – # Grey pixels = and # white pixels = tests on each black pixel and 3 tests on each grey or white pixel Black pixel: have to test against both mirrors to make sure it doesn’t hit any of them : 2 tests Grey/White pixel: Test against both mirrors and finds that it hits one of them : 2 tests Reflected ray from mirror, have to check if it hits the other mirror - +1 Total # of tests = 1024 x 768 x

Q UESTION #2 How long will it takes to render a movie of an hour? Assuming the number of tests is about 1600K for each frame from last slide Assuming a frame rate of 30 1 second of movie = 30 x hour = 60 x 60 x 30 x 1600 Assuming our computer can do tests per second We still need 200 days to render the movie

Q UESTION #2 Further more, what if we add one more mirror Number of tests double Number of tests increases exponentially with # objects Screen Viewer Mirror A Mirror B

Q UESTION #3 Imagine a 2 pixels by 2 pixels square, has its center at the origin (see the left figure). The square moves linearly to a new position with its center at (1,0). If the pixels on the display are shaded as long as they are covered by the square, please draw the shaded pixels when the center of the square is at (0.5,0) and (1,0). Is the “square” a square all the time?

Q UESTION #3

Think about? The whole screen will flash

Q UESTION #3

Q UESTION #4 In ordered-dithering, we light up a pixel if S(x,y) > D ij. Given the dithering matrix: And the pixel intensities of a picture:

Q UESTION #4 Please compute the image with ordered dither (without error diffusion). Shade the pixels which are supposed to be turned on. What is the average difference of pixel intensity between two pictures? Assume the intensity of the pixel is 4 when it is turned on, 0 when it is turned off.

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 What is the average difference of pixel intensity between two pictures? Assume the intensity of the pixel is 4 when it is turned on, 0 when it is turned off. Original: Avg intensity = 60/50 = 1.2 Dither: Avg intensity = 4 x 18/50 =

T HAT ’ S WHY WE HAVE ERROR DIFFUSION Error = -1, distribute to the E, SE, S and SW pixels

Q UESTION #4 Overlay dithering matrix over pixel intensities

Q UESTION #4 Overlay dithering matrix over pixel intensities 443 7/16 of error 1/16 of error 5/16 of error 3/16 of error

Q UESTION #4 Overlay dithering matrix over pixel intensities /16-5/16-1/ /16 x error ( = -1 )