{"id":28,"date":"2011-01-21T17:06:27","date_gmt":"2011-01-21T17:06:27","guid":{"rendered":"http:\/\/www.simonglas.net\/wordpress\/?p=28"},"modified":"2016-11-21T11:54:50","modified_gmt":"2016-11-21T11:54:50","slug":"the-quest-for-speed","status":"publish","type":"post","link":"http:\/\/simonglas.net\/?p=28","title":{"rendered":"The Quest for Speed"},"content":{"rendered":"<p><a href=\"http:\/\/simonglas.net\/wp-content\/uploads\/2011\/01\/RenderTest.jpg\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/simonglas.net\/wp-content\/uploads\/2011\/01\/RenderTestSml.jpg\" alt=\"\" \/> <\/a><br \/>\nOriginally, the image &#8216;The Contract&#8217; was conceived incorporating a slight camera move. A moving camera can make the image feel more alive, you feel more &#8216;there&#8217; when looking at a moving shot than looking at a still image. Sadly, when rendering time came that idea had to be abandoned. It took two days to render one still at 1080 HD, and the volumetric pass (one frame at 720 HD), which was only used for masking purposes, took nearly a week! With render times like these, rendering a ten second clip would take close to 6 years. Goodbye camera move&#8230;<br \/>\nUntil last week. Since the only light which is lighting the scene is far outside the room and behind the camera the scene has to be rendered with Global Illumination (GI), and GI is slooow. The search is thus for a fast GI renderer. I first tried to use Octane for this, but ran into the limitations of my video card (see my previous post). With this option removed I turned to <a href=\"http:\/\/www.kraytracing.com\/\" target=\"_blank\">Kray<\/a>. Kray is a fast GI renderer for LightWave. Now, I don&#8217;t use LightWave that much anymore, I&#8217;m in love with my Softimage which I find very flexible and easy to work with, so when creating &#8216;The Contract&#8217; the thought of using Kray to render it never crossed my mind. Besides I only found out about the excessive render times when it was already too late.<br \/>\nLightWave is still a capable package though with a solid render engine, and being it one of my last options I set myself to the task of converting the scene to LightWave. Softimage has <a href=\"http:\/\/www.ef9.com\/ef9\/PO.htm\" target=\"_blank\">Pointoven<\/a> with LightWave Object export build in, so transferring the scene from Softimage to LightWave was easy. Next was shader set up.\u00a0Last December a new version of LightWave came out, LightWave 10, and with it came the <a href=\"http:\/\/tv.newtek.com\/player.php?recordID=63\" target=\"_blank\">VPR<\/a>. Viewport Preview Render is what it stands for but actually it is a interactive preview renderer, a bit like Octane but using the CPU instead of the GPU. Using this VPR while setting up your shader trees is great, and it speeds up workflow tremendously, no more test renders needed. With the shaders set up it was time to start up Kray.<br \/>\nThe week before I had played with this same scene and Kray in trying to make an acceptable clay render, which I finally managed to get with a render time of 45 minutes at 1080 HD. I knew it was gonna be quite a bit longer when I would be adding the shaders, but even 4 hours per frame would be usable.<br \/>\nI have a little render farm consisting of one 2.4 Ghz Q6600 PC with 4GB of RAM. I know, you can&#8217;t call that a render farm, you hardly can call it a computer these days, but since I normally work on my Mac Pro, this PC stands idle most of the time and so it has its hands free to do some render work for me. And if it is chugging along rendering day in and day out for a moth or more, that is no problem.<br \/>\nSo I set my little PC to work and got a nasty surprise&#8230; it took Kray 22 hours at half resolution to complete one frame&#8230; This would mean that at full resolution it would take roughly 4 times as much, 4 days per frame which was twice as slow as Mental Ray (the render engine in Softimage). This was not what I had expected. I have to mention that most of that time, more then 20 hours, was used for anti aliasing.<br \/>\nTo do a little experiment I changed all shaders from the node trees, which was how I had set them up, to the standard (old) LightWave material. Then I set it to render again with the same settings. Big was my surprise that this time Kray only needed 13 minutes. Something was wrong here. After some research on the Kray forums I was told that some LightWave nodes send huge numbers to Kray, which they are not supposed to do but which can result in huge render times. The trick is to find which shaders are the problem and change those.<br \/>\nThis is the point where I am right now. So far I have three options left. One: abandon the project. I could, but I&#8217;m not frustrated enough yet to do that. Two: render the camera move with only the standard LightWave material. I won&#8217;t do that, the standard LightWave shader just doesn&#8217;t produce good enough results, if it comes to this I&#8217;d rather go for option one. Three: go hunting for the bugged shader. This should be do-able, I only used three or four different base shaders so the amount of work looks manageable.<br \/>\nIt is settled then, I&#8217;ll go on another quest, not for speed this time but for bugs. If I succeed I&#8217;ll let you know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Originally, the image &#8216;The Contract&#8217; was conceived incorporating a slight camera move. A moving camera can make the image feel more alive, you feel more &#8216;there&#8217; when looking at a moving shot than looking at a still image. Sadly, when rendering time came that idea had to be abandoned. It took two days to render<\/p>\n<a class=\"more-link btn-a btn-a_color_theme btn-a_hover_2\" href=\"http:\/\/simonglas.net\/?p=28\">Read more<\/a>","protected":false},"author":1,"featured_media":495,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[1],"tags":[5,4,3,6],"class_list":["post-28","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-uncategorized","tag-kray","tag-lightwave","tag-softimage","tag-speed","post_format-post-format-image"],"_links":{"self":[{"href":"http:\/\/simonglas.net\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/simonglas.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/simonglas.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/simonglas.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/simonglas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":28,"href":"http:\/\/simonglas.net\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":538,"href":"http:\/\/simonglas.net\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions\/538"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/simonglas.net\/index.php?rest_route=\/wp\/v2\/media\/495"}],"wp:attachment":[{"href":"http:\/\/simonglas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/simonglas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/simonglas.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}