1 Dr. Scott Schaefer Intersecting Simple Surfaces.

Slides:



Advertisements
Similar presentations
Everything you ever wanted to know about collision detection
Advertisements

Computer Graphics- SCC 342
8.1 Prisms, Area and Volume Prism – 2 congruent polygons lie in parallel planes corresponding sides are parallel. corresponding vertices are connected.
William Ribarsky (modified by Amos Johnson) 1 Ray Tracing.
COMP 175 | COMPUTER GRAPHICS Remco Chang1/6103b – Shapes Lecture 03b: Shapes COMP 175: Computer Graphics February 3, 2015.
1 Planes, Polygons and Objects ©Anthony Steed
CIRCLES.
Circles Write an equation given points
CSE 681 Bounding Volumes. CSE 681 Bounding Volumes Use simple volume enclose object(s) tradeoff for rays where there is extra intersection test for object.
Geometry Primer Lines and rays Planes Spheres Frustums Triangles Polygon Polyhedron.
SPHERICAL MIRRORS Free powerpoints at
Ray Polygon Interception: Cyrus Beck Algorithm Mengxia Zhu Fall 2007.
 Mirrors that are not flat are called curved mirrors.  Depending on whether the reflective coating is on the inside or outside of the curve will decide.
Chapter 12: Surface Area and Volume of Solids
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Reflective Optics Chapter 25. Reflective Optics  Wavefronts and Rays  Law of Reflection  Kinds of Reflection  Image Formation  Images and Flat Mirrors.
CS 376 Introduction to Computer Graphics 04 / 06 / 2007 Instructor: Michael Eckmann.
CS 376 Introduction to Computer Graphics 04 / 04 / 2007 Instructor: Michael Eckmann.
CSE 681 Object Intersection. CSE 681 Object Representation Implicit forms F(x,y,z) = 0 Explicit forms Analytic form x = F(y,z) testing generating Parametric.
Images in Concave Mirrors. Properties  The mirror has a reflecting surface that curves inward.  When you look at objects in the mirror, the image appears.
Geometrical Optics (Lecture II)
Warm up 1. State the center and radius. 2. Write the following in standard form. Center (-9, 2) r = 8.
10.6 Equations of a Circle Standard Equation of a Circle Definition of a Circle.
Week 13 - Wednesday CS361.
GEOMETRY.
Vector Exercise. Parametric form for a line Passing two points.
Spherical Mirrors Spherical mirror – a section of a sphere of radius R and with a center of curvature C R C Mirror.
SPHERICAL MIRRORS. Curved Mirrors  Curved mirrors are also called spherical mirrors because they are part of a sphere (ball)  a portion of the sphere.
The Geometry of Solids Section 10.1.
1 Ray Tracing Polyhedra ©Anthony Steed
Tangents, Arcs and chords, basic terms Section 9-1.
Section 5.3 Images in Curved Mirrors 1.  Concave mirrors have a reflecting surface that curves inward like the inside of a spoon.  Some common uses:
3/4/ PHYS 1442 – Section 004 Lecture #18 Monday March 31, 2014 Dr. Andrew Brandt Chapter 23 Optics The Ray Model of Light Reflection; Image Formed.
CS 325 Introduction to Computer Graphics 04 / 26 / 2010 Instructor: Michael Eckmann.
Circles Definitions. Infinite Unity No beginning No end Continuous The perfect shape.
10/15/02 (c) 2002 University of Wisconsin, CS559 Last Time Clipping.
Section 8.4 Nack/Jones1 Section 8.4 Polyhedrons & Spheres.
Week 13 - Monday.  What did we talk about last time?  Exam 2!  Before that…  Polygonal techniques ▪ Tessellation and triangulation  Triangle strips,
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Warm-Up 1) Draw a polygon that is not convex. 2) Find the measure of an exterior angle of a regular decagon. 3) Find the circumference and area of a circle.
8.2 Surface Area Objectives:
An introduction to 3D Figures
Basic Ray Tracing CMSC 435/634.
Chapter Area, Pythagorean Theorem, and Volume 14 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Geometry: A Year Around By: Kourtney Mansfield. Chapter 1: Points, Lines, and Planes Point – Has no dimension. Usually represented by a small dot. Point.
Solid Figures Vocabulary.
Section 11.1 Section 11.2 Conic Sections The Parabola.
12.7 Surface Area of Spheres. Objectives Recognize and define basic properties of spheres Recognize and define basic properties of spheres Find surface.
6-2 Conic Sections: Circles Geometric definition: A circle is formed by cutting a circular cone with a plane perpendicular to the symmetry axis of the.
CS 551/651: Advanced Computer Graphics
Section 12-1 Exploring Solids. Polyhedron Three dimensional closed figure formed by joining three or more polygons at their side. Plural: polyhedra.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Vocabulary Word: Supplementary Angles Definition: Two angles whose sum is 180°.
Today’s agenda: Plane Mirrors. You must be able to draw ray diagrams for plane mirrors, and be able to calculate image and object heights, distances, and.
A light beam striking a boundary between two media can be partly transmitted and partly reflected at the boundary.
CSE 681 Object Intersection. CSE 681 Object Representation Implicit forms F(x,y,z) = 0 Explicit forms Analytic form x = F(y,z) testing generating Parametric.
Introduction to 3D Solids and Solids of Revolution Some 3D shapes can be formed by revolving a 2D shape around a line (called the axis of revolution).
Warm Up Find the slope of the line that connects each pair of points. – (5, 7) and (–1, 6) 2. (3, –4) and (–4, 3)
11.1 Notes Space Figures and Cross Sections. Identifying Nets and Space Figures A polyhedron is a 3-dimensional figure whose surfaces are polygons. -
The set of all points inside the circle
Intersecting Simple Surfaces
6.2 Solving Quadratic Equations by Graphing
Surfaces Dr. Scott Schaefer.
10.1 Vocab Day 1 Grab a notes page from the back under Geometry on Wednesday Have notebook and homework out.
Object Intersection CSE 681.
9.3 Graph and Write Equations of Circles
Ray Tracing Polyhedra ©Anthony Steed
Work Features Work features are tools that help create and position features by providing points, lines, and planes when current geometry is not sufficient.
14 Chapter Area, Pythagorean Theorem, and Volume
Work Features Work features are tools that help create and position features by providing points, lines, and planes when current geometry is not sufficient.
Presentation transcript:

