{"id":5096,"date":"2024-08-12T15:38:15","date_gmt":"2024-08-12T15:38:15","guid":{"rendered":"https:\/\/cgelementary.com\/?post_type=knowledgebase&#038;p=5096"},"modified":"2024-08-23T18:32:56","modified_gmt":"2024-08-23T18:32:56","slug":"volumetric-lighting","status":"publish","type":"knowledgebase","link":"https:\/\/cgelementary.com\/?knowledgebase=volumetric-lighting","title":{"rendered":"Volumetric Lighting"},"content":{"rendered":"\n<div class=\"wp-block-divi-layout\">[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;91%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/Vol01.jpg&#8221; title_text=&#8221;Vol01&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_padding=&#8221;||3px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_margin=&#8221;|-48px||||&#8221; custom_padding=&#8221;|0px||||&#8221; global_colors_info=&#8221;{}&#8221;]<h4>Volumetric Lights<\/h4>\n<p>1-build lightmap of your scene.<\/p>\n<p>&nbsp;<\/p>\n<p>2 &#8211; add an object as fog container to the scene (it can be any object, but usually it&#8217;s a cube or a sphere) and place it where you want the fog at.<\/p>\n<p>&nbsp;<\/p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/Sene01.jpg&#8221; title_text=&#8221;Sene01&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;47.7%&#8221; custom_margin=&#8221;|||115px||&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/Contaainer-1.jpg&#8221; title_text=&#8221;Contaainer&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/cgelementary.com\/wp-content\/uploads\/Conatiner-wire-frame.jpg&#8221; title_text=&#8221;Conatiner-wire-frame&#8221; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;85%&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<p>3 &#8211; Now select container and in X-Ray shlf press <a href=\"http:\/\/cgelementary.com\/wp-content\/uploads\/VolumeButton.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cgelementary.com\/wp-content\/uploads\/VolumeButton.jpg\" width=\"36\" height=\"36\" alt=\"\" class=\"wp-image-5134 alignnone size-full\" \/><\/a> , now the scene should look like this.<\/p>\n<p><a href=\"http:\/\/cgelementary.com\/wp-content\/uploads\/Conatiner-wire-frame2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cgelementary.com\/wp-content\/uploads\/Conatiner-wire-frame2.jpg\" width=\"419\" height=\"294\" alt=\"\" class=\"wp-image-5135 alignnone size-full\" \/><\/a><\/p>\n<p>4 &#8211; add a light and increase it&#8217;s intensity to a high value like 1000 until volume is visible.<\/p>\n<p><a href=\"http:\/\/cgelementary.com\/wp-content\/uploads\/Volume-without-Shadow.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cgelementary.com\/wp-content\/uploads\/Volume-without-Shadow.jpg\" width=\"419\" height=\"401\" alt=\"\" class=\"wp-image-5136 alignnone size-full\" \/><\/a><\/p>\n<p>5 &#8211; if volume looks jagged select the container, go to chanel box and decrease <strong>volume detail size<\/strong> to increase volume resloution \u00a0\u00a0 \u00a0\u00a0<a href=\"http:\/\/cgelementary.com\/wp-content\/uploads\/VolumeDetail.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cgelementary.com\/wp-content\/uploads\/VolumeDetail.jpg\" width=\"236\" height=\"18\" alt=\"\" class=\"wp-image-5139 alignnone size-full\" \/><\/a><\/p>\n<p>*Hint : you can change volume color by changing light&#8217;s color.<\/p>\n<p>&nbsp;<\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.20.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<h4>Volumetric Shadows<\/h4>\n<p>1- Select an object that you want to cast shadows.<\/p>\n<p>&nbsp;<\/p>\n<p>2 &#8211; in X-Ray shelf press <a href=\"http:\/\/cgelementary.com\/wp-content\/uploads\/volshadow.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cgelementary.com\/wp-content\/uploads\/volshadow.jpg\" width=\"31\" height=\"35\" alt=\"\" class=\"wp-image-5137 alignnone size-full\" \/><\/a> to make a volumetric light blocker from selected object (make sure selected object has no holes, if it does, you can make a proxy object)<\/p>\n<p><a href=\"http:\/\/cgelementary.com\/wp-content\/uploads\/Volume-with-Shadow.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cgelementary.com\/wp-content\/uploads\/Volume-with-Shadow.jpg\" width=\"413\" height=\"414\" alt=\"\" class=\"wp-image-5138 alignnone size-full\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>3 &#8211; if there are any artifacts go to Chanel box there are two parameters <strong>volume detail size<\/strong> and <strong>volume offset, <\/strong>you can increase the shadow caster res by lowering the <strong>volume detail size<\/strong> and push the volume toward object by setting volume offset to some negative value.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":491,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[137],"class_list":["post-5096","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-lighting"],"_links":{"self":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase\/5096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/users\/491"}],"replies":[{"embeddable":true,"href":"https:\/\/cgelementary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5096"}],"version-history":[{"count":4,"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase\/5096\/revisions"}],"predecessor-version":[{"id":5406,"href":"https:\/\/cgelementary.com\/index.php?rest_route=\/wp\/v2\/knowledgebase\/5096\/revisions\/5406"}],"wp:attachment":[{"href":"https:\/\/cgelementary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5096"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/cgelementary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fknowledgebase_cat&post=5096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}