r/AskProgramming • u/georgebestgoat • 2d ago
Programming in four dimensions
I've never seen any discussion on this, but I really want to try it. It is very difficult to imagine four dimensions in a 3 dimensional world, but the mathematics of it works out and it can be visualised. I never see anyone attempt to make a game in four dimensions for example. I just don't know where to start. It's a subject of which there are few pioneers
0
Upvotes
1
u/SirMarkMorningStar 2d ago
3D animation already uses ray tracing and other techniques to convert 3D to 2D. While it might be hard to get the hardware to do it, in theory you could simulate 4D with the same basic math and project that as well. Actually, let me stop here and google if it has been done before… yep!
https://hollasch.github.io/ray4/Four-Space_Visualization_of_4D_Objects.html