Lecture_Chapter5_b

# Lecture_Chapter5_b

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Camera, and Lighting (x3 , y3 ) Top Clipper (x4 , y4 ) 33 Polygon Clipping •  Clipping as a pipeline Top Clipper Right Clipper ECS 175 Bottom Clipper Left Clipper Chapter 5: 3D – Projections, Camera, and Lighting 34 Polygon Clipping •  Bounding boxes, convex hulls •  How are curves, text, etc. clipped? ECS 175 Chapter 5: 3D – Projections, Camera, and Lighting 35 Clipping in 3D •  Line – plane intersections n · ( p − p0 ) = 0 p(u) = (1 − u) · p1 + u · p2 ECS 175 Plane with normal n, point p0 Parametric line equation Chapter 5: 3D – Projections, Camera, and Lighting 36 Clipping in 3D •  Line – plane intersections n · ( p( u ) − p0 ) = 0 Intersection equation, solve for u n · ((1 − u) · p1 + u · p2 − p0 ) = 0 n · ( p0 − p1 ) u= n · ( p2 − p1 ) ECS 175 Chapter 5: 3D – Projections, Camera, and Lighting 37 A Note on Planes and Normals •  Planes can be fully specified by three points •  These points may be used to specify a triangle •  Use the cross product to find ‘third orthogonal vector’ •  Normalized vector corresponds to triangle/plane normal ECS 175 Chapter 5: 3D – Projections, Camera, and Lighting 38...
View Full Document

## This document was uploaded on 03/12/2014 for the course ECS 175 at UC Davis.

Ask a homework question - tutors are online