61A Extra Lecture 9
Announcements
Pixels (Demo)
Ray Tracing
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Camera 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Camera (0,0,0) 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Camera (0,0,0) 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Camera (0,0,0) 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Camera (0,0,0) 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Distance to Sphere Camera (0,0,0) 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Distance to Sphere Camera (0,0,0) 5
Ray Tracing A technique for displaying a 3D scene on a 2D screen by tracing a path through every pixel Dramatization: Sphere Light Distance to Sphere Camera (0,0,0) 5
Distance from a Source to a Sphere r (0,0,0) 6
Distance from a Source to a Sphere t• d irection r (0,0,0) 6
Distance from a Source to a Sphere t• d irection r c enter (0,0,0) 6
Distance from a Source to a Sphere t• d irection r c enter s ource (0,0,0) 6
Distance from a Source to a Sphere t• d irection r c enter s ource (0,0,0) 6
Distance from a Source to a Sphere r 2 = k s � c + t d k 2 0 = k t d + v k 2 � r 2 0 = t 2 k d k 2 + 2 t ( v · d ) + k v k 2 � r 2 t• d irection r c enter s ource (0,0,0) 6
Distance from a Source to a Sphere r 2 = k s � c + t d k 2 0 = k t d + v k 2 � r 2 0 = t 2 k d k 2 + 2 t ( v · d ) + k v k 2 � r 2 t• d irection r c enter s ource (0,0,0) 6
Distance from a Source to a Sphere r 2 = k s � c + t d k 2 0 = k t d + v k 2 � r 2 0 = t 2 k d k 2 + 2 t ( v · d ) + k v k 2 � r 2 b t• d irection r c enter s ource (0,0,0) 6
Distance from a Source to a Sphere r 2 = k s � c + t d k 2 0 = k t d + v k 2 � r 2 0 = t 2 k d k 2 + 2 t ( v · d ) + k v k 2 � r 2 b t• d irection r c enter s ource (0,0,0) (Demo) 6
Multiple Spheres 7
Multiple Spheres Compute distance to each sphere 7
Multiple Spheres Compute distance to each sphere Pixel color from the closest sphere 7
Multiple Spheres Compute distance to each sphere Pixel color from the closest sphere (Demo) 7
Reflections 8
Reflections 8
Reflections Color is a mixture of the sphere & reflection 8
Reflections Color is a mixture of the sphere & reflection The source of a reflection is the surface of the sphere, instead of the original camera 8
Reflections Color is a mixture of the sphere & reflection The source of a reflection is the surface of the sphere, instead of the original camera (Demo) 8
Recommend
More recommend