<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brian Freisinger &#187; vray compositing</title>
	<atom:link href="http://www.disopolis.com/wordpress/tag/vray-compositing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.disopolis.com/wordpress</link>
	<description>VFX portfolio</description>
	<lastBuildDate>Sat, 13 Apr 2013 01:39:15 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Vray Light Select Script</title>
		<link>http://www.disopolis.com/wordpress/2012/vray-light-pass-script/</link>
		<comments>http://www.disopolis.com/wordpress/2012/vray-light-pass-script/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 07:58:04 +0000</pubDate>
		<dc:creator><![CDATA[faust]]></dc:creator>
				<category><![CDATA[CG]]></category>
		<category><![CDATA[Maya]]></category>
		<category><![CDATA[Mudbox]]></category>
		<category><![CDATA[Nuke]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Vray]]></category>
		<category><![CDATA[vray compositing]]></category>
		<category><![CDATA[vray light select]]></category>
		<category><![CDATA[vray light select re]]></category>
		<category><![CDATA[vray light select render element]]></category>
		<category><![CDATA[vray lights]]></category>
		<category><![CDATA[vray Render Elements]]></category>
		<category><![CDATA[Vray Specular]]></category>
		<category><![CDATA[vray_light_select]]></category>

		<guid isPermaLink="false">http://www.disopolis.com/wordpress/?p=176</guid>
		<description><![CDATA[Using Vray Render Elements, Making Specular Vray Materials, using Vray_Light_Select, basic Vray Compositing in Nuke. Brian Freisinger Feb 19 2012 UPDATE: May 7 2012 &#8211; The script wasn&#8217;t working correctly in Maya 2012 and Vray 2.2. It&#8217;s been updated to now work properly.  (This tutorial requires Maya 2011 or higher, Vray 2.0 and Nuke or [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Using Vray Render Elements, Making Specular Vray Materials, using Vray_Light_Select, basic Vray Compositing in Nuke.</strong></p>
<p><em>Brian Freisinger</em></p>
<p><em>Feb 19 2012</em></p>
<p><span style="color: #ff0000;">UPDATE: May 7 2012 &#8211; The script wasn&#8217;t working correctly in Maya 2012 and Vray 2.2. It&#8217;s been updated to now work properly.</span></p>
<p><em> (This tutorial requires Maya 2011 or higher, Vray 2.0 and Nuke or AfterEffects/Photoshop)</em></p>
<p><em><strong>Click on any image to enlarge.</strong></em></p>
<p>For the most part, the vray render elements are very straight forward and easy to access (not to mention easy to set up for composite)</p>
<p>&nbsp;</p>
<p>In my opinion, the only one that requires a little more fiddling, as well as opens up a wide variety of user mistakes is the vrayRE_Light_Select.</p>
<p>&nbsp;</p>
<p>This tutorial will only cover very basic light pass/compositing techniques to demonstrate the Light_Select technique and introduce a nice MEL script to make your life easier.</p>
<p>&nbsp;</p>
<div id="attachment_177" style="width: 258px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure1.jpg"><img class="size-medium wp-image-177" title="figure1" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure1-248x300.jpg" alt="" width="248" height="300" /></a><p class="wp-caption-text">Figure 1. Turn on the VFB</p></div>
<p>&nbsp;</p>
<p>The first thing necessary for working with your render elements is to switch over to the Vray VFB (Vray Frame Buffer) to view your images and passes. This will also allow you to quickly view your images in both linear and SRGB color space.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_178" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure2.jpg"><img class="size-medium wp-image-178" title="figure2" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure2-300x216.jpg" alt="" width="300" height="216" /></a><p class="wp-caption-text">Figure 2. Three Light Scene.</p></div>
<p>&nbsp;</p>
<p>I built an simple example scene with a sphere and ground plane. In addition I created three Vray rectangular lights for standard three point lighting.</p>
<p>(Standard maya lights also work for this, but I prefer using the Vray native lights)</p>
<p>&nbsp;</p>
<p>You’ll notice right away I’ve named my lights and objects. It’s just a good standard practice.</p>
<p>It can be as complex or simple as you like, but later on knowing which light you’re looking with or modifying in compositing makes it priceless.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_179" style="width: 255px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure3.jpg"><img class="size-medium wp-image-179" title="figure3" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure3-245x300.jpg" alt="" width="245" height="300" /></a><p class="wp-caption-text">Figure 3. Basic Render Elements for Comp</p></div>
<p>&nbsp;</p>
<p>The first thing we’ll do is set up our Render Elements found under the Render Settings.</p>
<p>You’ll see a huge list of possibilities under this tab, but for simplicity we’ll just do one of the more basic setups.</p>
<p>&nbsp;</p>
<p>As I mentioned before, we’re just going to focus on these basic controls since the point here is about Light Passes, not advanced compositing and pass management.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_180" style="width: 140px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure4.jpg"><img class="size-medium wp-image-180" title="figure4" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure4-130x300.jpg" alt="" width="130" height="300" /></a><p class="wp-caption-text">Figure 4. Specular Material</p></div>
<p>A little note about the specular pass and specular materials in Vray.</p>
<p>More spec and less reflection on an object is controlled by the “Reflection Glossiness” in the Material Editor.</p>
<p>Glossiness set for a mix of spec and reflection.</p>
<p>If the Reflection Glossiness is set for 1.0 you’ll see no specular whatsoever in the spec pass. It’s all being pumped through the reflection pass. Great for a mirror ball, bad for a bowling ball&#8230;</p>
<p>&nbsp;</p>
<p>So for our test I want a mix of both, with hot spec we can see, hence my .632 range.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_181" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure5.jpg"><img class="size-medium wp-image-181" title="figure5" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure5-300x190.jpg" alt="" width="300" height="190" /></a><p class="wp-caption-text">Figure 5. Render in SRGB color space.</p></div>
<p>&nbsp;</p>
<p>Now with the lights set, material set and render elements set we can render.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_182" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure6.jpg"><img class="size-medium wp-image-182" title="figure6" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure6-300x206.jpg" alt="" width="300" height="206" /></a><p class="wp-caption-text">Figure 6. Linear Color Space button.</p></div>
<p>&nbsp;</p>
<p>To switch between linear and SRGB color space you need to click on this button.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I will be writing a tutorial in the future on <strong>Linear Workflow</strong>, but if you’re unfamiliar with it basically in Linear color space the image should look far darker than the SRGB space.</p>
<p>SRGB is how we’re seeing it on our monitor, Linear is the “true” color space and gives us more room to move in compositing especially with our whites/blacks and other post correction.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_183" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure7.jpg"><img class="size-medium wp-image-183" title="figure7" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure7-300x193.jpg" alt="" width="300" height="193" /></a><p class="wp-caption-text">Figure 7. Lighting Pass Only.</p></div>
<p>&nbsp;</p>
<p>Next up is our ability to see our passes using the VFB.</p>
<p>What we’re looking at in the “lighting” pass is simply the combination of the shadow and diffuse pass. We’re also left with very limited control of the lights.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_184" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure8.jpg"><img class="size-medium wp-image-184" title="figure8" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure8-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Figure 8. Basic Nuke Comp</p></div>
<p>&nbsp;</p>
<p>If we were to write these out for compositing they’d be combined with a Plus Merge in Nuke (Linear Dodge/Add in Adobe products)</p>
<p>&nbsp;</p>
<p>So, how do we break each light out separately?</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_185" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure9.jpg"><img class="size-medium wp-image-185" title="figure9" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure9-300x238.jpg" alt="" width="300" height="238" /></a><p class="wp-caption-text">Figure 9. Create a &#8220;Light Select&#8221; pass</p></div>
<p>&nbsp;</p>
<p>We’re going back to our Render Element Tab in the Render Settings and a new pass.</p>
<p>At this point we&#8217;ll need  to use the VrayRE_Light Select to isolate our lights.</p>
<p>As a test we can  just set one up quickly and hook into the render.</p>
<p>Just double click on it as you would any pass and it should appear in the right column.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_186" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure10.jpg"><img class="size-medium wp-image-186" title="figure10" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure10-300x216.jpg" alt="" width="300" height="216" /></a><p class="wp-caption-text">Figure 10. Naming your Pass</p></div>
<p>&nbsp;</p>
<p>Just like we wanted to name our lights earlier, we’ll want to name our Light_Select to know which light it’s controlling.</p>
<p>Let&#8217;s start off by using the keyLight for our test.</p>
<p>&nbsp;</p>
<p>I’m just changing the fields highlighted in green.</p>
<p>The top one effects how it’s seen in the render elements tab as well as the outliner.</p>
<p>The field below it in green effects how it’s seen in the next step, the set editor.</p>
<p>&nbsp;</p>
<p>Currently the “Type” (at the bottom of the image in Figure 10) is set for “Normal”</p>
<p>We’ll get into the more advanced functions of this later.</p>
<p>&nbsp;</p>
<p>Just because the pass was created and named the same as the light doesn’t mean it automagically knows which light to connect to unfortunately.</p>
<p>So we’ll have to open up the set editor.</p>
<p>&nbsp;</p>
<div id="attachment_187" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure11.jpg"><img class="size-medium wp-image-187" title="figure11" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure11-300x277.jpg" alt="" width="300" height="277" /></a><p class="wp-caption-text">Figure 11. Finding the Set Editor</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The set editor is found under: Windows -&gt;Relationship Editors -&gt; Sets</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_188" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure12.jpg"><img class="size-medium wp-image-188" title="figure12" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure12-300x282.jpg" alt="" width="300" height="282" /></a><p class="wp-caption-text">Figure 12. Set Editor Connection</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Once the window comes up any Vray Light Select element we’ve made should show up in the left column. This is also why naming your light pass and light is relatively important.</p>
<p>Simply select the light pass on in the left column, and then select the correct light in the right column. In our case it’s the keyLight_pass connected to the keyLight</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_189" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure13.jpg"><img class="size-medium wp-image-189" title="figure13" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure13-300x190.jpg" alt="" width="300" height="190" /></a><p class="wp-caption-text">Figure 13. Key Light Pass</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now if we re-render our image with the VFB active we can look at our keyLight_pass</p>
<p>&nbsp;</p>
<p>We’ve got the light now seperated, but comparing it to the lighting pass and the specular pass we can see that the new pass (keyLight_pass) has not only the lighting, but the specular combined. This will be a problem later on in compositing since generally having your light pass and spec pass separated give a lot more control.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_190" style="width: 143px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure14.jpg"><img class="size-medium wp-image-190" title="figure14" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure14-133x300.jpg" alt="" width="133" height="300" /></a><p class="wp-caption-text">Figure 14. &#8220;Types&#8221; of Light Select</p></div>
<p>&nbsp;</p>
<p>Looking back at the keyLight_pass in the attribute editor we can go down to the bottom and see some options under “<strong>Type</strong>” : Normal, Raw, Diffuse, Specular</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>We left it at default, so now we’ll switch it over to “Diffuse” and re-render the image.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_191" style="width: 166px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure15.jpg"><img class="size-medium wp-image-191" title="figure15" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure15-156x300.jpg" alt="" width="156" height="300" /></a><p class="wp-caption-text">Figure 15. Setting up the diffuse pass</p></div>
<p>&nbsp;</p>
<p>I’m also going to take the time to rename my pass from “keyLight_pass” to “keyLight_diff”</p>
<p>The reason being, we will have to connect up a “keyLight_spec” pass seperately if we want that as an individual control. When they write out a multichannel EXR or single files you’ll want to know what’s what when putting the comp together. It’ll also help diagnose problem using the VFB</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_202" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure16b.jpg"><img class="size-medium wp-image-202" title="figure16b" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure16b-300x197.jpg" alt="" width="300" height="197" /></a><p class="wp-caption-text">Figure 16b. keyLight_diff / diffuse pass only.</p></div>
<p>&nbsp;</p>
<p>The new render shows   that we lost all the spec from our first render.</p>
<p>That’s good, but we’ll need to make another pass to get the spec and hook it up in the set editor.</p>
<p>&nbsp;</p>
<p>Setting this up for production at this point would require six passes just for the lights.</p>
<p>(Three Diffuse and Three Specular) Doing this manually can be a major pain.</p>
<p>First off it’s easy to make a mistake. I’ve often forgot to set a pass to be diffuse, or accidentally set two to be specular. Forget to connect a new pass up in the set editor. Lost all my passes and connections when Maya decided to be helpful and ‘clean up unknown nodes&#8230;’ etc etc</p>
<p>&nbsp;</p>
<p>So I wrote a mel script to do all this for you.</p>
<p>I walked through the process of doing this manually so we’d understand what’s going on under the hood.</p>
<p>&nbsp;</p>
<p>Ok, on with the script:</p>
<p>&nbsp;</p>
<p>Here’s the code:</p>
<p>&nbsp;</p>
<pre>//////////////////////////////<wbr>//////////////////////</wbr></pre>
<pre>//Create Vray LightPass Render Elements//</pre>
<pre>//Dec 2011</pre>
<pre>//Updated May 2012 for Vray 2.2</pre>
<pre>//Brian Freisinger</pre>
<pre>//<a href="mailto:faust@disopolis.com" target="_blank">faust@disopolis.com</a></pre>
<pre>//<a href="http://www.disopolis.com/" target="_blank">www.disopolis.com</a></pre>
<pre>//Feel free to steal, edit, modify.</pre>
<pre>//////////////////////////////<wbr>/////////////////////</wbr></pre>
<pre>//Call selection list</pre>
<pre>global proc vrLightPass () {</pre>
<pre>//Call selection list</pre>
<pre>string $vRE_Light[] = `ls -sl`;</pre>
<pre>for ($selection in $vRE_Light)</pre>
<pre>{</pre>
<pre>string $vrayLS = $selection;</pre>
<pre>string $diff = "_diff";</pre>
<pre>string $spec = "_spec";</pre>
<pre>//create diffuse pass</pre>
<pre>string $diffs = `vrayAddRenderElement LightSelectElement`;</pre>
<pre>string $vRE_diff[];</pre>
<pre>$vRE_diff[0] = $diffs;</pre>
<pre>//set diffuseFLAG</pre>
<pre>setAttr "vrayRE_Light_Select.vray_<wbr>type_lightselect" 2;</wbr></pre>
<pre>//Set render outputname for diffuse</pre>
<pre>setAttr -type "string" vrayRE_Light_Select.vray_name_<wbr>lightselect ($selection + $diff);</wbr></pre>
<pre>rename $vRE_diff ($selection + $diff);</pre>
<pre>//create spec pass</pre>
<pre>string $specs = `vrayAddRenderElement LightSelectElement`;</pre>
<pre>string $vRE_spec[];</pre>
<pre>$vRE_diff[0] = $specs;</pre>
<pre>setAttr "vrayRE_Light_Select.vray_<wbr>type_lightselect" 3;</wbr></pre>
<pre>//Set render outputname for spec</pre>
<pre>setAttr -type "string" vrayRE_Light_Select.vray_name_<wbr>lightselect ($selection + $spec);</wbr></pre>
<pre>rename $vRE_spec ($selection + $spec);</pre>
<pre>//Set relationships</pre>
<pre>connectAttr ($vrayLS + ".instObjGroups[0]") ($vrayLS + "_diff.dagSetMembers[0]");</pre>
<pre>connectAttr ($vrayLS + ".instObjGroups[0]") ($vrayLS + "_spec.dagSetMembers[0]");</pre>
<pre>}</pre>
<pre>}</pre>
<pre>///endcode///</pre>
<p>You can also <a href="http://www.disopolis.com/vrlightpass/">download it here</a> if the wordpress formatting throws you some errors.</p>
<p>Start by sourcing the code.</p>
<p>Then select the lights you want to make passes out of.</p>
<p>I created a keyLight, fillLight and rimLight so I’ll select those three.</p>
<p>then in the command line type</p>
<p>vrLightPass;</p>
<p>and press enter.</p>
<p>&nbsp;</p>
<div id="attachment_192" style="width: 257px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure16.jpg"><img class="size-medium wp-image-192" title="figure16" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure16-247x300.jpg" alt="" width="247" height="300" /></a><p class="wp-caption-text">Figure 16. vrLightPass.mel script</p></div>
<p>&nbsp;</p>
<p>Now I’ve got six passes, all properly named and all properly assigned.</p>
<p>&nbsp;</p>
<p>I really don’t need the original lighting pass or the original specular pass anymore, but I keep them around so when I comp the shot I have something besides the beauty pass around to make sure I got everything right.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_193" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure17.jpg"><img class="size-medium wp-image-193" title="figure17" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure17-300x192.jpg" alt="" width="300" height="192" /></a><p class="wp-caption-text">Figure 17. Rim Light Pass</p></div>
<p>&nbsp;</p>
<p>So now we re-render the image and we’ll take a look at the rimLight_spec pass.</p>
<p>So that’s it. All our light passes are broken out.</p>
<p>Be aware, you CANNOT break out your reflection per light, the render engine doesn’t work that way. There are comp tricks using the light or spec pass to dial up or dial down your reflection per light, but as a pass, it’s all or nothing. Same goes for Refraction.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_194" style="width: 304px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure18.jpg"><img class="size-medium wp-image-194" title="figure18" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure18-294x300.jpg" alt="" width="294" height="300" /></a><p class="wp-caption-text">Figure 18. Final Composite</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Once you write out your passes compositing them is pretty simple, in Nuke it’s all merge plus nodes. (Or linear burn (add) in adobe products)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_195" style="width: 310px" class="wp-caption alignleft"><a href="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure18b.jpg"><img class="size-medium wp-image-195" title="figure18b" src="http://www.disopolis.com/wordpress/wp-content/uploads/2012/02/figure18b-300x205.jpg" alt="" width="300" height="205" /></a><p class="wp-caption-text">Figure 18b. The Nuke Comp</p></div>
<p>&nbsp;</p>
<p>Here’s a quick close up of the Nuke Script</p>
<p>And that&#8217;s basic light pass/compositing with Vray.</p>
<p>&nbsp;</p>
<p><strong id="internal-source-marker_0.47385616041719913"><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.disopolis.com/wordpress/2012/vray-light-pass-script/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
