{"id":910,"date":"2010-11-23T11:50:27","date_gmt":"2010-11-23T11:50:27","guid":{"rendered":"https:\/\/www.cg-blog.com\/?p=910"},"modified":"2013-04-15T09:34:23","modified_gmt":"2013-04-15T09:34:23","slug":"save-memory-rendering","status":"publish","type":"post","link":"https:\/\/www.cg-blog.com\/index.php\/2010\/11\/23\/save-memory-rendering.htm","title":{"rendered":"How to save memory for the rendering"},"content":{"rendered":"<p><a href=\"http:\/\/www.grafica3dblog.it\/wp-content\/uploads\/2010\/11\/alessio-fiorini.jpg\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/www.grafica3dblog.it\/wp-content\/uploads\/2010\/11\/alessio-fiorini-icona.jpg\" alt=\"\" width=\"600px\" \/><\/a><\/p>\n<p>( <em>Render: Alessio Fiorini &#8211; He attended my training. \u00c2\u00a0This work inspired the current post <\/em>)<\/p>\n<p>Some months ago I wrote about improving render setting time: <a href=\"https:\/\/www.cg-blog.com\/index.php\/2008\/05\/30\/how-to-reduce-the-redering-time.htm\" target=\"_blank\">how to reduce rendering time<\/a>.<\/p>\n<p>In this post I&#8217;m going to talk about <strong>how to save memory in order to avoid any crash<\/strong>. 3ds max could crashes during the rendering due to a lack of memory.. so we need to have some strategy to save as much memory as possibile. Here my suggestions:<\/p>\n<p style=\"text-align: center;\"><strong>* * * SAVE IRRADIANCE MAPS * * *<\/strong><\/p>\n<p>During the rendering, global illumination informations are stored and reused for the same render. We can easily calculate only the first part of the global illumination: <strong>irradiance maps<\/strong>. Save datas and reload them using &#8220;from file&#8221; option.<\/p>\n<ol>\n<li>Check &#8220;Do not render final image&#8221;<\/li>\n<li>Click render and wait for it to calculate<\/li>\n<li>Go to the irradiance map and click &#8220;SAVE&#8221; then save it<\/li>\n<li>Choose &#8220;from file&#8221; and select the file you just saved<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"http:\/\/www.grafica3dblog.it\/wp-content\/uploads\/2010\/11\/final-image.jpg\" alt=\"final image\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.grafica3dblog.it\/wp-content\/uploads\/2010\/11\/from-file.jpg\" alt=\"irradiance map\" \/><\/p>\n<p>Do the same saving the <strong>light cache datas<\/strong>: the procedure is identical.<\/p>\n<p>Then uncheck &#8220;do not render final image&#8221; and run the final rendering.<\/p>\n<p>.<\/p>\n<p style=\"text-align: center;\"><strong>* * * IRRADIANCE MAP FOR BIG IMAGES * * *<\/strong><\/p>\n<p>For images to screen size (1200 x 750 for example) is fine to use HIGH\u00c2\u00a0preset for irradiance map.\u00c2\u00a0But when you render images for posters of 6000 x 4000 this approach is far more than necessary.\u00c2\u00a0It may be good to set min and max rate values manually.<\/p>\n<p>&#8211; <strong>IRRADIANCE MAP for posters:<\/strong><br \/>\n&#8211; Min rate = -7 \u00c2\u00a0\/ \u00c2\u00a0Max rate = -4<\/p>\n<p>.<\/p>\n<p style=\"text-align: center;\"><strong>* * * USE STORE WITH IRRADIANCE MAP (V-RAY LIGHT) * * *<\/strong><\/p>\n<p>Without the check on &#8220;store with&#8230;&#8221; shadows are sharper and more true.<\/p>\n<p>But I advise you not to apply it to all the lights! \u00c2\u00a0Check locally about what lights you need this sharpness of shadows, while the other uses &#8220;store with&#8230;&#8221; option. This save a lot of time!<\/p>\n<p>For the lights in the center of a large room &#8211; for example &#8211; you can safely use &#8220;store&#8221;.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.grafica3dblog.it\/wp-content\/uploads\/2010\/11\/store.jpg\" alt=\"store with irradiance map\" \/><\/p>\n<p>.<\/p>\n<p style=\"text-align: center;\"><strong>* * * IMPROVE DISPLACEMENT MAP * * *<\/strong><\/p>\n<p>Especially if you&#8217;re applying to a rock, you risk to get a very dotted result. Actually we should not improve the displacement setting, is likely to need the support of NASA! A first step is simply to improve the <strong>displacement map<\/strong>.<\/p>\n<p>Please, read my previus post: <a href=\"https:\/\/www.cg-blog.com\/index.php\/2010\/01\/09\/displacement-map.htm\">How to get a perfect displacement map<\/a><\/p>\n<p><a href=\"https:\/\/www.cg-blog.com\/index.php\/2010\/01\/09\/displacement-map.htm\"><img decoding=\"async\" src=\"http:\/\/www.grafica3dblog.it\/wp-content\/uploads\/2010\/01\/cutout-clic1.jpg\" alt=\"\" \/><\/a><\/p>\n<p>.<\/p>\n<p style=\"text-align: center;\"><strong>* * * RUN A LOCAL TEST * * *<\/strong><\/p>\n<p>Do a local test to verify that any approximation does not affect the quality of the final result. Many times, you can accept a small loss of quality when this is a great saving of time! It happens more often than you think.<\/p>\n<p>Use <strong>region render<\/strong> to run local tests. <strong>CROP Render<\/strong> is more comfortable for large images.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.grafica3dblog.it\/wp-content\/uploads\/2010\/11\/crop.jpg\" alt=\"crop render\" \/><\/p>\n<p>.<\/p>\n<p style=\"text-align: center;\"><strong>* * * RUN THE FINAL RENDER ON A RENDER FARM * * *<\/strong><\/p>\n<p>When everything is perfect but you are in hurry, use a render farm! Is the best solution.<\/p>\n<p>How it works? How it costs? An average price for a render farm is 10cents per hour. It means that 1 machine (1Ghz processor) working for 1 hour, costs 10 cents.<\/p>\n<p>The renderfarms usually have workstations with 8 cores (more than 20Ghz in total) so if 1 workstation works for you for 1 hour it will cost aroud 2.2 dollars. It&#8217;s great isn&#8217;t it?<\/p>\n<p>It&#8217;s not expensive but you have to take care about your setting, everything! You risk to let working 100 workstation for 1 hour&#8230; total = 220 dollars and the image is not complete yet!!!<\/p>\n<p>This example is rare to happens.. but you can&#8217;t use super high settings without brain, because the optimization is a fundamental step for your work, everything!<\/p>\n<p style=\"text-align: center;\"><strong> Optimizing a scene must be your <em>mantra<\/em>,<br \/>\nboth on your PC than on a Render Farm.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post I&#8217;m going to talk about how to save memory in order to avoid any crash. 3ds max could crashes during the rendering due to a lack of memory.. so we need to have some strategy to save as much memory as possibile. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false},"categories":[60],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/posts\/910"}],"collection":[{"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/comments?post=910"}],"version-history":[{"count":0,"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/posts\/910\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/media?parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/categories?post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cg-blog.com\/index.php\/wp-json\/wp\/v2\/tags?post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}