{"id":836,"date":"2014-04-15T18:41:59","date_gmt":"2014-04-15T16:41:59","guid":{"rendered":"http:\/\/marctenbosch.com\/news\/?p=836"},"modified":"2023-03-02T03:46:25","modified_gmt":"2023-03-02T01:46:25","slug":"what-is-that-shape-at-the-end-of-the-trailer-hd-screenshot","status":"publish","type":"post","link":"https:\/\/marctenbosch.com\/news\/2014\/04\/what-is-that-shape-at-the-end-of-the-trailer-hd-screenshot\/","title":{"rendered":"What is that shape at the end of the trailer?"},"content":{"rendered":"\n<p><a title=\"Miegakure Trailer Screenshot\" href=\"https:\/\/www.miegakure.com\/data\/MK120w.png\"><img decoding=\"async\" class=\"bcenter\" src=\"https:\/\/www.miegakure.com\/data\/MK120wThumb.png\" alt=\"Miegakure Trailer Screenshot\"><\/a><\/p>\n<p>The shape at the end of the <a title=\"Miegakure Trailer\" href=\"https:\/\/www.youtube.com\/watch?v=KhbUvoxjxIg\">trailer<\/a> is called a <a href=\"http:\/\/en.wikipedia.org\/wiki\/120-cell\"><strong>120-cell<\/strong><\/a> (or Polydodecahedron, or Hecatonicosachoron, which sounds cooler, but a bit too hard to pronounce). It is actually modified a bit, but first let me explain some basics.<\/p>\n<p>You see, a 3D object has a 2D surface, whereas a 4D object has a 3D surface (an nD object has an (n-1)D surface). So while a dodecahedron has 12 faces which are pentagons, a 120-cell has 120 &#8220;faces&#8221; which are dodecahedra (called cells, since they are 3D).<\/p>\n<p>The 120-cell is a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Convex_regular_4-polytope\">Convex Regular Polychoron<\/a>, the 4D analogs of the 3D <a href=\"http:\/\/en.wikipedia.org\/wiki\/Platonic_solid\">Platonic Solids<\/a> (Tetrahedron, Cube, Octahedron, Dodecahedron, Icosahedron). All the faces of a 3D platonic solid are the same 2D regular polygon, while all the cells of a &#8220;4D platonic solid&#8221; are the same 3D platonic solid! It&#8217;s basically building shapes out of the the most symmetrical elements each time.<\/p>\n<p>Interestingly, there are infinitely many regular 2D polygons (just divide the circle equally into n sides: triangle, square, pentagon, etc&#8230;), 5 regular 3D convex polyhedra, 6 regular 4D convex polychora, but in 5D or more there are only 3 types! It appears that building shapes this way gets more and more complex until it is no longer possible, save for a few very generalizable cases (the hypercube, for example).<\/p>\n<p><a title=\"Leonardo da Vinci's Polyhedra\" href=\"http:\/\/www.georgehart.com\/virtual-polyhedra\/leonardo.html\"><img decoding=\"async\" style=\"float: left; width: 173px; margin: 20px;\" src=\"http:\/\/marctenbosch.com\/miegakure\/data\/leonardo-ti.jpg\" alt=\"Leonardo da Vinci's Polyhedra\"><\/a><\/p>\n<p>But what you see in the game is not quite a 120-cell, it is actually a 120-cell with a hole inside each cell. My friend <a title=\"Vi Hart's Website\" href=\"http:\/\/vihart.com\/\">Vi Hart<\/a> [<a title=\"Vi Hart's Youtube channel\" href=\"https:\/\/www.youtube.com\/user\/Vihart\">Youtube Channel<\/a>] came up with the idea to do this, inspired by <a title=\"Leonardo da Vinci's Polyhedra\" href=\"http:\/\/www.georgehart.com\/virtual-polyhedra\/leonardo.html\">drawings by Leonardo Da-Vinci<\/a>.<\/p>\n<p>In the drawings, a hole has been cut inside each 2D face, or rather only the <em>edges <\/em> are visible. In the game a hole has been cut inside each 3D cell (each cell is hollow), or rather only the <em>faces<\/em> are visible.<\/p>\n<p>The way this is implemented in the game engine is using our 4D Mesh Structure (a 3D mesh is made out of triangles, a 4D mesh is made out of tetrahedra).<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/imgur.com\/lzaMeXm\"><img decoding=\"async\" style=\"float: right; width: 170px; margin: 20px;\" src=\"http:\/\/i.imgur.com\/lzaMeXm.gif\" alt=\"Banana MRI\"><\/a><\/p>\n<p>What you see is a 3D slice of a 4D object. While the 4D object is static, the 3D object you see transforms as the slice changes, similar to what you see in a moving slice produced by an MRI machine, but in one higher dimension (The image on the right is an MRI slicing though a banana flower).<\/p>\n<p>&nbsp;<\/p>\n<p><!-- img src=\"http:\/\/www.miegakure.com\/data\/MK120animLargest.gif\" alt=\"\" class=\"bcenter\" \/ --><\/p>\n<p><iframe loading=\"lazy\" class=\"bcenter\" src=\"https:\/\/gfycat.com\/ifr\/ScentedElegantAmericanratsnake?controls=0\" scrolling=\"no\" width=\"640\" height=\"360\" frameborder=\"0\"><\/iframe>The reason the number of faces changes is that depending on which slice you take, you might go though a different number of cells (each cell you slice will produce a face). If you slice the 4D object near its tip, you will get a small 3D object. If you slice the 4D object near the center, you will get a larger object. This is similar to slicing a 3D sphere with a 2D plane. Use the following sliders to slice through a dodecahedron, and its &#8220;Davinci&#8217;d&#8221; version. (Note that in the game we are rotating the 3D slice whereas here I am letting you move a 2D slice up and down, but the morphing effect is the same).<\/p>\n<script>\nfunction ChangeSlider(name) { \n    document.getElementById(name + 'Img').src = \"https:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/\" + name + '\/' + (\"0\" + document.getElementById(name + 'Slider').value).slice(-2) + \".png\";\n    document.getElementById(name + 'ImgSliced').src = \"https:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/\" + name + 'Sliced\/' + (\"0\" + document.getElementById(name + 'Slider').value).slice(-2) + \".png\";\n}\nfunction PreloadFolder(base)\n{\n    images = new Array()\n    for (i = 0; i < 60; i++) \n    {\n        images[i] = new Image()\n        images[i].src = base + (\"0\" + i).slice(-2) + \".png\"\n    }\n     return images;\n}\nimgA = PreloadFolder(\"https:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/Dodecahedron\/\");\nimgB = PreloadFolder(\"https:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/DodecahedronSliced\/\");\nimgC = PreloadFolder(\"https:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/DodecahedronDV\/\");\nimgD = PreloadFolder(\"https:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/DodecahedronDVSliced\/\");\n    <\/script>\n<div style=\"width: 612px; height: 410px; margin: 5px; position: relative;\"><img decoding=\"async\" id=\"DodecahedronImg\" style=\"width: 512px; height: 384px; margin: 0; padding: 0;\" src=\"http:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/Dodecahedron\/01.png\"><br><img decoding=\"async\" id=\"DodecahedronImgSliced\" style=\"width: 200px; height: 200px; position: absolute; top: 0; right: 0; border: 2px solid black; margin: 0; padding: 0;\" src=\"http:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/DodecahedronSliced\/30.png\"><br><input id=\"DodecahedronSlider\" style=\"width: 612px; margin: 0; padding: 0;\" max=\"60\" min=\"1\" type=\"range\" value=\"30\" onchange=\"ChangeSlider('Dodecahedron')\"><\/div>\n<p>&nbsp;<\/p>\n<div style=\"width: 612px; height: 410px; margin: 5px; position: relative;\"><img decoding=\"async\" id=\"DodecahedronDVImg\" style=\"width: 512px; height: 384px; margin: 0; padding: 0;\" src=\"http:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/DodecahedronDV\/01.png\"><br><img decoding=\"async\" id=\"DodecahedronDVImgSliced\" style=\"width: 200px; height: 200px; position: absolute; top: 0; right: 0; border: 2px solid black; margin: 0; padding: 0;\" src=\"http:\/\/marctenbosch.com\/miegakure\/data\/SliceImgs\/DodecahedronDVSliced\/30.png\"><br><input id=\"DodecahedronDVSlider\" style=\"width: 612px; margin: 0; padding: 0;\" max=\"58\" min=\"1\" type=\"range\" value=\"30\" onchange=\"ChangeSlider('DodecahedronDV')\"><\/div>\n<script>\ndocument.getElementById('DodecahedronDV' + 'Slider').value = 30; ChangeSlider('DodecahedronDV');\ndocument.getElementById('Dodecahedron' + 'Slider').value = 30; ChangeSlider('Dodecahedron');\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>The shape at the end of the trailer is called a 120-cell (or Polydodecahedron, or Hecatonicosachoron, which sounds cooler, but a bit too hard to pronounce). It is actually modified a bit, but first let me explain some basics. You see, a 3D object has a 2D surface, whereas a 4D object has a 3D [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-836","post","type-post","status-publish","format-standard","hentry","category-miegakure"],"_links":{"self":[{"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/posts\/836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/comments?post=836"}],"version-history":[{"count":57,"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/posts\/836\/revisions"}],"predecessor-version":[{"id":3194,"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/posts\/836\/revisions\/3194"}],"wp:attachment":[{"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/media?parent=836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/categories?post=836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marctenbosch.com\/news\/wp-json\/wp\/v2\/tags?post=836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}