Imaginary Cubes

Here's a demo!

Using the mouse wheel (scrolling) or pinch in/out will move the camera further or closer from the center of the sketch.

Left-clicking and dragging or swipe motion will rotate the camera position about the center of the sketch.

Right-clicking and dragging or multi-swipe will pan the camera position without rotation.

demo needs work

  • So far only works with cubes, need to be able to replace each cube with a shape or fractal set
  • add selector for different shapes - the 16 representative minimal convex imaginary cubes
  • needs to only respond to mouse wheel when mouseover
  • camera, or cube, should start in appropriate place in scene
  • add slider to increment/decrement number of elements - this'll require a backtracking algorithm for generating latin squares
  • find out how to show shadows in p5
  • maybe add an axis line?
  • maybe add the option for different stylings?

Imaginary... cubes?

So, I watched a video on YouTube, this one!

So. In simplest terms, an imaginary cube is a 3d shape that casts the shadow of a cube but is not a cube itself. In less simple terms: an imaginary cube is a 3d object whose orthagonals - along the x, y and z axis - all have square projections - just like a cube.