1 Dr. Scott Schaefer Intersecting Simple Surfaces

2/66 Types of Surfaces Infinite Planes Polygons  Convex  Ray Shooting  Winding Number Spheres Cylinders

3/66 Infinite Planes Defined by a unit normal n and a point o

4/66 Infinite Planes Defined by a unit normal n and a point o

5/66 Infinite Planes Defined by a unit normal n and a point o

6/66 Infinite Planes Defined by a unit normal n and a point o

7/66 Infinite Planes Defined by a unit normal n and a point o

8/66 Infinite Planes Defined by a unit normal n and a point o

9/66 Polygons Intersect infinite plane containing polygon Determine if point is inside polygon

10/66 Polygons Intersect infinite plane containing polygon Determine if point is inside polygon How do we know if a point is inside a polygon?

11/66 Point Inside Convex Polygon

12/66 Check if point on same side of all edges Point Inside Convex Polygon

13/66 Check if point on same side of all edges Point Inside Convex Polygon

14/66 Check if point on same side of all edges Point Inside Convex Polygon

15/66 Check if point on same side of all edges Point Inside Convex Polygon

16/66 Check if point on same side of all edges Point Inside Convex Polygon

17/66 Check if point on same side of all edges Point Inside Convex Polygon

18/66 Check if point on same side of all edges Point Inside Convex Polygon

19/66 Check if point on same side of all edges Point Inside Convex Polygon

20/66 Check if point on same side of all edges Point Inside Convex Polygon

21/66 Check if point on same side of all edges Point Inside Convex Polygon

22/66 Point Inside Convex Polygon

23/66 Point Inside Polygon Test Given a point, determine if it lies inside a polygon or not

24/66 Ray Test Fire ray from point Count intersections  Odd = inside polygon  Even = outside polygon

25/66 Problems With Rays Fire ray from point Count intersections  Odd = inside polygon  Even = outside polygon Problems  Ray through vertex

26/66 Problems With Rays Fire ray from point Count intersections  Odd = inside polygon  Even = outside polygon Problems  Ray through vertex

27/66 Problems With Rays Fire ray from point Count intersections  Odd = inside polygon  Even = outside polygon Problems  Ray through vertex  Ray parallel to edge

28/66 A Better Way

29/66 A Better Way

30/66 A Better Way

31/66 A Better Way

32/66 A Better Way

33/66 A Better Way

34/66 A Better Way

35/66 A Better Way

36/66 A Better Way

37/66 A Better Way

38/66 A Better Way

39/66 A Better Way One winding = inside

40/66 A Better Way

41/66 A Better Way

42/66 A Better Way

43/66 A Better Way

44/66 A Better Way

45/66 A Better Way

46/66 A Better Way

47/66 A Better Way

48/66 A Better Way

49/66 A Better Way

50/66 A Better Way

51/66 A Better Way zero winding = outside

52/66 Requirements Oriented edges Edges can be processed in any order

53/66 Computing Winding Number Given unit normal n =0 For each edge (p 1, p 2 ) If, then inside

54/66 Advantages Extends to 3D! Numerically stable Even works on models with holes (sort of) No ray casting

55/66 Intersecting Spheres Three possible cases  Zero intersections: miss the sphere  One intersection: hit tangent to sphere  Two intersections: hit sphere on front and back side How do we distinguish these cases?

56/66 Intersecting Spheres

57/66 Intersecting Spheres

58/66 Intersecting Spheres

59/66 Intersecting Spheres is quadratic in t

60/66 Intersecting Spheres is quadratic in t Solve for t using quadratic equation If, no intersection If, one intersection Otherwise, two intersections

61/66 Normals of Spheres

62/66 Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r

63/66 Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r

64/66 Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r 1.Perform an orthogonal projection to the plane defined by C, A on the line L(t) and intersect with circle in 2D

65/66 Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r 2.Substitute t parameters from 2D intersection to 3D line equation

66/66 Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r 3.Normal of 2D circle is the same normal of cylinder at point of intersection

67/66

68/66 Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r

69/66 Infinite Cylinders Defined by a center point C, a unit axis direction A and a radius r