{"id":124,"date":"2011-10-29T18:31:27","date_gmt":"2011-10-30T01:31:27","guid":{"rendered":"http:\/\/www.toadstorm.com\/blog\/?p=124"},"modified":"2011-10-29T18:31:27","modified_gmt":"2011-10-30T01:31:27","slug":"gamma-correcting-image-planes","status":"publish","type":"post","link":"https:\/\/www.toadstorm.com\/blog\/?p=124","title":{"rendered":"gamma-correcting image planes"},"content":{"rendered":"<p>For those of you who like to use a linear workflow in Maya, you might notice that once you apply a lens shader (mental ray) or an overall gamma setting (vray) to your scene with gamma 2.2, while your gamma-corrected textures might look great, your image planes will be washed out. This is a pain when you&#8217;re trying to use a plate as a reference for lighting your scenes. There is a way to gamma correct image planes, but the setup takes a few more steps and it&#8217;s somewhat counter-intuitive. Thanks, Maya!<\/p>\n<p>The first thing to do once you attach an image plane to the camera is to switch the &#8220;Type&#8221; attribute from &#8220;image&#8221; to &#8220;texture.&#8221; Once you do this, you can attach a regular File node to the texture, and set up your image sequence attributes on the file node if you are using a sequence.<\/p>\n<p>The next step is to connect the file node to a gammaCorrect node&#8230; create a gammaCorrect node, set the gamma in all three channels to 0.454 (or whatever the inverse of your current gamma is if you&#8217;re not correcting to 2.2) and then connect the outColor of the file node to the &#8220;value&#8221; of the gammaCorrect node.<\/p>\n<p>The last step is the tricky part. Try connecting the output of the gammaCorrect node to the imagePlane node&#8230; where does it go in the Connection Editor? Maya decided that you, the user, should be sheltered from this most dangerous input, and it&#8217;s been hidden by default. Turn on &#8220;show hidden&#8221; on the right side of the Connection Editor, and then connect the outValue of the gammaCorrect node to the &#8220;texture&#8221; input of the imagePlane.<\/p>\n<p>I don&#8217;t really understand why this has to be so difficult in Maya, but the same could be said about a lot of this program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those of you who like to use a linear workflow in Maya, you might notice that once you apply a lens shader (mental ray) or an overall gamma setting (vray) to your scene with gamma 2.2, while your gamma-corrected textures might look great, your image planes will be washed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/124"}],"collection":[{"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":2,"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.toadstorm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}