Parametric Shapes & Lighting Jared Jackson Stanford - CS 348b June 6, 2003.

Slides:



Advertisements
Similar presentations
3.7 Implicit Differentiation
Advertisements

Working with Shapes in Two Dimensions
Lecture 7 2D Transformation. What is a transformation? Exactly what it says - an operation that transforms or changes a shape (line, shape, drawing etc.)
BY Kamran Yousaf Line Attributes (X1, Y1, X2, Y2, Color) The Line Based on Slope Decision on the dx and dy Loop on Greater (Counter of 1) Increment of.
The Ellipsoid Faculty of Applied Engineering and Urban Planning
Copyright © Cengage Learning. All rights reserved.
Parametric Equations Local Coordinate Systems Curvature Splines
Computer Graphics I, Fall 2010 Shading II.
Trigonometric Robot Workbook Version 0.1 Prepared by Phil Bourke Tipperary Institute.
Semester 1 Review Unit vector =. A line that contains the point P(x 0,y 0,z 0 ) and direction vector : parametric symmetric.
Copyright © Cengage Learning. All rights reserved.
Shading II CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Computer Graphics - Class 14
Curves Locus of a point moving with one degree of freedom
Lengths of Plane Curves
For each point (x,y,z) in R3, the cylindrical coordinates (r,,z) are defined by the polar coordinates r and  (for x and y) together with z. Example Find.
Some Material on Swept Solids and Surfaces of Revolution From Chapter 10 of Mortenson Sections 10.5 – 10.6 Geometric Modeling
Drawing Parametric Curves Jean-Paul Mueller. Curves - The parametric form of a curve expresses the value of each spatial variable for points on the curve.
Parallel Processing – Final Project Performed by:Nitsan Mane Jonathan Distler PP9.
17 VECTOR CALCULUS.
Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Chapter 16 – Vector Calculus
Multiple Integrals 12. Surface Area Surface Area In this section we apply double integrals to the problem of computing the area of a surface.
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
Introduction to Radians (Definition, Converting Between Radians and Degrees, & When to use Degrees or Radians)
3D Geometric Transformation Point in 3D space –Position (x, y, z) –Color (r, g, b) –Normal (Nx, Ny, Nz) Homogenous Coordinates –Position (x,y,z,w) –Usually.
V part 2 Obtained from a Guildford County workshop- Summer, 2014.
Robert M. Guzzo Math 32a Parametric Equations. We’re used to expressing curves in terms of functions of the form, f(x)=y. What happens if the curve is.
7.1 Scalars and vectors Scalar: a quantity specified by its magnitude, for example: temperature, time, mass, and density Chapter 7 Vector algebra Vector:
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Dx = 2 dy = 3 Y X D Translation A translation is applied to an object by repositioning it along a straight-line path.
Vector Functions 10. Parametric Surfaces Parametric Surfaces We have looked at surfaces that are graphs of functions of two variables. Here we.
Curves.
Generalized Hough Transform
1.4 Parametric Equations. There are times when we need to describe motion (or a curve) that is not a function. We can do this by writing equations for.
Plane Curves and Parametric Equations New Ways to Describe Curves (10.4)
10.5 Parametric Equations. Parametric equations A third variable t (a parameter) tells us when an object is at a given point (x, y) Both x and y are functions.
1.4 Parametric Equations. Relations Circles Ellipses Lines and Other Curves What you’ll learn about… …and why Parametric equations can be used to obtain.
Multiple Integrals 12.
GOAL: MULTIPLY TWO POLYNOMIALS TOGETHER USING THE DISTRIBUTIVE PROPERTY ELIGIBLE CONTENT: A Multiplying Polynomials.
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
Geometry-I. What’s done The two-tier representation Topology-the combinatorial structure Geometry –The actual parameters representing the geometric face.
Background Mathematics Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006.
Copyright © Cengage Learning. All rights reserved. 16 Vector Calculus.
Section 15.6 Directional Derivatives and the Gradient Vector.
November 4, THE REFLECTANCE MAP AND SHAPE-FROM-SHADING.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Precalculus Parametric Equations graphs. Parametric Equations  Graph parametric equations.  Determine an equivalent rectangular equation for parametric.
Hough Transform Procedure to find a shape in an image Shape can be described in parametric form Shapes in image correspond to a family of parametric solutions.
Prerequisites for Calculus
Parametric Surfaces We can use parametric equations to describe a curve. Because a curve is one dimensional, we only need one parameter. If we want to.
Arc Length and Curvature
In addition to the multiple integral of a function f:R n  R over a region in R n, there are many different types of integrals which can be defined, each.
Activation—Unit 5 Day 1 August 5 th, 2013 Draw a coordinate plane and answer the following: 1. What are the new coordinates if (2,2) moves right 3 units?
Computer Graphics I, Fall 2010 Transformations.
15 Copyright © Cengage Learning. All rights reserved. Vector Analysis.
Time-dependent Shapes (II). IntroductionIntroduction Collision detection for time dependent parametric surfaces that are continuous and bounded in derivatives.
NUS CS 5247 David Hsu Configuration Space. 2 What is a path?
Parametric Equations Until now, we’ve been using x and y as variables. With parametric equations, they now become FUNCTIONS of a variable t.
8.4 Elimination using Multiplication To solve systems by elimination with a Multiplication twist.
3D Rendering 2016, Fall.
Rendering Pipeline Fall, 2015.
Copyright © Cengage Learning. All rights reserved.
3D Object Representation
8.6 – Parametric Equations and Graphs
3D Object Representation
Transformations Maria Garcia.
Presentation transcript:

