07-Illumination

07-Illumination - Readings for week of Jan 31 Well be...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Illumination Illumination Lecture 7 CPSC 478/578 Spring 2005 Readings for week of Jan 31 ± We’ll be discussing Illumination and Ray Tracing For “Direct Illumination” read Shirley, Chapter sections 8.1 and 8.2 For “Ray Tracing” Shirley, Chapter sections 9.1through 9.9; and Chapter section 7.1 “BSP Trees” Notes on Assignment #1 ± If using fltk1.1.4 already installed: -you won’t need fltkzd.lib, fltkjpeg.lib and fltkpngd.lib, so just delete these from the list of libraries 9 If you install fltk1.1.6 be sure to set the paths to the path where you installed it (if not c:/fltk1.1.6) 9 Assignment due next Monday: Make sure you can compile the skeleton program and make a simple new brush by the weekend! TA availability ± TA is Jianye Lu, jianye.lu@yale.edu ± Available by e-mail everyday, will answer by 12:00 pm the next business day. ± Office hours? Wed 7-9 pm Fri 2-5 pm IN THE ZOO Overview ± 3D scene representation ± 3D viewer representation ± Visible surface determination » Lighting simulation How do we compute the radiance for each sample ray? Lighting Simulation ± Direct illumination Ray casting Polygon shading ± Global illumination Ray tracing Monte Carlo methods Radiosity methods More on these methods later! N N Camera Surface Light Source N
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Ray Casting Image RayCast(Camera camera, Scene scene, int width, int height) { Image image = new Image(width, height); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { Ray ray = ConstructRayThroughPixel(camera, i, j); Intersection hit = FindIntersection(ray, scene); image[i][j] = GetColor(scene, ray, hit); } } return image; } Wireframe Ray Casting Image RayCast(Camera camera, Scene scene, int width, int height) { Image image = new Image(width, height); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { Ray ray = ConstructRayThroughPixel(camera, i, j); Intersection hit = FindIntersection(ray, scene); image[i][j] = GetColor(scene, ray, hit); } } return image; } Without Illumination Ray Casting Image RayCast(Camera camera, Scene scene, int width, int height) { Image image = new Image(width, height); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { Ray ray = ConstructRayThroughPixel(camera, i, j); Intersection hit = FindIntersection(ray, scene); image[i][j] = GetColor(scene, ray, hit); } } return image; } With Illumination Illumination ± How do we compute radiance for a sample ray? image[i][j] = GetColor(scene, ray, hit); Goal ± Must derive computer models for . .. Emission at light sources Scattering at surfaces Reception at the camera ± Desirable features … Concise Efficient to compute “Accurate” Overview ± Direct Illumination Emission at light sources Scattering at surfaces ± Global illumination Shadows Refractions Inter-object reflections Direct Illumination
Background image of page 2
3 Modeling Light Sources ± I L ( x,y,z, θ,φ,λ ) . ..
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

07-Illumination - Readings for week of Jan 31 Well be...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online