63
Henry Segerman Oklahoma State University Two Tales of Mathematical Virtual Reality

Two tales of mathematical virtual reality

Embed Size (px)

Citation preview

Page 1: Two tales of mathematical virtual reality

Henry SegermanOklahoma State University

Two Tales of Mathematical Virtual Reality

Page 2: Two tales of mathematical virtual reality

Hypernom: Mapping VR HeadsetOrientation to S3

Vi Hart Andrea HawksleyCommunications Design Group Communications Design Group

Henry Segerman Marc ten BoschDepartment of Mathematics MTB Design Works, Inc.Oklahoma State University

Page 3: Two tales of mathematical virtual reality

Hypernom is a virtual reality game/experience that uses the VRheadset (or phone) orientation in an unusual way.

There are three degrees of freedom in the orientation of a headset(or phone, camera, etc.).

The idea of Hypernom is to use headset orientation to navigate theplayer through a three-dimensional space.

Page 4: Two tales of mathematical virtual reality

Hypernom is a virtual reality game/experience that uses the VRheadset (or phone) orientation in an unusual way.

There are three degrees of freedom in the orientation of a headset(or phone, camera, etc.).

The idea of Hypernom is to use headset orientation to navigate theplayer through a three-dimensional space.

Page 5: Two tales of mathematical virtual reality

Hypernom is a virtual reality game/experience that uses the VRheadset (or phone) orientation in an unusual way.

There are three degrees of freedom in the orientation of a headset(or phone, camera, etc.).

The idea of Hypernom is to use headset orientation to navigate theplayer through a three-dimensional space.

Page 6: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 7: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 8: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 9: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 10: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 11: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 12: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 13: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 14: Two tales of mathematical virtual reality

The set of all orientations fits in a ball

Opposite points on the boundary of the ball are identified, so thespace is real projective space, RP3.

Page 15: Two tales of mathematical virtual reality

The same construction of gluing opposite points on the boundaryof a disk makes the real projective plane, RP2.

RP2 is double covered by the 2-sphere, S2. In the same way, RP3

is double covered by the 3-sphere, S3.

Page 16: Two tales of mathematical virtual reality

The same construction of gluing opposite points on the boundaryof a disk makes the real projective plane, RP2.

RP2 is double covered by the 2-sphere, S2. In the same way, RP3

is double covered by the 3-sphere, S3.

Page 17: Two tales of mathematical virtual reality

What to draw on screen: use stereographic projection

ρ : S2 → R2 ρ(x , y , z) =(x , y)

1− z

Page 18: Two tales of mathematical virtual reality

2D example: draw the boundary of a cube on R2

First radially project the cube to the sphere...

Page 19: Two tales of mathematical virtual reality

2D example: draw the boundary of a cube on R2

First radially project the cube to the sphere...

Page 20: Two tales of mathematical virtual reality

2D example: draw the boundary of a cube on R2

Then stereographically project to R2.

Page 21: Two tales of mathematical virtual reality

2D example: draw the boundary of a cube on R2

Then stereographically project to R2.

Page 22: Two tales of mathematical virtual reality

Do the same thing one dimension up: hypercube

ρ : S3 → R3 ρ(x , y , z ,w) =(x , y , z)

1− w

Page 23: Two tales of mathematical virtual reality

Do the same thing one dimension up: 120-cell

Page 24: Two tales of mathematical virtual reality

120-cell Hypernom instruction manual

How to eat all of the cells.

Page 25: Two tales of mathematical virtual reality

120-cell Hypernom instruction manual

How to eat all of the cells.

Page 26: Two tales of mathematical virtual reality

120-cell Hypernom instruction manual

How to eat all of the cells.

Page 27: Two tales of mathematical virtual reality

120-cell Hypernom instruction manual

How to eat all of the cells.

Page 28: Two tales of mathematical virtual reality

120-cell Hypernom instruction manual

How to eat all of the cells.

Page 29: Two tales of mathematical virtual reality

120-cell Hypernom instruction manual

How to eat all of the cells.

Page 30: Two tales of mathematical virtual reality

120-cell Hypernom instruction manual

How to eat all of the cells.

Page 31: Two tales of mathematical virtual reality

hypernom.com

I Works on iOS, Android and desktopI Paper at archive.bridgesmathart.org/2015/

bridges2015-387.htmlI Source code at github.com/vihart/hypernom

Page 32: Two tales of mathematical virtual reality

Squares that look round:Transforming Spherical Images

Saul Schleimer Henry SegermanMathematics Institute Department of MathematicsUniversity of Warwick Oklahoma State University

Page 33: Two tales of mathematical virtual reality

Equirectangular projection

.

Page 34: Two tales of mathematical virtual reality

Equirectangular projection

.

Page 35: Two tales of mathematical virtual reality

Stereographic projection ρ : S2 → C