Parametric Shapes & Lighting Jared Jackson Stanford - CS 348b June 6, 2003

- or - How I Went to Stanford Graduate School to Learn Basket Weaving

Shapes from Parametric Paths A parametric path in multiple dimensions requires only one variable Circle: u -> 0 to 1 x(u) = sin(2 pi u), y(u) = cos(2 pi u), z(u) = 0

Shapes from Parametric Paths Mapping a 2D path along the 3D path gives a 3D parametric shape For a torus, trace a circle along a parametric path This requires that we know the normal to the path

shapes/parametric.cc Create a shape using S-Expressions for –x, y, z –dx, dy, dz –Ex: sin (2 pi u) -> (sin (mult 2 (mult pi x))) Other parameters include: –Radius of the 2D shape –Twist angle of the 2D shape –Min and max of u –Number of samples to take along u

Parametric Torus Surface “parametric” “x” “mult 2 (cos (mult 2 (mult x pi)))” “y” “mult 2 (sin (mult 2 (mult x pi)))” “z” “0” “dx” “mult -1 (sin (mult 2 (mult x pi)))” “dy” “cos (mult 2 (mult x pi))” “dz” “0” “radius” “0.3” “samples” 20 “min” 0 “max” 1

Other Parameters: Shapes There are several built-in 2D shapes: –Circle (tube) –Square (box, disc) –Star –And more

Other Parameters: Complex Shapes Shapes can also be described as a 2D parametric path using S-Expressions “shape” “complex” “cx” “sub 1 (pow x 3)” “cy” “x” “csamples” 20

Other Parameters: Radius The radius is a scaling factor on the 2D shape that can also be specified as an S- Expression “radius” “0.2” “radius” “add 0.3 (mult 0.1 (cos (mult 2 (mult x pi))))”

Other Parameters: Twist The twist parameter rotates the 2D shape within its plane before mapping it along the path “twist” “cos (mult 2 (mult x pi))”

Basket Weaving x(u) = (r1) * cos(2 pi u) y(u) = 0.75 * u z(u) = (r1) * sin(2 pi u) radius(u) = 0.35

Parametric Lights Lights can also follow a 3D parametric path The sample points then act as point light sources Light intensity is divided across the number of sample points

Parametric Lights

A Final Image