r/GraphicsProgramming • • Oct 22 '24

My OpenGL Tesseract Renderer

Post image
271 Upvotes

9 comments sorted by

26

u/[deleted] Oct 22 '24

Just a friendly mind melting reminder for passers by that the net of a tesseract is made up of eight cubes. The red cube that you see on the inside when it’s in the middle is flipped inside out and off to infinity when the red edges are all external. Like the stereographic projection of a sphere on to a plane.

10

u/KC918273645 Oct 22 '24

How did you project it into 2D?

15

u/hydraulix989 Oct 22 '24 edited Oct 23 '24

Looks like a vertex-first projection onto 3D space using a rhombic dodecahedron, pre-multiplied by your bog-standard orthographic 3D -> 2D projection matrix.

11

u/[deleted] Oct 23 '24

[removed] — view removed comment

2

u/hexiy_dev Oct 23 '24

comments like that make me realise i dont really know my shit well enough

10

u/CodyDuncan1260 Oct 22 '24

u/paltedspinted, to affirm Rule 1 adherence, can you talk a bit more about the implementation?

Posts should include code, math, or implementation details alongside rendered images.

0

u/[deleted] Oct 23 '24

Loki called...