Wash Presentation

Embed Size (px)

Citation preview

  • 7/28/2019 Wash Presentation

    1/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Mathematics Behind Anamorphic Art

    Nicole Massarelli (Dr. Don Spickler)

    Salisbury University

    March 26, 2010

    [email protected]

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    http://goforward/http://find/http://goback/
  • 7/28/2019 Wash Presentation

    2/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    What is Anamorphic Art?

    Distorting an image

    Only visible fromsingle vantage point

    Renaissance andVictorian Era

    Earliest examplesfrom Leonardo daVinci

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    http://find/http://goback/
  • 7/28/2019 Wash Presentation

    3/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Examples of Anamorphic Art

    Julian Beever

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    http://find/
  • 7/28/2019 Wash Presentation

    4/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Examples of Anamorphic Art

    Gala Contemplating theMediterranean Sea

    Salvador Dali

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    Ab A hi A

    http://find/
  • 7/28/2019 Wash Presentation

    5/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Examples of Anamorphic Art

    Istvan Orosz

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    Ab t A hi A t

    http://find/
  • 7/28/2019 Wash Presentation

    6/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    General Technique

    Goal: Replicate the artistic

    process for mirrored surfaces

    Find equation for surfaceDefine vector from viewer topixel

    Find intersection

    Calculate normal vectorFind reflection vector

    Determine printingcoordinates

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic Art

    http://find/
  • 7/28/2019 Wash Presentation

    7/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Cylinder

    Set-up

    Choose viewer

    position (x0, y0, z0)

    Write equation forcylinder x2 + y2 = r2

    Place image inside

    cylinderChoose arbitrary pixelon image (xp, yp, zp)

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic Art

    http://find/
  • 7/28/2019 Wash Presentation

    8/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Cylinder

    Finding the Intersection

    Write vparametrically

    xv = xp +(x0 xp) t = xp + at

    yv = yp +(y0 yp) t = yp + bt

    zv = zp +(z0 zp) t = zp + ct

    Plug parametricequations into

    cylinder equationNicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic Art

    http://find/
  • 7/28/2019 Wash Presentation

    9/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Cylinder

    Finding the Intersection

    (a2 + b2)t2 + 2(xpa + ypb)t + x2p

    + y2p r2 = 0

    Solve using quadratic formula

    Plug t into parametric equations of v

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic Art

    http://find/
  • 7/28/2019 Wash Presentation

    10/21

    About Anamorphic ArtCylinder

    The SphereGeneralizations

    Java Swing Program

    Cylinder

    Finding the Intersection

    Determine pointclosest to viewer

    Distance formula

    Point of intersection(x1, y1, z1)

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic Art

    http://goforward/http://find/
  • 7/28/2019 Wash Presentation

    11/21

    pCylinder

    The SphereGeneralizations

    Java Swing Program

    Cylinder

    Calculating the Normal

    Vector

    Find point on z-axisat same height as(x1, y1, z1)

    (0, 0, z1)

    Calculate vectorbetween these points

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic Art

    http://find/http://goback/
  • 7/28/2019 Wash Presentation

    12/21

    pCylinder

    The SphereGeneralizations

    Java Swing Program

    Cylinder

    Find Reflection Vector

    Project v onto nn = projnv =

    nv|n|2

    n

    Solve for a usingvector addition

    a = n

    vr = v + 2a

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic Art

    http://find/
  • 7/28/2019 Wash Presentation

    13/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Cylinder

    Printing the Pixel

    Write r parametrically

    xr = x1 + dtyr = y1 + et

    zr = z1 + ft

    Determine where r

    intersects xy-planeSolve zr = 0 for t

    Printing coordinates(xr, yr, 0)

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtC

    http://find/
  • 7/28/2019 Wash Presentation

    14/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Sphere

    Viewing Image on

    Mirrored Sphere

    Set sphere on

    pedestal inside boxFix viewer position

    Follow generalalgorithm

    Key DifferencesFinding normalvectorChecking eachface for

    intersection pointsNicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtC li d

    http://find/
  • 7/28/2019 Wash Presentation

    15/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Other Surfaces

    Generalization

    Triangulation

    methods for meshsurfaces- Platonicsolids

    Key Differences

    Barycentric

    coordinates usedto find intersectionNormal vector iscross product oftwo edges

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtC li d

    http://find/
  • 7/28/2019 Wash Presentation

    16/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Curvature

    Convex Surfaces

    We can only useconvex surfaces

    Concave surfaces givedouble images

    Proof intwo-dimensional case

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtCylinder

    http://find/
  • 7/28/2019 Wash Presentation

    17/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Anamorphic Art Converter

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtCylinder

    http://find/http://goback/
  • 7/28/2019 Wash Presentation

    18/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Sample Program Output

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtCylinder

    http://find/
  • 7/28/2019 Wash Presentation

    19/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Cylinder Model

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtCylinder

    http://find/
  • 7/28/2019 Wash Presentation

    20/21

    CylinderThe Sphere

    GeneralizationsJava Swing Program

    Link to Program

    http://facultyfp.salisbury.edu/despickler/personal/

    CylinderReflectionGenerator.asp

    Created under the direction of Dr. Don Spickler

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    About Anamorphic ArtCylinder

    http://find/http://goback/
  • 7/28/2019 Wash Presentation

    21/21

    yThe Sphere

    GeneralizationsJava Swing Program

    References

    Differential Geometry by John Oprea

    Linear Algebra by David C. LayJava Swing by Marc Loy, Robert Eckstein et al

    Calculus: Early Transcendentals by James Stewart

    3D Computer Graphics:A Mathematical Introduction with

    OpenGL by Samuel R. Buss

    Nicole Massarelli (Dr. Don Spickler) Mathematics Behind Anamorphic Art

    http://find/