{"id":20,"date":"2009-01-05T13:30:57","date_gmt":"2009-01-05T13:30:57","guid":{"rendered":"http:\/\/sugarandcyanide.com\/blog\/2009\/01\/05\/back-at-work\/"},"modified":"2009-01-05T13:30:57","modified_gmt":"2009-01-05T13:30:57","slug":"back-at-work","status":"publish","type":"post","link":"http:\/\/sugarandcyanide.com\/blog\/2009\/01\/05\/back-at-work\/","title":{"rendered":"back at work"},"content":{"rendered":"<p>I had planned on heading in to work Saturday and Sunday after I got back from Puerto Rico, but was told to enjoy the last two days of my vacation before coming in for two more hard weeks. Score.<\/p>\n<p>I did get some sleep in. A friend of TJ&#8217;s whom I met Friday night reminded me of keeping the room dark, so I&#8217;ve been playing with a sleep mask which seems to have somewhat of an effect.<\/p>\n<p>As far as my film goes, I spent most of Saturday in Lightwave 9. I&#8217;d had a lot of crashing issues before when using dynamics in the beginning; under 9.31 the cereal tutorial on the official videos site was impossible. However, all&#8217;s well now.<\/p>\n<p>There were two things that I wanted to use dynamics on: one is a sugar cube for this site. I tried a bunch of different ways to make sugar cubes using only textures \/ displacement with simple geometry, but nothing looked right. Then I had the idea of using hard-body dynamics on a bunch of tiny cubes and letting them settle into the shape I wanted.<\/p>\n<p>Interestingly, bounding-sphere collisions between the few hundred or so tiny cubes ended up creating a nicer-looking sugar cube than using bounding-box collisions. The boxes also took a magnitude longer to calculate.  Anyway, I won&#8217;t bother posting the interim images since it&#8217;ll become the header of this blog once get it finished.<\/p>\n<p>The other thing I wanted to test in LW was whether or not I could use it for the effects shot in my movie, the bridge collapse. I&#8217;m almost 100% sure I can do what I need with ClothFX and a hard-body FX link, and it&#8217;ll be easier to accomplish in LW than in anything else I have. People told me when I bought it that I was crazy for doing so, and still tell me that, but I keep finding new reasons that warrant my purchase.<\/p>\n<p>On the Cinema 4D front I made some scripting progress. The supplied language, COFFEE, lacks a lot of what I consider necessary utility functions, things like easily applying constraints or even something as simple as being able to tell which object was selected first in a list. Yesterday I got through making a function for applying IK constraints. It&#8217;s really simple, taking the starting object, the ending object, the goal object, and the pole vector object as parameters. I went through a few versions of the function (again, it&#8217;s really simple &#8212; only five or six lines long) until I was happy with how it worked in the scheme of the whole script.<\/p>\n<p>The next thing is aim constraints. They&#8217;re a little harder because of how C4D handles them, but I think I sorted out one of the issues I was having late last night, so all that&#8217;s left is to test out my idea.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had planned on heading in to work Saturday and Sunday after I got back from Puerto Rico, but was told to enjoy the last two days of my vacation before coming in for two more hard weeks. Score. I did get some sleep in. A friend of TJ&#8217;s whom I met Friday night reminded [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-short-film-blog"],"_links":{"self":[{"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":0,"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sugarandcyanide.com\/blog\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}