Skip to content

You have been transported to a world with four spatial dimensions! Unfortunately, you are stuck inside a room with no exit. To pass the time, might as well practice seeing the fourth dimension.

License

Notifications You must be signed in to change notification settings

sreguyal/4D_Room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

4D Room

You have been transported to a world with four spatial dimensions! Unfortunately, you are stuck inside a room with no exit. To pass the time, might as well practice seeing the fourth dimension.

5cell3simplerot2

Introduction

What is the Fourth Spatial Dimension?

So, for those who are wondering how we can physically understand the fourth dimension, let's quickly go through the lower dimensions.

The 0th dimension is a point. Move in any direction and we get to the 1st dimension, a line.

While we are in the 1st dimension, we can move back and forth across the line. But we want more excitement in life, so we move away from the line. We have reached the 2nd dimension. You can imagine this as an infinite flat sheet of paper.

Finally, to get to the 3rd dimension, aka the dimension humans live in, we jump up off the 2D plane.

Now, by analogy, to get to the 4th dimension, we need to move in a direction we have not moved in yet. If we could just "jump" again in a new direction, we would enter the 4th dimension. If that sounds unimaginable... well, for us humans, it is (unless you happen to be Fields Medalist Bill Thurston, apparently). Our bodies are stuck in 3D space, after all. And to cap that short summary, here is a picture of a tesseract -- the 4D equivalent of a cube!

Tesseract Schlegel Wireframe

What is 4D Room?

You may have already seen the popular visualization of the fourth spatial dimension known as 4D Toys. To see a game demo and a video explanation of what the fourth spatial dimension is, check out this excellent video posted by the creator of 4D Toys.

So, how is 4D Room different? 4D Toys allows you to see the intersection of a 4D object with 3D space. 4D Room aims to show the projection of a 4D object into 3D space. To make the difference clearer, here is a picture showing the intersection and the projection of a 3D cube in a 2D plane.

A Cube

As you can see, the intersection only shows one 2D slice of the cube, and doesn't really give much understanding of its 3D nature. On the other hand, the projection is able to communicate some idea of the cube in its entirety by using tricks to give a sense of depth in an additional dimension.

We begin with representing the shapes mathematically in 4D, calculate the rotations of these shapes, and then display their projections into lower dimensions that are understandable for humans.

In the 4D Room

Regular 4D Shapes

Currently, we've created visualizations of all six convex regular 4-polytopes -- the four-dimensional equivalent of the platonic solids -- under simple rotations in 2D. Put simply, we have all six "standard" 4D shapes projected into 2D, so you can view them on your computing device screen.

Also, note that when we rotate a 4D object, we have to rotate about a plane, such as the XY-plane or the YW-plane (W is the 4th dimension). For more on that, refer to the end of this section. And now, without further ado, here are the visuals created using pygame in our Jupyter Notebook!

The six convex regular 4-polytopes are:

The tesseract / 8-cell. It is the 4D equivalent of the cube.

tesseract1simplerot mp4

We start with this polytope because it is perhaps the most comprehensible out of a set of quite incomprehensible figures. The tesseract hypersurface is bounded by 8 cubical cells, and in total the shape has 24 faces, 32 edges, and 16 vertices. This first gif depicts one simple rotation about the XY-plane. Although it is "about" a plane, in the same way that the earth rotates about its axis, within 3D space the rotation about a plane is only comprehensible as a rotation about an axis.

tesseract2simplerot

This gif depicts the application of two simple rotations about the XY-plane and YW-plane.

4-simplex / 5-cell. It is the 4D equivalent of the tetrahedron.

5cell2simplerot

16-cell. It is the 4D equivalent of the octahedron.

16cell3simplerot

24-cell. It has no equivalent in either a lower or higher dimension!

24cell

120-cell. It is made of 120 dodecahedral cells bounding the hypersurface, giving a grand total of 720 faces, 1,200 edges, and 600 vertices.

120cell2simplerot

600-cell. It is made of 600 tetrahedral cells bounding the hypersurface, producing 1,200 faces, 720 edges, and 120 vertices.

600cell2simplerot

More on Rotations in 4D

Rotation of 4D objects is done about a plane, or a 2D sheet. This can be understood by analogy by recalling that a polygon constrained to the 2D plane can only rotate about a point (0D), and a solid constrained to 3D space can only rotate about a line (1D). We can see that in order to rotate an object, it needs a pivot that is two dimensions lower. Following that logic, a 4D object will have to rotate about a 2D sheet. As the object rotates in 4D space, the 2D plane of rotation remains fixed.

Next Steps!

Our main end goal is to look at and interact with these 4D shapes in a VR environment. Being able to walk around these objects and interact with them in 3D VR space, rather than looking at them on a 2D computer screen, would be a significant increase in the amount of visual information from these 4D shapes we are able to retain. Any time you project an object to a lower dimension, you lose some information.

Maybe after this work is done, our 3D brains will be more capable of understanding the fourth dimension! So stay tuned!

About

You have been transported to a world with four spatial dimensions! Unfortunately, you are stuck inside a room with no exit. To pass the time, might as well practice seeing the fourth dimension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages