Simple 4D Projector 1.1

HXCTCreations - Custom level - from Android
PlayEdit25 players liked this.Log in to like this level.

Displays wireframe of 2D perspective projection of 3D perspective projection of 4D perspective projection generated within the script. Still a WIP though, but it works! Currently the only object available is the hypercube.

Sliders from left to right rotate plane:
XZ, YZ, XY, XW, YW, ZW

-----Changelog:
---v1.0
-Initial release
---v1.1
-Re-written script to macth the 3D counterpart.

READ:

In 4D hyperspace there are 4 axis, 3 of them are normal axis in our 3D world (X, Y, Z) and the other one is W axis which is perpendicular to our 3D space. Seems impossible? Well, it's becaus our vision is only two dimensional. The case is the same as the Z axis is perpendicular to 2D plane (X, Z) and 2D beings (assume that they are exist) thinks that is impossible since their vision is limited to only one dimensional. (Shortly, an n-dimensional being has (n-1)-dimensional vision.

4D objects are much more complex than 3D objects due to extra degree of freedom. An 4D object is bounded by 3 dimensional faces called "cells". For example a hypercube (or tesseract, or 8-cell, or 4-cube, 4 dimensional analog of the cube) which is shown in the projector is bounded 8 cubical cells. It's like a cube is bounded 6 square faces, and a square is bounded by 4 line segments.

Cartesian coordinates for each vertex in hypercube are permutation of:
(+-1,+-1,+-1,+-1)

Normally when you look at the hypercube down the W axis, it's look like a cube inside another cube. The rest of the cubes are between those cubes, but they don't look like cubes. It's because the foreshortening effect of the perspective projection
The sliders to the left control rotation of x,y,z axis. If you use those sliders, the hypercube rotates just in first three dimension and nothing weird happens, just two cubes fixed to each other rotating in 3D.
Weird thing happens when you use sliders to the right. These sliders controls rotations involving W axis.

Views: 1610 Downloads: 665 Unique objects: 1 Total objects: 59

Discuss this level

Log in to comment on this level.
  • dOUBLEbAD: This is a nice revisit
  • JOELwindows7: Another insane Awesome!
  • HXCTCreations: @Galvatron66: well, technically it is true.
  • Galvatron66: @HXCTCreations: so, is it hard for a 2 dimensional creature to see something 3 dimensional?
  • woodnut2: You never cease to amaze, WOW !
  • builder123: Very nice job!
  • Galvatron66: I can only see a pyramid with its top connected to a taller pyramid
  • Hobbit: It's a Frinkahedron! Mavonglavon!!!
  • The Ohio One: Whhhy! My mind! It's burning!!
  • JOELwindows7: Add thickness this too!
  • ak10670 - 2: It hurts my eyes
  • leo3065: @HXCTCreations: slice is the cross section of two different objects, in mathematical way is solving equation... I think if would be possible using matrices for transformation.
  • HXCTCreations: @leo3065: If you can figure out how to do it... Why not?
  • leo3065: By the way I read the code. Brilliant programming.
  • leo3065: @HXCTCreations: or maybe I borrow your code and do it?
  • HXCTCreations: @leo3065: Idk... maybe when I have time, I'll start with 2D slices first...
  • leo3065: This is awesome. By the way can you do 2D projection of 3D slice of 4D object? I'm curious...
  • JOELwindows7: Wow, great Duper Awesome explanation
  • Coolblocks749: This is so trippy...

LEVEL ID: 22667