4D Mesh Viewer [ROTATE THROUGH TIME]
Posted: Sun Mar 31, 2013 3:27 am
I was going to make a 3D mesh viewer, but since images can store four values per pixel, I thought "Why not?"
I don't actually know if this would work if I had any properly formatted meshes, because the one I tried to make failed miserably. Instead, I use some images that I randomly generated instead of carefully plotted actual meshes. My format has one image for textures, one with information about the size and location of the textures, one for events (four-dimensional vertices), one to pair up textures and events to be considered the same object at different events & to interpolate between them, and finally one that describes a set of three event pairs and one texture pair that make up a triangular prism in four dimensions.
I am thinking about making a simpler 3D mesh viewer, because this got a bit out of hand.
I also made some great modular vector and matrix mini-libraries.
Controls:
E&Q = +&- w axis (time)
W&S = +&- z axis
Space&LShift = +&- y axis
D&A = +&- x axis
Y&H = Rotate XW axis
U&J = Rotate YW axis
I&K = Rotate ZW axis
Right click = rotate camera on x and y axis
When the program starts, hold the E key to change the time slice of the random 4D mesh in view (note that it does not exist at t=0).
I don't actually know if this would work if I had any properly formatted meshes, because the one I tried to make failed miserably. Instead, I use some images that I randomly generated instead of carefully plotted actual meshes. My format has one image for textures, one with information about the size and location of the textures, one for events (four-dimensional vertices), one to pair up textures and events to be considered the same object at different events & to interpolate between them, and finally one that describes a set of three event pairs and one texture pair that make up a triangular prism in four dimensions.
I am thinking about making a simpler 3D mesh viewer, because this got a bit out of hand.
I also made some great modular vector and matrix mini-libraries.
Controls:
E&Q = +&- w axis (time)
W&S = +&- z axis
Space&LShift = +&- y axis
D&A = +&- x axis
Y&H = Rotate XW axis
U&J = Rotate YW axis
I&K = Rotate ZW axis
Right click = rotate camera on x and y axis
When the program starts, hold the E key to change the time slice of the random 4D mesh in view (note that it does not exist at t=0).