Results 1 to 5 of 5

Thread: 4D Visualization

Threaded View

  1. #1

    Thread Starter
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    4D Visualization

    I've been interested in visualizing 4 dimensional space for a while. I know there are "hacks" that allow humans to visualize 4 dimensional data naturally. For instance, you can use time as one axis and view the changes in a 3 dimensional object over a period of time, which effectively gives you 4 dimensions of freedom. That's not what I'm after. I've wanted to see what the world would be like through the eyes of a being who lives in 4 spatial dimensions and 1 time dimension instead of the usual 3+1.

    So, I had an idea to try and improve my 4D visualization skills incrementally. A good start seems to be exploring a 4D cube. It's basically the 4D version of a square or a regular cube. As part of it, I wrote a very small and pretty junky program to try out hypercube exploration. It seemed like somebody might be interested in it, so I thought I would post it.


    Summary:
    You start at the "lower left" corner of a 4 dimensional grid, 3 squares on an edge. You have 4 axes of motion instead of the usual three. If you ignore one of the axes, you can explore a standard 3x3x3 cube. Adding the final axis in can be a bit mind-bending.

    Your view is a series of colored squares. The center square is your current position. The squares to the left and right are the cells next to your current position moving in the x-axis. Similarly, squares up and down relate to the y-axis; squares diagonally up and to the right / down and to the left relate to the z-axis; and squares diagonally down and the to the right / up and to the left relate to the w-axis.

    You move from grid cell to grid cell as you see fit to explore the cube. You move your current cell using the numpad. 4 and 6 move left and right in the x-axis; 8 and 2 move up and down in the y-axis; 1 and 9 move down and up in the z-axis; and (the crazy one) 7 and 3 move "up" and "down" in the w-axis. The escape key closes the program. You can also color cells using most of the letter keys (A = blue, S = green, D = teal, F = red, etc.) so you can leave patterns and more or less remember where you've been.


    Cutting the grid down to 2x2x2x2 makes it a bit more understandable, but I was able to trick myself into thinking of the grid as a 3D object so I had to move up to 3x3x3x3. One cool thing I've tried is coloring a 3x3x3 cube (made up of x, y, and z axes) so that all the outer edges are, say, blue, and the inner cell is, say red. In 3D, there should be no way to get to the red cell without crossing the blue cells. However, in 4D, the middle cell is connected to (depending on which 3x3x3 grid you picked) 1 or 2 other squares using the 4th dimension. So, you *can* enter the otherwise closed-off cube. This is analogous to flying over walls to get into the middle of, say, a castle--i.e. exploiting a non-blocked axis.
    Attached Files Attached Files
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width