tag:blogger.com,1999:blog-21191026623564255202024-03-14T00:02:49.909-04:003dLightA Virtual Lighting Blog, generally revolving around GI rendering and MayaAndrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-2119102662356425520.post-90479035064467391592013-03-24T13:59:00.000-04:002013-03-24T14:41:22.926-04:00Sampling - In DepthIt has been a long while since I've posted here. Life has changed a lot, and I don't get to use Vray (or any off-the-shelf rendering software) very much anymore. Since I've been with Blue Sky for the last 1.5 years, My vray lic has lapsed, and I have had scant time to test other tools (but I have a bit).<br />
<br />
There has been one major subject that folks have asked me about in more detail, and I just haven't gotten time to record a video for. I'd like to address that subject here as best I can, in text.<br />
<br />
Sampling:<br />
<br />
Vray's DMC is awesome. But it's not perfect. Sometimes, it needs help to do its work properly. I'll assume you're already familiar with the basics of DMC. If not, check out my <a href="http://www.youtube.com/watch?v=ZURdN48My9I&list=UU422BSq6n0CS-FGJZD0M2uw&index=13" target="_blank">video</a> on the subject. The thing about DMC is that it might lead one to believe that you can control all quality in one place. For many situations, this illusion holds true. Even if it takes a bit longer to render, it saves fiddling time, so many use it that way... a master control. I may have contributed to that belief with my own videos. So I'm sorry it took me this long to explain in more detail.<br />
<br />
In my vids, I mentioned turning the "<span style="color: #660000;">Adaptive Amount</span>" to 1, to allow DMC to do the work. That can be very handy, but lets get down to more serious optimizing. When you set that to 1, you are letting something happen that can unwittingly slow down your scene in some cases. There is a setting in the DMC section called "<span style="color: #660000;">Adaptive Min Samples</span>". For any glossy calculation (area lights, glossy reflections, gi, atmosphere, etc), this will be the starting number of samples. It defaults to 8, and in plenty of cases, this is not enough. Sometimes this is a severely undersampled starting point that will force DMC to work much too hard to overcome. That's why when using DMC, it seems like you have to lower your quality threshold super low... and still not get a clean image. Let's fix this.<br />
<br />
<i>side note</i> - You could of course, just raise that "Adaptive Min Samples" setting. But that could be inefficient. You would be raising all min samples for all glossy settings, even where they are not needed. It's possibly effective, but a bit lazy, and that's not where we're going.<br />
<br />
It would be better to determine what glossy aspect of your render is causing most of your noise and fix (up the samples on) that thing. Is it GI, a huge area light, material settings? It all depends on your scene, so there is never an out-of-the-box answer. One of the easiest ways I've found to troubleshoot a scene, and see where the noise is coming from is to render an image with a nice set of render elements to view in the vray framebuffer. You can tell a lot by seeing which elements are the noisiest.<br />
<br />
While in a "<span style="color: #660000;">Adaptive Amount</span>"= 1 setup, set your threshold to a faster number like .02 or something you can stomach the rendertime. Do a render with several elements active. Include Diffuse, Specular, Reflection, GI, and Environment (if you are using it). You can also include light elements if you want to troubleshoot particular individual lights, but it isn't critical. When this finishes (or even while it's running) you can tap through the different elements, and determine which ones are the noisiest. Perhaps the diffuse and gi layers are the worst. That points to the need to raise samples on the area lights, and the gi solution. This is pretty common.<br />
<br />
Now, change the "<span style="color: #660000;">Adaptive Amount</span>" setting to 0.9 . Why? This setting serves as a blend between manual sample settings and the DMC automatic threshold. If you have "<span style="color: #660000;">Adaptive Amount</span>" set to 1, then your area light will use the "<span style="color: #660000;">Adaptive Min Samples</span>" of 8 to start. If you area light is large, this may be too low a starting point to really get to a clean image quickly. The important thing to understand is that any subdivs set on glossy parameters (such as an area light) is actually set by the inverse percentage of "<span style="color: #660000;">Adaptive Amount</span>".<br />
<br />
A simple example: [An area light with 10 subdivs to start] With "<span style="color: #660000;">Adaptive Amount</span>" set to 1, it will get 8 starting subdivs (the min default). At "<span style="color: #660000;">Adaptive Amount</span>" of .5 it will get 50%, or 5 subdivs to start. At "<span style="color: #660000;">Adaptive Amount</span>" set to .9 the light will start with only 10%, or 1 subdiv. I use "<span style="color: #660000;">Adaptive Amount</span>" at .9 since the math is easy; just move a decimal.<br />
<br />
5 subdivs, 1 subdiv, or even the 8 subdivs of the DMC min setting are all sometimes too low to give the DMC sampler enough to work with. A large area light may need something more like 20 subdivs or more to give the DMC system enough tio refine. I'll often plug 250 into a light and see where that gets me. 250x10% is only 25 subdivs. This often cleans up the noise from an area light quickly. It puts more samples only where it is needed, and therefore is faster to calculate than to simply over-sample the entire image with a lower threshold. In fact, if you get your various glossy settings right, you can often get by with a higher DMC threshold, and get significantly faster renders.<br />
<br />
In our previous example, we had noise in the area light contribution and the GI. We probably fixed the light samples now, but should also raise the GI samples. (I'm assuming Brute Force as primary). Once you start tuning each glossy parameter, you'll start to get a feel for how many more samples each one requires. Don't be afraid of some larger numbers as you are only really using 10% of whatever you enter in.<br />
<br />
Not only can his method improve rendertimes, it can also allow you to render something clean that you simply never could with a purely adaptive dmc. One situation where this is critical is ENVfog. If you've been using fog with "<span style="color: #660000;">Adaptive Amount</span>"=1, then you've probably been cursing rendertimes and noise. Now with "<span style="color: #660000;">Adaptive Amount</span>"= .9 go set your fog subdivs to 250, and you'll get much cleaner ENVfog renders in less time. I've had scenes where fog was critical, and I raised it to 500. But rendertimes were perfectly acceptable.<br />
<br />
A lot more info on this subject can be found at this awesome page: <br />
<strong class="Imgtxt01" style="font-family: Verdana, Geneva, sans-serif;"><span class="Head01" style="background-color: white;"><span style="color: #073763;"><a href="http://www.interstation3d.com/tutorials/vray_dmc_sampler/demistyfing_dmc.html" target="_blank">Demystifying V-Ray DMC Sampler</a></span></span></strong><br />
<br />
Hopefully this helps folks tune their scenes more efficiently. I've benefited greatly from doing things this way, and think you will too. Good luck.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-59934427390182641682011-01-30T20:32:00.001-05:002011-01-30T20:33:29.409-05:00Vray for Maya: Workflow and Render ElementsThis video breaks down some importnat concepts in general vray scene workflow, and also focuses on creating Render Elements to augment your renders in post.<br /><br /><iframe title="YouTube video player" class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/xZNTUPDSPEo" frameborder="0"></iframe>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-32723671763070577962011-01-30T20:30:00.001-05:002011-01-30T20:30:36.439-05:00Vray for Maya: Lights - Part2And here is part 2.<br /><br /><iframe title="YouTube video player" class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/mHWfK9-gwLc" frameborder="0"></iframe>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-42562371197275669762011-01-30T20:28:00.002-05:002011-01-30T20:29:14.080-05:00Vray for Maya: Lights - Part1I seem to have forgotten to update my blog with new vids for too long... here we go.<br /><br />Vray for Maya: Lights - Part1<br /><br /><iframe title="YouTube video player" class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/VpMsw4nNVKI" frameborder="0"></iframe>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-58478423566176848992010-11-07T14:07:00.002-05:002010-11-07T14:09:39.463-05:00Vray For Maya: Vray Material Part 2Here's the 2nd part on the vray material. It covers the refractive portions of the material, some extra bits, and the very simple, blend material.<br /><br /><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/m2SDgt5nke0?fs=1&hl=en_US&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/m2SDgt5nke0?fs=1&hl=en_US&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-50740332153095827752010-11-04T15:18:00.002-04:002010-11-04T15:22:25.654-04:00Posted the next video in the Vray for Maya training series. This one is on the basics of the Vray Material. It had to be broken into 2 parts, so the next one touches on the Blend material, and finishes the Vray Material. Sorry to have it messy like that, but I record, and don't track my time very well;)<br /><br /><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/WaW1hm8fgd4?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/WaW1hm8fgd4?fs=1&hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-4129044094007014502010-10-26T12:21:00.001-04:002010-10-26T12:23:25.275-04:00Vray for Maya: Vray Frame BufferThis video goes over how to use the Vray Framebuffer, and its integration into Maya. Hopefully it helps your (linear) workflow.<br /><br /><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/bKpTs2qoLqE?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bKpTs2qoLqE?fs=1&hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-80077953439626094642010-10-26T12:16:00.002-04:002010-10-26T12:20:54.357-04:00Vray For Maya: Nederhorst SettingsThis video gets you up-and-running with some production-proven render settings originally outlined by Robert Nederhorst. Thanks to him, and the Chaos Group team, we have some really useful and simple ways to render complex scenes. It may look a bit tricky at first to set it up, but by all means, save it a preset. I use a preset and apply it at the start of my scene, then set the vray common attribs afterward. You can also text edit the preset, and comment out all the bits that modify the common tab.<br /><br /><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/ZURdN48My9I?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ZURdN48My9I?fs=1&hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-52785830929508660432010-10-14T20:54:00.003-04:002010-10-14T21:09:07.560-04:00Vray Training VideosI thought I'd take a bit of time, and record some videos to introduce folks to Vray for Maya. This is mostly geared toward people already familiar with rendering with raytracers (like Mental Ray). It won't go over very basic concepts, but it will introduce vray in such a way, as to get you producing nice images with it quickly. It was initially thought of as internal training videos for my company. We get a lot of freelancers in that have experience with MR, but not with Vray. So I often spend time with them going over the same stuff over and over. So this will help everyone!<br /><br />So far, only the first few are up on my <a href="http://www.youtube.com/user/aweidenhammer?feature=mhum">youtube</a> channel. The introduction in 2 parts, and an overview of "Nederhorst Settings" which are solid, easy-to-use and production-proven settings. I plan to add more soon. Next ones should be, the Vray Framebuffer, Materials, and Lights.<br /><br />Intro Part 1<br /><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/FzPtT7wM1Gg?fs=1&hl=en_US&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/FzPtT7wM1Gg?fs=1&hl=en_US&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object><br /><br />Intro Part 2<br /><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/GWY9kAOuhsA?fs=1&hl=en_US&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GWY9kAOuhsA?fs=1&hl=en_US&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-74479373598924329322010-08-31T16:36:00.004-04:002010-08-31T16:45:32.545-04:00Arnold, My Old FriendMarcos, the creator of the Arnold renderer in use at Sony Pictures Imageworks was recently <a href="http://tog.acm.org/resources/RTNews/html/rtnv23n1.html#art3">interviewed</a>. Fun read. In an email conversation with him, he pointed out some recent papers he was directly and indirectly involved with. They too are worth reading if you are into raytracing.<br /><br /><a href="http://renderwonk.com/publications/s2010-shading-course/martinez/s2010_course_notes.pdf">Physically-Based Shading and Lighting at SPI</a><br /><a href="http://www.graphics.cornell.edu/%7Ejaroslav/gicourse2010/index.htm">Siggraph 2010: Course on Global Illumination</a><br /><br />And for added fun, <a href="http://www.3dluvr.com/marcosss/morearni/">here</a> are some wayback renders done in the early versions of Arnold for 3dsmax. Some of which I did;)Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-24200388314585070142010-08-31T15:54:00.003-04:002010-08-31T16:32:31.567-04:00Vray vs. Mental RayI have gotten some requests to expand on my transition to Vray so I'll take an opportunity to do so.<br /><br />What sold me on Vray during early tests was its general speed at handling GI renders. Without getting into specific benchmarks, it was pretty clear to me that Vray had a substantial speed gain in complex GI scenes. The other major influence was "The Nederhorst" settings, as they have come to be known around here. These settings leverage Vray's powerful Deterministic Monte Carlo (DMC) sampler. The general idea is to minimize the amount of settings you need to tweak to affect your render quality. In production, as in life, simpler is better.<br /><br />The specifics are <a href="http://www.spot3d.com/vray/help/maya/150R1/vray_for_maya_primer.pdf">here</a>, but the general method is to tell Vray's sampler to be fully adaptive, so it will refine samples only in areas that need it, based on a simple contrast threshold setting. This sped up our productions significantly, as we needed to do much less tweaking to get quality renders.<br /><br />This is what prompted the switch. Since then, Vray has grown in features, and I can confidently say, that it is now better integrated into Maya than MentalRay. It has added hair rendering, will render its own fur, fluids, particles, and has a much easier-to-use pass system. We consistently spit out custom channels for material id, AO, Z, normals, and other custom textures, in one neat-and-tidy render. Vray negates ever having to touch Maya's renderpass system, and makes our lives much nicer.<br /><br />Another benefit is in Vray's handling of "Linear Workflow." With a click of a button, Vray will adjust all input colors/textures to any gamma you like... thus compensating for the 2.2 baked-in gamma of most textures and colors in Maya. We really don't even think about linear workflow, as we are always in it. Using the Vray Framebuffer, you can dynamically switch on sRGB compensation, to adjust your linear image to monitor-space for quick evaluations. You can plug in your own LUT, you can quickly add your own curves in the framebuffer to imitate what color treatments you may apply later. It adds linear workflow to Maya in the way it should always have been done.<br /><br />Another great addition is the easy-to-use distributed rendering. We do a lot of hires print images. 5-15k. So no GI renderer on a single machine will be speedy. With a dedicated set of machines on a farm, you can toggle a button and harness many machines to attack a single frame. 5 k renders done in minutes, as buckets race across the screen. While MR standalone will allow you to do this as well, you'd have to invest the extra bucks for that, and Vray is still faster and easier to set up.<br /><br />Lastly, VrayRT has appeared in beta form, and is now changing the way we light once again. We have already put it in production on our latest automotive renders, with great results. VrayRT-GPU may again change things in just a few more weeks. We look forward to using the additional horsepower already in our towers.<br /><br />So, that's the sales pitch;) Really, it has been a great ride in the last year, and I thank Chaos Group for working so hard on this product.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-73973603216125645662010-05-10T11:04:00.006-04:002010-05-10T11:37:49.642-04:00First Vray tests (from 1 year ago)<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPh3pobSx2mvYnGQFOSILQ-rRAw-FhaTyydrtrgrFoyPZ5ROCIGQCIVqns4uQLXwb_HGcw5ubXB_g9M-IiBc1oLhI6qlSiJNpxsshBSGTKF0VWvD48n6GxWJ0_KZaqnd8GbGXsJn_Veug/s1600/kia_inerior_V03_1280.jpg"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 289px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPh3pobSx2mvYnGQFOSILQ-rRAw-FhaTyydrtrgrFoyPZ5ROCIGQCIVqns4uQLXwb_HGcw5ubXB_g9M-IiBc1oLhI6qlSiJNpxsshBSGTKF0VWvD48n6GxWJ0_KZaqnd8GbGXsJn_Veug/s400/kia_inerior_V03_1280.jpg" alt="" id="BLOGGER_PHOTO_ID_5469664412111726258" border="0" /></a>So, I haven't been updating very much in the past year (sorry), but here's some new info. As mentioned, I've switched to vray. This was the first thing I made while testing it (around April 2009).<br /><br />Some things to note about this image:<br /><br />It is an "impossible" lighting setup in the real-world, and when we are tied up in physically accurate lighting, we need to remember that lighting direction doesn't always have to follow real-world rules. The goal of this image was to recreate a particular composite of images where lighting was tuned for each specific part of the interior then combined in photoshop. The overall image works, even though lighting cues/directions are all mixed up.<br /><br />There are about 30-40 rectAreaLights in the scene, split up into "zones" and there are lots of light exclusion/linking going on to keep one zone from affecting another zone. Zones were broken up into seatLeft, seatRight, Steering Wheel, Side Door, Shifter, Dashboard, and Dashboard Central. This render is just about raw from Vray, and very little has been done to it other than some retouching and minor CC.<br /><br />I wouldn't call it totally finished, as there are some texture problems, and could use some post love and color grading, but this served as a great test to see how our switch to vray might go. I took about one week to produce this image, from having never used vray before. I'd say this image has some very inefficient render settings, since I wasn't quite versed, but the quality and relatively low learning curve (from MR) convinced us to make the switch.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-46454224130944097142010-02-12T09:47:00.003-05:002010-02-12T10:33:25.630-05:00SLIK Studio Lighting ToolsHere's a link: <a href="http://www.luxology.com/store/SLIK/">SLIK</a><br /><br />Now, while this seems cool, it feels a bit overkill. Here's what I like:<br /><br />- ies profiles for each light. That is cool, and useful.<br />- high detail for the illuminant surface<br />- a model library of lights for when you need them.<br /><br />Now I'll discuss what I think is wrong. The obvious being... that's a lot of heavy geometry for a scene where I'd prefer my heavy geo be in my product. This seems like a way to slow down fluid production. Friendly controls are ok, but really, how hard is it to adjust the intensity of a light in the lights attributes? Do I really need on-screen controls for this cluttering up my workspace?<br /><br />Yes, I get that the end product could be a simple hdri... but why? Why substitute the control of individual lights for an hdri when you don't have to?<br /><br />Here's a suggestion for an alternative. I wish someone would produce this so I could buy it, since I don't have time to make it all myself (hint hint, wink wink). Simply photograph lighting equipment in HDR. Then you have an accurate image (with all the detail and folds, and tape marks, and whatever floatsYerBoat). Place those images onto your area lights in MR/Vray and have fun. Light (geometrically speaking), easily adjustable, no need for models beyond cards and lights. For direct lights, ies files would be great.<br /><br />SLIK seems fun, but it wouldn't really help production fluidity for me, and I do a lot of product imaging. It would be cool if you need to render the guts of a photo studio tho;)Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-67166502053370805822009-10-05T13:42:00.002-04:002009-10-05T13:47:06.723-04:00Linear Light Talk by MasterZapAs posted by Master Zap on his blog: <a href="http://mentalraytips.blogspot.com/2009/09/my-appearance-on-fxguide-linear.html">here</a><br /><br />He goes into some technical details of the linear-space lighting process. There are some really good explanations for what is really going on behind the scenes, and I highly recommend a listen. FXGuide has my utmost fandom at giving him some time to talk. Here is a more direct link to the <a href="http://www.fxguide.com/qt/1576/linear-workflow-discussion">podcast</a>.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-78311831130433480032009-09-13T13:02:00.004-04:002009-09-13T13:17:50.711-04:00Vray SwitchHey folks, I have some news. I've been testing Vray and RT over the last few weeks. And now that Vray for Maya is a reality, I can seriously consider switching. While I love 3dsmax for many things, I still feel Maya is required for many tasks, and wouldn't be without it in production. I'm getting pretty comfortable with Vray in both Max and Maya, and have to say it is a big step up from Mental Ray, which has unfortunately languished for the past few years with few useful updates.<br /><br />There are things I can do in Vray, that I just couldn't accomplish properly with MentalRay. Many may argue, you can do the same quality work in MR, and short of true DOF and MB in reasonable time, I would agree. However, the man-hours required to do the same level of work are vastly different. Vray's unified DMC sampling (global glossy settings) and many other features I'll discuss later, make setting up complicated realistic settings very easy. I have already done work with vray that I doubt I could have done in twice the time in MR. saving caches, baking, importance sampling in image and area lights... the list goes on, and I have to say I wish only that I had jumped in earlier. More soon. <br /><br />BTW, due to a few Russian spam comments, I've turned on posting administration. Thus your comments may take a day to show, since I have to approve them. But I'll generally let any post through that isn't spam. Even if you hurl insults;)Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-27383782494898345902009-06-18T16:02:00.004-04:002009-06-18T16:30:20.563-04:00Lighting BlockingJust a quick post to remind people I still exist;)<br /><br />Thought I'd share a working method for lighting if it weren't already obvious to you (It probably is). Just like animation, blocking is an important stage. Roughing out light positions, intensities, etc. should be as fast and interactive as it can be. When dealing with say, and interior render with GI, bounces, and such, fast seems to be an oxymoron. It can be bearable, and even fun if you optimize your scene for it.<br /><br />Just like blocking an animation, you don't need every feature turned on. While you can always tune your render settings, that's not what I'm talking about. I leave my FG and AA at medium. Say 75FG samples, 20 interpolation and global AA at 0 or 1 to start. Beyond that, the biggest slowdown in a render are the shaders. So use something very simple to block out lighting. a light grey mia or even a lambert. Such materials will render much faster.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG7v9gjM-4PLeFWx-ANcIuaNmluvxla67iPEYdyw9rgSQ6AStgdMslgRC2b1VjDnlGViT_eWU4EItK83dMBMONc7qU67eZrU9NoEkl0NhXQST_g3ScrNzXHH9T-AZFmGsBvELjWy673ZU/s1600-h/slide03.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 253px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG7v9gjM-4PLeFWx-ANcIuaNmluvxla67iPEYdyw9rgSQ6AStgdMslgRC2b1VjDnlGViT_eWU4EItK83dMBMONc7qU67eZrU9NoEkl0NhXQST_g3ScrNzXHH9T-AZFmGsBvELjWy673ZU/s320/slide03.jpg" alt="" id="BLOGGER_PHOTO_ID_5348765046047684034" border="0" /></a>My workflow is to create a lightingBlocking renderLayer with a material override to the mentioned grey material. Start blocking lights and render iteratively, or use IPR. Blocking lights without the interference of material color is useful in 2 ways. First in speed as mentioned, but also to judge values and lighting ratios more easily. Here's an example of a blocking render for a recent job. Some clients are receptive to seeing this stage, some are not. But if nothing else, it is helpful for you to make creative judgements.<br /><br />This is closer to a final blocking. In earlier iterations the bed was too dark, as was the hall. So a window was added to the hall, and a lamp (omni light) was placed at the bedside to fill the bed a bit. Ulimately, one more light was placed in the hall, and minor tweaks to some settings were required once full color and materials were added.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-6758854648337275212009-03-06T13:53:00.002-05:002009-03-06T14:22:45.845-05:00Liza Lee MusicNot that I secretly desire to sell or review music;)... but I would like to post a big kudos to my friend Liza who has released her second album, <a href="http://lizaleemusic.com/live/">Anima</a>. It's a Jazz album, and let's face it, I'm not a Jazz sort of guy, but she is highly influenced by some of my old favs... Kate Bush, Tori Amos, David Bowie... so there are more melodic aspects to this album that stretch its fingers well outside what scares me about Jazz. I'm proud of her work on this, and hope people discover her music. She is also coming out with a more alt-pop styled album soon, so keep a look out.<br /><br />Nice thing about this release, is that all proceeds go to the Society for Womens' Health Research. So buy it dammit!<br /><br />You can get it on <a href="http://www.amazon.com/s/ref=nb_ss_dmusic?url=search-alias%3Ddigital-music&field-keywords=liza+lee&x=0&y=0">amazon</a> and <a href="http://cdbaby.com/found?allsearch=liza+lee&submit=">cdbaby</a>... my bias is for amazon, nice and clean insta-downloads with no crappy drm.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-74877507126715157432008-10-20T19:13:00.006-04:002008-10-20T19:32:16.523-04:00A.A.W.W.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4Hidv2Xmqst3yeX5UOAUnhqLd1FhyPeegG740stvfnC7k3o_v0khyphenhyphenN4aSyyzWTKOM9EfV-pOHN50izF4gBMk1bHRThUpZ0CS7BhIOYEmFb-Zk7DFQsz2hS_V5OSNP8l6Rd2tEJzH2uug/s1600-h/AaronBW.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4Hidv2Xmqst3yeX5UOAUnhqLd1FhyPeegG740stvfnC7k3o_v0khyphenhyphenN4aSyyzWTKOM9EfV-pOHN50izF4gBMk1bHRThUpZ0CS7BhIOYEmFb-Zk7DFQsz2hS_V5OSNP8l6Rd2tEJzH2uug/s400/AaronBW.jpg" alt="" id="BLOGGER_PHOTO_ID_5259381042583584002" border="0" /></a><br />On Thursday afternoon (Oct 16th) at 11:56am, my wife and I became the proud parents of a perfect baby boy. Aaron Andrew "Woden" Weidenhammer was larger than expected... 8lb 1.3oz and 21in long. This is our first one and we are going nuts with all the new responsibility and lack of sleep, but all is well, and he's as cute as we could imagine.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJj-noUQGGpp9Vt6B_q109-ICqT1ThDuluIKCsOtyvMnpU1OGrmpgeExGgIy_syO8ZF88Hx-_YhLZ6PwGsjvbq0GLyko4tdbttkTDmXcdz0LcAWqLm9LohoHXf_nKF7MLNyAnb6Aua91w/s1600-h/WodenAndDad.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJj-noUQGGpp9Vt6B_q109-ICqT1ThDuluIKCsOtyvMnpU1OGrmpgeExGgIy_syO8ZF88Hx-_YhLZ6PwGsjvbq0GLyko4tdbttkTDmXcdz0LcAWqLm9LohoHXf_nKF7MLNyAnb6Aua91w/s400/WodenAndDad.jpg" alt="" id="BLOGGER_PHOTO_ID_5259381187920478978" border="0" /></a>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-80484636198162171742008-09-24T15:03:00.005-04:002008-09-24T16:00:33.988-04:00Gamma Tools 1.0<span style="color: rgb(255, 255, 255);"><span style="color: rgb(0, 0, 0);">Hey folks. I mentioned I was going to post some scripted tools for inserting/removing gamma nodes. Well, here are a few.</span><br /><a href="http://motr.net/scripts/GammaTools_1.0.zip"><span style="color: rgb(0, 0, 0);">gammaTools_1.0</span></a><br /><br /><span style="color: rgb(0, 0, 0);">Check out the readme for specific info, but here's a basic rundown. There are 3 tools (and 1 bonus for the brave).<br /><br /><span style="font-weight: bold;">insertGamma</span> - inserts gamma nodes with pre-set .455 (after any selected texture nodes with color connections).<br /><span style="font-weight: bold;">deleteGamma</span> - deletes selected gamma nodes while retaining connections<br /><span style="font-weight: bold;">gammaValue</span> - changes the gamma value globally or for selected nodes. This is a command-line tool only at the moment... so the value should be entered in after the command, then executed.<br /><br />There is also a hyperUserInit.mel which is a replacement for a standard maya UI script. If you choose to try this, make sure to back up the original one. This update adds the ability to insert Gamma nodes by Ctrl+Alt+Shift clicking on a connection line in the hyperShade.<br /><br />These are really simple scripts. We don't have a lot of time or manpower to devote to such tools, but I'm glad Al could get these done so quickly. Thanks go to Albert (a MotR cohort) for coding.<br /></span><br /></span>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-59145831137548895702008-09-22T14:12:00.003-04:002008-09-22T14:23:30.207-04:00Financial WoesWhile I'll try to avoid political posts for the most part here (with the election coming it's been hard to keep quiet;), I have to mention this <a href="http://www.dailykos.com/storyonly/2008/9/21/9322/74248/245/602838">link</a>.<br /><br />The article is from DailyKos, but is very clear and level-headed. It discusses some political/financial history in a way that doesn't require you to be an economist. McCain had a hand in bringing the economy to the brink it's at now. So please read and consider. Regulations are there to protect the people. Unfortunately the supremely rich have painstakenly removed regulations over time, to the detriment of the taxpayers.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-29223366509640667482008-09-22T13:30:00.009-04:002008-09-22T14:02:45.238-04:00Linear Workflow Addition 1<span dir="ltr">pixelvapour has pointed out an error with color swatch correction that I should expand on here. Thanks for kicking me in the pants to clarify this. He says that color swatches in maya are not corrected by the framebuffer setting in renderGlobals. He seems to be correct, and it may</span><span dir="ltr"> be a reason that larger studio workflows have mentioned using gamma nodes to correct just about everything in their scenes, and not the framebuffer setting. You might choose to do this, since it does avoid confusion. However, I'm still not a fan of having more nodes than I need. That said, I'll be working on some scripts that I hope to post here, that will assist in inserting/re</span><span dir="ltr">moving gamma nodes. Unfortunately, it seems a bug in MentalRay</span><span dir="ltr"> at the moment, that it does not respect nodeState "hasNoEffect". So simply turing off a gamma node doesn't work well... something I traditionally make use of in such scripts... but I digress.<br /></span><br /><span dir="ltr">Here's some test examples to illustrate the problem. First, the defualt texture map I'll be using. It is blackAndWhite for a reason... it's just easier to visually interpret g</span><span dir="ltr">amma differences that way.<br /></span><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxoCCr9I3TTt9ecZKmkPCmwdAaVjuwUx7nYxC0DWdo53YU6iQ79mhfyxBqOsdEVPZeeyvC7xvjHfqHk2kg9g0KYPSFt16lkoYv5SzbObwsyULRZ8JdeK5NfHP14wtWDKGcZvEG-QwydcM/s1600-h/textureDefault.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxoCCr9I3TTt9ecZKmkPCmwdAaVjuwUx7nYxC0DWdo53YU6iQ79mhfyxBqOsdEVPZeeyvC7xvjHfqHk2kg9g0KYPSFt16lkoYv5SzbObwsyULRZ8JdeK5NfHP14wtWDKGcZvEG-QwydcM/s400/textureDefault.jpg" alt="" id="BLOGGER_PHOTO_ID_5248901145604670274" border="0" /></a>For these tests, I've simply created a Physical Sun/Sky system... which if you'll recall, automatically creates an exposureSimple gamma correction node on my camera. I have also set my framebuffer to 32-bit float. So we are in linear space and previews are being adjusted for monitor viewing. The scene has a texture-mapped plane with the iamge above, and a procedural checker sphere. The colors applied to the checker color swatches are pure red, and medium grey (128, 128, 128). Leaving the framebuffer gamma at a defualt of 1. We get this.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfSiXuHQqJukXkjF2laOnbD7Zm7s-nqZ25D7Rxkyk9iC0e0Cd2XlmzouQIe2MiJXfGSbTEbpRdQlZTqZ_3V7erKptR5XooDsJcJ_rxc68lfBQwNfEwbX5jj_kK6OalK1lJhqom_xAbToM/s1600-h/noFramebuffer.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfSiXuHQqJukXkjF2laOnbD7Zm7s-nqZ25D7Rxkyk9iC0e0Cd2XlmzouQIe2MiJXfGSbTEbpRdQlZTqZ_3V7erKptR5XooDsJcJ_rxc68lfBQwNfEwbX5jj_kK6OalK1lJhqom_xAbToM/s400/noFramebuffer.jpg" alt="" id="BLOGGER_PHOTO_ID_5248902006132020530" border="0" /></a>The gamma is out of whack, and may look familiar to users that aren't adjusting the framebuffer gamma. To fix this, I suggested using the framebuffer gamma setting. adjust this to .455 to avoid applying gamma twice. .455 negates the textures baked-in gamma, setting it to linear-space. The texture will now work correctly, as seen below.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIt5hC36eO8ad28MBXVswPQVfXuILNEvw55t8p_NXZFt6UZwl-LlbNOtSTcHm050tc_1l8oGTZ7tPAcEqGaNo0nwNaVx-t497k_jO7xdOpHpDgHE1Dpugf1038KIFEVSrRJFfxxCFa_Ns/s1600-h/Framebuffer.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIt5hC36eO8ad28MBXVswPQVfXuILNEvw55t8p_NXZFt6UZwl-LlbNOtSTcHm050tc_1l8oGTZ7tPAcEqGaNo0nwNaVx-t497k_jO7xdOpHpDgHE1Dpugf1038KIFEVSrRJFfxxCFa_Ns/s400/Framebuffer.jpg" alt="" id="BLOGGER_PHOTO_ID_5248903545837470658" border="0" /></a><br />Now the texture is correct, however the procedurally mapped sphere has not changed. the mid-grey parts of the checker are not appearing close to 128,128,128. So we do have a problem here. Framebuffer gamma is not adjusting our color swatches, so we must do it manually.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghuapsOnkkSbzUR5R9SEWP-4F4Xq8X1a5m3EQReMpmkt3t8xfjN2DCzxgaUPvcI8uAygRT-aDCXbT77uNxUTntirj7PLXmMqLADoH5ISKnhCg6JLUesJD4y2bn2yaRNCS-4ZyNr4urehc/s1600-h/gammaNodeGraph.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghuapsOnkkSbzUR5R9SEWP-4F4Xq8X1a5m3EQReMpmkt3t8xfjN2DCzxgaUPvcI8uAygRT-aDCXbT77uNxUTntirj7PLXmMqLADoH5ISKnhCg6JLUesJD4y2bn2yaRNCS-4ZyNr4urehc/s400/gammaNodeGraph.jpg" alt="" id="BLOGGER_PHOTO_ID_5248904256685797650" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEika9xU0rVDl_twdqQKTPzJwRYnKIhWGFzw0XxLZh6LtKdhbe3Q28hn9BvIc-CyjLtuntF1N4_DzDw9wB3piaGY64xWZxZbasY_Jf6GHn3bSL2BWL3npPzQkbHbTYl-vE6uYKF51LU4-Rs/s1600-h/gammaNodeAttribs.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEika9xU0rVDl_twdqQKTPzJwRYnKIhWGFzw0XxLZh6LtKdhbe3Q28hn9BvIc-CyjLtuntF1N4_DzDw9wB3piaGY64xWZxZbasY_Jf6GHn3bSL2BWL3npPzQkbHbTYl-vE6uYKF51LU4-Rs/s400/gammaNodeAttribs.jpg" alt="" id="BLOGGER_PHOTO_ID_5248904471061961762" border="0" /></a><br />Above, we see the graph and attribs of the gamma node. Now the procedural is corrected for linear workflow, and the desired final result is this:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9jRpLqVf-Shp3o3-4OAqG9G62gf3PhjWDRxdZwrBYYg3J9_JoIm0q5NtwE7846PFPUoQNrIPSvDCvOhe_I9eWoXYGx6b0d3wIGpQwdvThFRTLw-NEdCEslS3hHAal-4IZY4gCaybulQg/s1600-h/framebufferandGamma.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9jRpLqVf-Shp3o3-4OAqG9G62gf3PhjWDRxdZwrBYYg3J9_JoIm0q5NtwE7846PFPUoQNrIPSvDCvOhe_I9eWoXYGx6b0d3wIGpQwdvThFRTLw-NEdCEslS3hHAal-4IZY4gCaybulQg/s400/framebufferandGamma.jpg" alt="" id="BLOGGER_PHOTO_ID_5248904872227357186" border="0" /></a>Finally! Correctness! The mid-grey renders properly.<br /><br />We are clearly not working with an ideal toolset here. Maya needs some modifications to accomadate this workflow for its ussers. It would be nice to have gamma adjustments in the shader, instead of piping in a color and gamma node just to pick a color... alas. Thanks for the comments!Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-63851230592234165162008-09-21T12:08:00.003-04:002008-09-21T12:19:45.530-04:00Render Layers for Viewport PreviewHere's a quick tip for Maya users:<br /><br />You may have had trouble with maya viewports when using MentalRay shaders. They don't always display properly in your viewports... in particuclarly when using "combined texture" previews. I despise when I see a flat black shape, unable to generate a preview. Often renderLayers compound display problems, as shaders swtich from one type to another. Honestly I haven't yet figured out all the possible combinations of issues that break proper viewport display. Often I just need to place a hilite or some other utility light, and I just cannot get a proper preview of diffuse and specular.<br /><br />So, I've taken to creating a "lightingPreview" renderLayer. This one I switch to, just to see overall light levels and specular positions/intensity. I usually give it a material override, unless individual colors are important. You can obviously apply any material/s you like to get the preview you like. RenderLayers can help you clear up your viewports and see what you need to, interactively. I've been finding this more and more useful as scenes get more complicated.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-74453999466596758802008-09-14T17:14:00.003-04:002008-09-14T17:28:53.328-04:00New PhotographyI thought I'd mention, that I've gotten a renewed interest in photography. I got a new camera (Canon Rebel XSI), and have been very pleased with the quality, even though I'm still only using the stock zoom lens. I can't wait to get some better lenses for it. But for now, I have posted a few images up at flickr. My photostream is <a href="http://www.flickr.com/photos/30447872@N05/">here</a>. Most of the images are taken as raw and tweaked using CS3's raw conversions. Really nice flexibility. One or two are HDR captures. They consist of 3 bracketed raw exposures at 2 stops difference each. Technically this is not HDR... more like MDR, but for some situations, it's all I need. Given the exposures are automated and hand-held, it's not a bad working process. For something critical, I would use a tripod and take more exposures. Here's one of my favorites.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6HhKVNM0bkDFgdnCWzJAyQd-lKwD8G7lazuAs-6JaxOeEaXaytypzGz9cGi-lX-cBSqXZ-dIk6WoIewDe53vN_PvneXtCdwSKw-aJ6ZMzpi5oZoE_EpLlWGkYrRfJgV9Tv05X_0t8nc/s1600-h/goldenGate_sm.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6HhKVNM0bkDFgdnCWzJAyQd-lKwD8G7lazuAs-6JaxOeEaXaytypzGz9cGi-lX-cBSqXZ-dIk6WoIewDe53vN_PvneXtCdwSKw-aJ6ZMzpi5oZoE_EpLlWGkYrRfJgV9Tv05X_0t8nc/s400/goldenGate_sm.jpg" alt="" id="BLOGGER_PHOTO_ID_5245992087157106002" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCkt56vnFMAPg2JBC7MTG-JJHvI8Hb4J9JgcdpP1DygNqCltxOTJ9Gdx3-HmM1uhaaeMqSLpa9o4mL7NFV2Lznigtr5M5wYWSSqIHKNhvdlE0CVK4dLz7Sgayqy63VeaSjqque13FG4jg/s1600-h/goldenGate_sm.jpg"><br /></a>Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-17089614990558447142008-09-14T12:17:00.005-04:002008-09-22T14:10:56.594-04:00Linear Workflow for Maya - Mental RayThis is a rather large one... I hope you don't get too bored reading it;)<br /><br />Since my platform is Maya/MentalRay... this will focus on that workflow. I'm sure users of MR in other apps can make good use of the info though, with a bit of modification.<br /><br />The basic idea is simple. Get rid of gamma correction entirely while working in 3d, except for the preview stage. In this workflow, gamma correction is only temporarily applied during preview renders so you can see them correctly on your monitor. When you render final output for compositing, you nix the viewing gamma correction, and render in linear space to a linear format like exr, hdr, or tif(32-bit float). You need the gamma correction while previewing since your monitor responds non-linearly. Usually a simple gamma of 2.2 on the output will correct just fine, but you can use any tonemapping method available to you, if you like. Often people use 1.8 for a slightly more film-like response... so you can change the gamma preview value a bit. I'm using a simple exposure correction node on my camera in Maya to apply a gamma of 2.2.<br /><br />I'll be using exr files for output, as they are a perfect balance for CG compositing use regarding file size, and dynamic range. They work in a 16-bit float space. This is NOT the same as a 16bit int that you may have worked with in Photoshop. Those files store data still as gamma encoded rgb files, with integers. They are limited in dynamic range, and are not the same as a 16-bit float exr. Float files are stored differently, and are capable of much higher dynamic range. Without getting into the specifics of the file format data, I can quote Christian Bloch's "HDRI Handbook," and tell you that 16-bit float exrs are capable of about 1 billion colors independent from the exposure. The dynamic range (exposure) can span about 32 EV's of dynamic range (stops for the photographers out there). For comparison, a common hdri photograph taken from inside a room looking out a bright window might consist of around 17 or 18 EV's. That's a lot of dynamic range. A typical 8 bit image covers about 6 EV's. The human eye, at any one time (not accounting for the eye's adaptation) can see about 14 EV's. So the exr format is very well suited for linear light storage and manipulation. Sorry for the tangent... but it was a useful one, I think.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdN-pw3Y-Q0YBZr-HaRAEeqWN-c_hkyHVIfkPcon3nuexyZdnhj5ribxGn4PnhfAhW_Ta98jazOVGpIQ-r4JlDzWFKisFp6_TuR0ZDoHnZAU_EuUej_WamE9UlfgxYhHWwBJb2OmQGuAY/s1600-h/attrib_sky.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdN-pw3Y-Q0YBZr-HaRAEeqWN-c_hkyHVIfkPcon3nuexyZdnhj5ribxGn4PnhfAhW_Ta98jazOVGpIQ-r4JlDzWFKisFp6_TuR0ZDoHnZAU_EuUej_WamE9UlfgxYhHWwBJb2OmQGuAY/s400/attrib_sky.jpg" alt="" id="BLOGGER_PHOTO_ID_5146914046538359474" border="0" /></a><br /><br />Now we get into some specific setups. At the moment, the easiest way to begin is to use the new "physical sun and sky" system. While I won't turn this post into a sun and sky tutorial, this system really forces the user to work in a linear way; since the system is physically-based. You'll find the creation option in the mental ray render globals at the bottom, under the "Environment" rollout.<br /><br />When you create a physical sun/sky, you'll have an overall multiplier. I often turn this down a bit, since the default can be a bit on the high side. Other settings are not important here, but of course fine tune the look of the sun/sky system.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQlV3LgoaPSDQX8l_XKqEKS0LPPynKP_4wck8PdKCjctEZuX0WBojR5eevdZsvYyQ-Kt37CT5IyiIVjYuLnGV-9rdZbx5fRk_N6rIYxOD4cPenBWb24sflHwGNudxk68rIcdDTMJeCAd4/s1600-h/framebuffer_2.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQlV3LgoaPSDQX8l_XKqEKS0LPPynKP_4wck8PdKCjctEZuX0WBojR5eevdZsvYyQ-Kt37CT5IyiIVjYuLnGV-9rdZbx5fRk_N6rIYxOD4cPenBWb24sflHwGNudxk68rIcdDTMJeCAd4/s400/framebuffer_2.jpg" alt="" id="BLOGGER_PHOTO_ID_5245925375092881250" border="0" /></a>To work in a linear workflow, you'll want to output float images, so you should change your MentalRay framebuffer to "RGBA (float) 4x32bit" (again, in your mental ray render gloablas). You should also change your Gamma setting here, to .45, as shown. I'll explain. You may have tried rendering a physical sun/sky system without making these changes. You should have noticed how washed out, the textures became, since they are now being used as linear space textures. The gamma that is encoded into them (2.2) must first be removed to function properly in the linear space that sun/sky is now working in. This is a much different way of lighting than traditional cg spots;)<br /><br />The Gamma setting seen above removes the encoded gamma in all textures in your scene. It does so by correcting them based on a known general rule... that bitmaps are encoded with a 2.2 gamma for screen display. See previous posts for more on that. For them to work in linear space, they are corrected with the inverse of 2.2 which is .45. If you render with these settings, your textures should render with the expected gamma/brightness/saturation that you would expect.<br /><br />Note: color swatches in Maya assume you are working in a gamma 2.2 space, so they will require manual adjustments with gamma nodes. By default, they will render incorrectly without such attention. See the Linear Workflow Addition 1 post above for more detailed info.<br /><br />When you created the "physical sun" system, Maya did something behind the scenes for you, to help with a linear workflow. If you graph your camera, you'll see that Maya hooked to it several new nodes. There is <span style="font-weight: bold;">sun direction</span>, <span style="font-weight: bold;">physical sky</span>, and <span style="font-weight: bold;">exposure</span><span style="font-weight: bold;"> simple</span>. The important node for us, is the <span style="font-weight: bold;">exposure simple</span> node. It is a lens shader, and remaps the rendering from linear to a gamma-corrected image. This is so you can preview output accurately. By default, it is set at a gamma of 2.2, which corresponds to the response of your monitor. So, <span style="font-weight: bold;">Physical Sun and Sky</span> automates a step for you. If you don't use the <span>physical sun</span> system, and still want to work in a linear workflow, you must remember to manually add an exposure lens shader to your output camera. The other exposure lens shader as of Maya2008, is the "mia_exposure_photographic." This is outside our current discussion, but if you know about photographic adjustments, then this should be fairly intuitive to use. We'll keep with a simple gamma adjust now.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSlymnPNXvBQND_-Nt7Na9AkCHChMoybLH138-wawJurXX3XxcRoGyNV09IaLjkHG9ePro6_AjP9zdNN_HfFM8TBsJlOtQV5TzXqyeKAue5l2trdCZvJ5p_mts4dQbw9Y1YDuJ9U83NF8/s1600-h/exposureSimple.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSlymnPNXvBQND_-Nt7Na9AkCHChMoybLH138-wawJurXX3XxcRoGyNV09IaLjkHG9ePro6_AjP9zdNN_HfFM8TBsJlOtQV5TzXqyeKAue5l2trdCZvJ5p_mts4dQbw9Y1YDuJ9U83NF8/s400/exposureSimple.jpg" alt="" id="BLOGGER_PHOTO_ID_5245930823670231698" border="0" /></a>So we are now in a proper "linear preview" workflow. I'll explain a decent working method. The gain control is an exposure control. It will do the equivalent of changing f-stops on a camera. If you want a more photographically friendly interface to exposure control, you can replace the lens shader connection from "mia exposure simple" to "mia exposure photographic"<br /><br />The gamma controls the output gamma for preview purposes. 2.2 is fine for a start on most monitors. changing this is a great way to fine tune the overall response and look of your image. 1.8 is sometimes used as it may give a more filmic response/look to the image. You are free to adjust this within reason, to achieve different looks. Pedistal, Knee, and Compression will have to wait for another tutorial, but they adjust white/black points of your image, etc. Most of this is better done in your image editor as final fine-tuing anyway. Getting an image close enough is fine, since we are lighting linearly, and will have a great deal of control in post, where it's easiest.<br /><br />As a gneral workflow, I generally get my light positions and basic intensities set, without too much fussing over perfection. Then use the gain shown above to fine tune exposure. Obviously you must still pay careful attention to your light settings, such as sample rates, since I'm sure you'll be using advanced features for them.<br /><br />Also worth mentioning, are light settings in a linear workflow. the physical sun/sky is made more friendly with a multiplier normalized to 1. Pretty easy. But when you create new standard lights you should make them physically accurate lights. The correct MR way of doing this is to add a physical light shader to your light. After doing this, your light settings are "taken over" by the shader. The intensity is now controlled by the color slot in the physical light attributes. when you double click on the color swatch, you'll see that the "value" has been given a large number (1000 I think). This is a start, to compensate for realistic light falloff over distance. You'll find that much larger values (like 100000) might be needed for more distant lights.<br /><br />Once you get previews you like, it's time for final output. You must remeber that when you output to an HDR linear format such as .exr, you should remove the output gamma correction. This is in the lens shader "mia exposure simple." the 2.2 value should be set to 1, so that no correction is being applied. When you bring the final images into your image editor/compositor, you should manually apply a gamma correction such as 2.2 to get your image into proper monitor viewing space. Now, effects that you add to these float images will be more accurate, such as motion blurs, lens fx, glows, you name it. Given yor compositor (such as Fusion5) is float capable, you can make use of some very accurate fx.<br /><br />Note: Having spoken to some in the industry that work in linear workflows. They have mentioned that using .45 in the renderGlobals/Framebuffer can lead to problems. They mention that .45 is too general, and can lead to incorrect gamma compensation. Also, gamma correcting the alpha or other mask channels can make for incorrect transparency edges. I would agree in very specific workflows where gamma is being very carefully controlled. The solution for them, is to leave the gamma at 1, therefore not gloabally correcting for texture gamma. They will then insert a gamma node after every texture node in the hypergraph, and correct each one individually with known vlaues. .45 might be used in many of these gamma nodes, but may not when not wanted (like mask channels, or textures with a different known gamma encoding).<br /><br />I have noted that the problems with this texture-by-texture-gamma workflow is troublesome as well, since it requires much more setup time, and really only works well when you have some scripts to help you en-masse, insert, remove and edit gamma nodes. Having all these gamma nodes added can also severely reduce the hypershade performance, to the point where it lags for minutes. You can solve that with a script to toggle the hypershade updates off temporarily. You can find one I've used for that at <a href="http://www.djx.com.au/blog/downloads/">djx blog</a>; look for "hypershadePanel.mel." In the end I've decided on a hybrid approach. I'll use a .45 in the framebuffer which works for most textures. When I come upon a mask or texture situation where I need different settings, I'll add a gamma node to those textures only, and apply values to compensate for the differences there. It vastly cuts down on nodes, and allows for specific control when you need it.<br /><br />Another note. Studios that work linearly, often have pre-render scripts to automatically toggle the lens shader gamma to 1, so the user doesn't need to remember to toggle that after all the preview work. These are often only applied when a render is submitted to the farm. Very smart. Thanks here to TJ Galda for insight on studio workflows.<br /><br />Good luck folks. I hope to update this a bit more with some detailed posts. It is a large subject. Hopefully this gets you working. Let me know if you have any specific questions and I'll do my best to clarify.Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.comtag:blogger.com,1999:blog-2119102662356425520.post-18084479348255281602008-09-14T12:17:00.002-04:002008-09-14T12:25:26.329-04:00Lighting Tip: Area Light SizeHere's something I think illustrates how we always have to be open to doing things in a new way. It's not dramatic, just something that kicked me in the pants a bit. When lighting scenes with area lights, I have often made a habit of keeping their physical size down to reduce the sampling needed to smooth them out. I've been unconsciously doing that for many years. I've recently seen some renderings from <a href="http://www.maddamart.com/">maddam</a> for which he has kindly posted some basic lighting screenshots on various forums. I noted the large scale of his area lights, and it hit me that I've been doing it wrong!<br /><br />The whole purpose of large area lights is to imitate the gigantic softboxes of real-world lighting setups. They are huge for a reason... and my techie response of shrinking them to reduce sampling is just plain foolish. especially these days with faster machines. I set up an area light product shot the other day, with an enormous area light (2 actually), and high sampling both for the primary and secondary rays. You know what happed? It looked better, more realistic, and the render time wasn't bad at all. Even at 8k (for print). Man, I need to get out of the past sometimes;)Andrewhttp://www.blogger.com/profile/06262142087459150114noreply@blogger.com