ρ(u, v ,w) =u + iv

1− w

Page 36: Two tales of mathematical virtual reality

Transform by z 7→ 2z (or pull back by z 7→ z/2)

Page 37: Two tales of mathematical virtual reality

Transform by z 7→ 2z (or pull back by z 7→ z/2)

Page 38: Two tales of mathematical virtual reality

.

Page 39: Two tales of mathematical virtual reality

Pull back by z 7→ z2

Page 40: Two tales of mathematical virtual reality

Pull back by z 7→ z2

Page 41: Two tales of mathematical virtual reality

....

Page 42: Two tales of mathematical virtual reality

The Droste effect

Page 43: Two tales of mathematical virtual reality

The Droste effect

Page 44: Two tales of mathematical virtual reality

Droste annulus

Apply log, then tile horizontally, apply exp.....

Page 45: Two tales of mathematical virtual reality

Droste annulus

Apply log, then tile horizontally, apply exp.....

Page 46: Two tales of mathematical virtual reality

Twisted Droste effect (Escher, De Smit-Lenstra)

Page 47: Two tales of mathematical virtual reality

Twisted Droste effect (Escher, De Smit-Lenstra)

..

Page 48: Two tales of mathematical virtual reality

Twisted Droste effect (Escher, De Smit-Lenstra)

..

Page 49: Two tales of mathematical virtual reality

Other kinds of “twist”, in analogy with the Droste effectThe Weierstrass ℘–function (for the square lattice) can be given as

℘i (z) =1z2 +

∑′(

1(z − w)2

− 1w2

),

where the sum ranges over the non-zero Gaussian integers w ∈ Z[i ].

The function is doubly periodic: ℘i (z + 1) = ℘i (z + i) = ℘i (z), sowe can view it as a map from the torus to C.

Page 50: Two tales of mathematical virtual reality

Other kinds of “twist”, in analogy with the Droste effectThe Weierstrass ℘–function (for the square lattice) can be given as

℘i (z) =1z2 +

∑′(

1(z − w)2

− 1w2

),

where the sum ranges over the non-zero Gaussian integers w ∈ Z[i ].

The function is doubly periodic: ℘i (z + 1) = ℘i (z + i) = ℘i (z), sowe can view it as a map from the torus to C.

Page 51: Two tales of mathematical virtual reality

Other kinds of “twist”, in analogy with the Droste effectThe Weierstrass ℘–function (for the square lattice) can be given as

℘i (z) =1z2 +

∑′(

1(z − w)2

− 1w2

),

where the sum ranges over the non-zero Gaussian integers w ∈ Z[i ].

The function is doubly periodic: ℘i (z + 1) = ℘i (z + i) = ℘i (z), sowe can view it as a map from the torus to C.

Page 52: Two tales of mathematical virtual reality

Charles Sanders Pierce used the Weierstrass ℘–function onspherical images in 1879.

https://skfb.ly/NJRx

Page 53: Two tales of mathematical virtual reality

Charles Sanders Pierce used the Weierstrass ℘–function onspherical images in 1879.

https://skfb.ly/NJRx

Page 54: Two tales of mathematical virtual reality

Our version of a torus Earth

https://skfb.ly/MYpC

Page 55: Two tales of mathematical virtual reality

Our version of a torus Earth

https://skfb.ly/MYpC

Page 56: Two tales of mathematical virtual reality

Tile, take a different square

Scale by 1+ i

Page 57: Two tales of mathematical virtual reality

Tile, take a different square, then map back to the sphereusing a Schwarz-Christoffel map.

Scale by 1+ i , composition is z 7→ i2(−z + 1/z).

.

Page 58: Two tales of mathematical virtual reality

Tile, take a different square, then map back to the sphereusing a Schwarz-Christoffel map.

Scale by 2, composition is z 7→ (z2+1)24z(z2−1) .

.

Page 59: Two tales of mathematical virtual reality

Tile, take a different square, then map back to the sphereusing a Schwarz-Christoffel map.

Scale by 2+ i , composition is z 7→ z ((−1+2i)+z2)2

(−i+(2+i)z2)2.

..

Page 60: Two tales of mathematical virtual reality

Hexagonal variationInstead, we can pull back by the Weierstrass function ℘ω, whereω = eπi/3, giving a hexagonal torus.

Page 61: Two tales of mathematical virtual reality

Tile, take a different hexagon

Scale by 1+ ω

Page 62: Two tales of mathematical virtual reality

Tile, take a different hexagon, then map back to the sphereusing a Schwarz-Christoffel map.

Scale by 1+ ω, composition is z 7→ z3+√

23ω·z2 .

.,

Page 63: Two tales of mathematical virtual reality

Thanks!

I Videos at youtube.com/user/henrysegI Paper at arxiv.org/abs/1605.01396I (Some) source code at

github.com/henryseg/spherical_image_editing