{"id":19538,"date":"2018-01-13T23:49:42","date_gmt":"2018-01-14T04:49:42","guid":{"rendered":"http:\/\/blog.kenperlin.com\/?p=19538"},"modified":"2018-01-13T23:49:42","modified_gmt":"2018-01-14T04:49:42","slug":"cg-programming-for-non-programmers-lesson-11","status":"publish","type":"post","link":"http:\/\/blog.kenperlin.com\/?p=19538","title":{"rendered":"CG programming for non-programmers, lesson 11"},"content":{"rendered":"<p>Today we are going to animate our disk.<\/p>\n<p>One simple trick I like to use when animating things is to use the <code>sin()<\/code> function.  This is easy to do &#8212; you just need to make sure that <code>uTime<\/code> is somewhere in the expression that you pass into it.<\/p>\n<p>In today&#8217;s lesson, I do this in three different places, once for each thing I want to animate: the horizontal position, the vertical position and the size of the disk.<\/p>\n<p>You can see this lesson by <a href=http:\/\/mrl.nyu.edu\/~perlin\/cg\/lesson11>CLICKING HERE<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we are going to animate our disk. One simple trick I like to use when animating things is to use the sin() function. This is easy to do &#8212; you just need to make sure that uTime is somewhere in the expression that you pass into it. In today&#8217;s lesson, I do this in &hellip; <a href=\"http:\/\/blog.kenperlin.com\/?p=19538\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CG programming for non-programmers, lesson 11&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/19538"}],"collection":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19538"}],"version-history":[{"count":1,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/19538\/revisions"}],"predecessor-version":[{"id":19539,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/19538\/revisions\/19539"}],"wp:attachment":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19538"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}