Demo of a 4D cross-section renderer
D C GLSL Makefile
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
.gitignore
Makefile
README.md
chunk.d
compass_fragment.glsl
compass_vertex.glsl
cross_section.d
fb_fragment.glsl
fb_geometry.glsl
fb_vertex.glsl
font.h
fragment.glsl
main.d
matrix.d
render.c
render_bindings.d
shapes.d
text.h
util.d
util.h
vertex.glsl
world.d

README.md

4D-demo

This is a 4D cross-sectional renderer, with a 3rd person "character" (currently a box) that you can explore the little 4D world through.

Building

Linux/OS X/BSD/etc.

Should be pretty straightforward, you'll just have to set your D compiler in the makefile (currently the flags are all formatted for LDC), and then just make (and to run the program, ./main).

Windows

Still figuring this bit out! I'll put instructions here once I do it, I swear.

Controls

(Subject to change!)

Hold left shift to go faster or left control to go slower for any movement or rotation.

  • W - forwards
  • A - left
  • S - backwards
  • D - right
  • Q - positive 4th direction
  • E - negative 4th direction
  • R - up
  • F - down
  • I - rotate up
  • J - rotate left
  • K - rotate down
  • L - rotate right
  • U - rotate "left" on the forwards-4th direction plane
  • O - rotate "right" on the forwards-4th direction plane
  • M - rotate "left" on the right-4th direction plane
  • . - rotate "right" on the right-4th direction plane
  • Z - zoom in
  • X - zoom out
  • 1 - return to original position/camera
  • Space - print some debug information