Académique Documents
Professionnel Documents
Culture Documents
Cylinder Reflections
The Mathematics Behind the Images
Salisbury University
despickler@salisbury.edu
jabergner@salisbury.edu
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 1 / 36
Anamorphic Art What is it?
Anamorphic Art
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 2 / 36
Anamorphic Art What is it?
Anamorphic Art
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 3 / 36
Anamorphic Art What is it?
Anamorphic Art
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 4 / 36
Anamorphic Art What is it?
Anamorphic Art
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 5 / 36
Anamorphic Art What is it?
Anamorphic Art
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 6 / 36
Anamorphic Art What is it?
Anamorphic Art
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 7 / 36
Anamorphic Art What is it?
Anamorphic Art
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 8 / 36
The Process Step 1: The Setup
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 9 / 36
The Process Step 1: The Setup
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 10 / 36
The Process Step 1: The Setup
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 11 / 36
The Process Step 1: The Setup
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 12 / 36
The Process Step 1: The Setup
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 13 / 36
The Process Step 2: Draw a line from pixel to viewer.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 14 / 36
The Process Step 3: Find the intersection with cylinder.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 15 / 36
The Process Step 3: Find the intersection with cylinder.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 16 / 36
The Process Step 4: Find the normal line from intersection.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 17 / 36
The Process Step 5: Find the reflection line from intersection.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 18 / 36
The Process Step 6: Find the intersection of reflection line and paper.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 19 / 36
The Process Step 6: Plot the point.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 20 / 36
The Process Step 6: Repeat for all pixels on the image.
The Process
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 21 / 36
The Mathematics Step 1: The Setup
The Mathematics
P = hpx , py , pz i
V = hvx , vy , vz i
r2 = x2 + y2
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 22 / 36
The Mathematics Step 2: Draw a line from pixel to viewer.
The Mathematics
L(t) = P + t(V − P)
= hpx , py , pz i + t(hvx , vy , vz i − hpx , py , pz i)
= hpx + t(vx − px ), py + t(vy − py ), pz + t(vz − pz )i
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 23 / 36
The Mathematics Step 3: Find the intersection with cylinder.
The Mathematics
r2 = x2 + y2
= (px + t(vx − px ))2 + (py + t(vy − py ))2
= px2 + py2 + t(−2px2 − 2py2 + 2px vx + 2py vy )
+ t 2 (px2 + py2 − 2px vx + vx2 − 2py vy + vy2 )
= at 2 + bt + c
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 24 / 36
The Mathematics Step 3: Find the intersection with cylinder.
The Mathematics
at 2 + bt + c − r 2 = 0
The Mathematics
L(ti ) = P + ti (V − P)
= hpx + ti (vx − px ), py + ti (vy − py ), pz + ti (vz − pz )i
= hIx , Iy , Iz i
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 26 / 36
The Mathematics Step 4: Find the normal vector from intersection.
The Mathematics
n = hIx , Iy , 0i
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 27 / 36
The Mathematics Step 5: Find the reflection vector from intersection.
The Mathematics
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 28 / 36
The Mathematics Step 5: Find the reflection vector from intersection.
The Mathematics
Proj = Projn v
n·v
= n
|n|2
So n·v
a= n−v
|n|2
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 29 / 36
The Mathematics Step 5: Find the reflection vector from intersection.
The Mathematics
r = v + 2a
n·v
= v+2 n−v
|n|2
2n · v
= n−v
|n|2
= hrx , ry , rz i
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 30 / 36
The Mathematics Step 5: Find the reflection line from intersection.
The Mathematics
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 31 / 36
The Mathematics Step 6: Find the intersection of reflection line and paper.
The Mathematics
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 32 / 36
The Mathematics Step 6: Find the intersection of reflection line and paper.
The Mathematics
Iz + trz = 0
gives
Iz
t=−
rz
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 33 / 36
The Mathematics Step 6: Find the intersection of reflection line and paper.
The Mathematics
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 34 / 36
The Mathematics Step 6: Plot the Point
The Mathematics
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 35 / 36
The Mathematics Who did the work?
The Mathematics
Drs. Spickler & Bergner (Salisbury Univ.) Cylinder Reflections November 12, 2011 36 / 36