You can not directly render 4d.Ĭreating games that include some 4d elements are quite math heavy and almost always require a lot of custom tools and math that suit your specific needs. So the 4th axis is just time and you can travel in the time dimension but the game graphics itself is completely 3d. Other games use the 4th dimension like our real world 4d space time. Those work and use the 4th dimension quite differently. Think of games like Magic 4d cube or Miegakure. There are countless different ways how to incoperate the 4th dimension into a game. So you usually have to calcualte the intersection volume / surface yourself. A single slice through a 4d sphere is a 3d sphere. In most cases you want to render a slice of the actual geometry. Though rendering 4d geometry is not that simply either since 4d has a new volume measurement (4d volume) that is one dimension higher than the normal 3d volume. Unfortunately I'm currently not home, so I can't access it right now. I once made a 5x5 matrix and Vector5 struct, however this was only for some rudimentary 4d graphics. Since Unity doesn't provide 5d vectors or matrices, you would need to create them yourself. For 4d space you would need a 5x5 homogeneous space. In 3d space we extend the space by one dimension and use a 4x4 matrix. You would use a homogeneous space just like in 3d. Though to actually have the same freedom you would need a Matrix5x5 class to do translation and rotation in 4d space. Well,simulating 4d space is not that much more difficult than 3d, however you need a projection from 4d to 3d space and than the normal 3d to 2d projection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |