{"id":510,"date":"2022-02-05T22:37:52","date_gmt":"2022-02-06T03:37:52","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/?p=510"},"modified":"2022-02-07T12:51:53","modified_gmt":"2022-02-07T17:51:53","slug":"merlerker-loop","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/merlerker\/02\/05\/merlerker-loop\/","title":{"rendered":"merlerker-Loop"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-571\" src=\"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/merlerker-cube-grid2.gif\" alt=\"\" width=\"640\" height=\"640\" \/><\/p>\n<p>I succeeded in learning to draw isometric cubes (using scale-shear-rotate) in p5 and to use p5.func and createLoop to make a seamless loop. I didn&#8217;t totally understand the t01 calculation in Golan&#8217;s code &#8211; <span style=\"text-decoration: line-through;\">it seems like it&#8217;s figuring out what frame we are on and normalizing it, but I would have thought the 3000 is loop duration*1000, but changing that value completely bugged out the animation so I assume it&#8217;s related to framerate in some way.<\/span> it&#8217;s the same as doing animLoop.progress (where are we in the animation from 0 to 1), but they don&#8217;t play well together for GIF export because they may be phase-offset.<\/p>\n<p>I took a long time to decide what to do for my loop, as I wanted to try to do something more conceptual, but in the end went with this simple visual. Could have better heeded the &#8220;This is a mini-project, so KEEP IT SIMPLE&#8221; note.<\/p>\n<p>It&#8217;s not a very complex animation, but it&#8217;s elegant and works well. <span style=\"text-decoration: line-through;\">An easy strategy to make it more visually impressive could just be to make a grid of the module I&#8217;ve built (taking a cue from our references), perhaps shifting the timing of each row so it&#8217;s a cascade \/ canon of sorts.<\/span> Edit: Added this.<\/p>\n<p><a href=\"https:\/\/openprocessing.org\/sketch\/1469781\">Code<\/a><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-517\" src=\"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5914-640x480.jpg\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5914-640x480.jpg 640w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5914-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5914-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5914-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5914-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5914-1200x900.jpg 1200w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-518\" src=\"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5915-640x480.jpg\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5915-640x480.jpg 640w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5915-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5915-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5915-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5915-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-content\/uploads\/2022\/02\/IMG_5915-1200x900.jpg 1200w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I succeeded in learning to draw isometric cubes (using scale-shear-rotate) in p5 and to use p5.func and createLoop to make a seamless loop. I didn&#8217;t totally understand the t01 calculation in Golan&#8217;s code &#8211; it seems like it&#8217;s figuring out what frame we are on and normalizing it, but I would have thought the 3000 &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/merlerker\/02\/05\/merlerker-loop\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;merlerker-Loop&#8221;<\/span><\/a><\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/posts\/510"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":7,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/posts\/510\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-212\/s2022\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}