lecture02 - 30% blockage Could trace a conical beam from...

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

View Full Document Right Arrow Icon
David Luebke 1 CS 551/651: Advanced Computer Graphics Ray Tracing Continued
Background image of page 1

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

View Full DocumentRight Arrow Icon
David Luebke 2 Basic Algorithm: Code Color TraceRay (Ray R ) if rayHitsObjects ( R ) then Color localC , reflectC , refractC ; Object O = findNearestObject ( R ); localC = shade ( O , R ); // shadow rays? Ray reflectedRay = calcReflect ( O , R ) Ray refractedRay = calcRefract ( O , R ) reflectC = TraceRay ( reflectedRay ); refractC = TraceRay ( refractedRay ); return localC reflectC refractC else return backgroundColor
Background image of page 2
David Luebke 3 Shadow Ray Problems: Sharp Shadows Why are the shadows sharp? A: Infinitely small point light sources What can we do about it? A: Implement area light sources How?
Background image of page 3

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

View Full DocumentRight Arrow Icon
David Luebke 4 Shadow Ray Problems: Area Light Sources
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 30% blockage Could trace a conical beam from point of intersection to light source: Track portion of beam blocked by occluding polygons: David Luebke 5 Shadow Ray Problems: Area Light Sources Too hard! Approximate instead: Sample the light source over its area and take weighted average: 50% blockage David Luebke 6 Shadow Ray Problems: Area Light Sources Disadvantages: Less accurate (50% vs. 30% blockage) Oops! Just quadrupled (at least) number of shadow rays Moral of the story: Soft shadows are very expensive in ray tracing David Luebke 7 The End...
View Full Document

This note was uploaded on 12/09/2011 for the course CS 561/661 taught by Professor Lubke during the Summer '11 term at Montgomery College.

Page1 / 7

lecture02 - 30% blockage Could trace a conical beam from...

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

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