tag:blogger.com,1999:blog-5598966769220784242024-03-05T14:09:29.905-05:00Kobayashy's TipsTips and tricks for Autodesk Maya and SoftimageSylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-559896676922078424.post-56789152946810396792010-04-05T17:06:00.000-04:002010-04-05T17:06:11.459-04:00k_progressiveRendering in MmmmToolsJoe Crawford the creator <a href="http://mmmmtools.celestinestudios.com/">MmmmTools </a>have included my script <a href="http://www.creativecrash.com/maya/downloads/scripts-plugins/rendering/mental-ray/c/k_progressive_rendering--2">k_progressiveRendering</a> as downloadable package in the MmmmTools.<br />
<br />
The tools automate the download and the installation of the k_progressiveRendering script, but it does not include the Render Window icon implementation.<br />
<br />
MmmmTools is a really nice package of extremely usefull scripts to help speed up your work in Maya. I suggest taking a look at it. <a href="http://mmmmtools.celestinestudios.com/">http://mmmmtools.celestinestudios.com/</a>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com7tag:blogger.com,1999:blog-559896676922078424.post-74890258968133842402010-03-10T21:29:00.000-05:002010-03-10T21:29:45.392-05:00Mia_material texture hardware display problemIn Maya any duplicated a mia_material, mia_material_x or mia_material_x_passes, do not display the textures in the hardware display properly. You end up with a bunch of black objects.<br />
<br />
You can run <a href="http://kobayashystips.section-5.com/download/maya/2010/fixMiaHardwareShading.zip">this script to fix the problem</a>.<br />
<br />
Download the script and copy the mel file in any script folder, call the command <b>fixMiaHardwareShading() </b>in the script editor to execute the script.<br />
<br />
Enjoy textures in your 3d view once more!Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com13tag:blogger.com,1999:blog-559896676922078424.post-89011509543241355082010-02-15T09:58:00.000-05:002010-02-15T09:58:42.245-05:00Architectural material default value in SoftimageFollowing <a href="http://mentalraytips.blogspot.com/2010/02/softimage-defaults-issue.html#links">Zap's post</a> on the default AO values of the architectural (mia_material) material in Softimage.<br />
I have created corrected spdl for Softimage 2010.<br />
<br />
<a href="http://kobayashystips.section-5.com/download/softimage/Softimage_2010_mia_material_ao_fix.zip">Download the corrected spdl here</a>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com2tag:blogger.com,1999:blog-559896676922078424.post-73260223850351159632009-09-30T08:24:00.000-04:002009-09-30T08:24:32.578-04:00Linear Workflow dedicated websiteMaster Zap have launched a site on linear workflow <a href="http://www.lysator.liu.se/~zap/lwf/">http://www.lysator.liu.se/~zap/lwf/</a> There is nothing much on there at the moment but it will surely gets filled with a good amount of great information in the near futur.<br />
<br />
I thought it was worth talking about that site, you should check it out regularly...I know I will.Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com4tag:blogger.com,1999:blog-559896676922078424.post-84046626246580887752009-09-21T22:58:00.002-04:002009-09-21T23:00:27.814-04:00Physical Sun And Sky addon UpdateI have updated the Physical Sun and Sky plugin for Softimage. This update fix the bug where if you pick a light source instead of creating a new one the script would crash.<br />
<br />
You can grab the <a href="http://kobayashystips.section-5.com/download/softimage/PhysicalSkyAdvance_v1.1.zip">version 1.1 here</a><br />
<br />
Thanks to Robert for finding this bug.Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com4tag:blogger.com,1999:blog-559896676922078424.post-22367183352323033752009-09-17T15:45:00.000-04:002009-09-17T15:45:33.281-04:00Softimage 2010 demoThe Softimage 2010 version is finally out. You can download the demo on the Autodesk web site.<br />
<a href="http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=13572885">http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=13572885</a><br />
<br />
I was happy to see that it comes with Mental Ray version 3.7.55 ... Maya uses version 3.7.53.<br />
It is nice that both software are finally using the same version. Softimage was always one Mental Ray version behind.<br />
<br />
But at first glance there doesn't seem to be a whole lot of 3.7.5 features implemented in Softimage 2010. I will investigate more. The nicest feature I can think that would be usefull is the <a href="http://download.autodesk.com/us/maya/2010help/mr/manual/points.html#fo:map">map data</a> which can be used to save particle information. This could prove useful to pass particles system from Maya to Softimage. I will definitely look into that.Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com1tag:blogger.com,1999:blog-559896676922078424.post-1325858947120082952009-09-05T01:04:00.006-04:002009-09-05T01:11:09.835-04:00Linear Workflow in SoftimageSoftimage have great options to work in a Linear Workflow (LWF), in this post I will explain how to setup Softimage Preferences to work with the <a href="http://kobayashystips.blogspot.com/2009/09/physical-sun-and-sky-in-softimage.html">Physical Sun and Sky setup</a><br />
<br />
By default Softimage is setup to render in a non-physical way, when using a Physical setup you need to change these option to make sure that all you color swatches and textures are linearized.<br />
<br />
Here is the scene setup.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlHdX8Nj5_T2L2oV8v6qIjC85bhn3dJ6WySJ-J25sb_GDKxEmyEwGICx2C2rbZHveRYIJLdbKipZitGN5v0flvkMcqO2BOB-r_hlcdkJsIypjzVVHwv2NVaO3zbxeA5X_Rpyf8UUf7PEY/s1600-h/green.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlHdX8Nj5_T2L2oV8v6qIjC85bhn3dJ6WySJ-J25sb_GDKxEmyEwGICx2C2rbZHveRYIJLdbKipZitGN5v0flvkMcqO2BOB-r_hlcdkJsIypjzVVHwv2NVaO3zbxeA5X_Rpyf8UUf7PEY/s200/green.jpg" /></a></div>The diffuse value of the green sphere.<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5tlqSvLI6uVqDBjPAikfVTVakMiWK2j-GsuC03npgF6bcmlzYLdaHqrDoKJ0DRFl52lM610JK03yxALMH2jRldV9SJ_k61mrOZUMHGJSk-H6gOaH5DOUP4JImo2Utm82aUVkpBC6-4zc/s1600-h/MarbleGreen0012_1_M.jpg" imageanchor="1" style="clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5tlqSvLI6uVqDBjPAikfVTVakMiWK2j-GsuC03npgF6bcmlzYLdaHqrDoKJ0DRFl52lM610JK03yxALMH2jRldV9SJ_k61mrOZUMHGJSk-H6gOaH5DOUP4JImo2Utm82aUVkpBC6-4zc/s200/MarbleGreen0012_1_M.jpg" /></a><br />
<br />
The texture connected in the diffuse slot of the sphere to the right.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
In the preferences, the Color profile for the texture is set to Linear and the Color Management is not active. Rendering the scene with a gamma of 2.2 in the Photographic Exposure shader give you this.<br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN6j8X6l2eK-7pZyiy1A6e-BvUaCHLsWVbYajlEbFIhxPcWriwtPfSJuS4dDlTVUoXX-90b96b-39Pt0p0qJ_vsfxxzHrXAzHFeBoqOL2yNXJF2teV4x80dJyWOGP1mX5pEdZ1IkrGlQQ/s1600-h/defaultSoft.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN6j8X6l2eK-7pZyiy1A6e-BvUaCHLsWVbYajlEbFIhxPcWriwtPfSJuS4dDlTVUoXX-90b96b-39Pt0p0qJ_vsfxxzHrXAzHFeBoqOL2yNXJF2teV4x80dJyWOGP1mX5pEdZ1IkrGlQQ/s320/defaultSoft.jpg" /></a></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: left;">Everything is washed out! The typical non linear render. </div><div class="separator" style="clear: both; text-align: left;">Notice how the green of the sphere doesn't match the color swatch of the shader and how the texture is washed out.</div><div class="separator" style="clear: both; text-align: left;"></div><br />
We can fix this quite easily.<br />
<div class="separator" style="clear: both; text-align: left;"></div><br />
In the Preferences, in the <i>Rendering</i> section, under the <i>Image</i> tab, set the <i>Color Profile</i> to Automatic.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmv7_Q5vZvz27M_Gy5blDcDOH6RX1pAi8tudKAknZ9-UKfxsdOkDI4eyf9bXKWXhPVgGSUt2OUEOHb84mDYmiuS84n6NBiFbhAT9bDCVPx2e1q5x5Ey2xZkClXHdoXAaKoCth2Cl1eUM0/s1600-h/colorProfile.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmv7_Q5vZvz27M_Gy5blDcDOH6RX1pAi8tudKAknZ9-UKfxsdOkDI4eyf9bXKWXhPVgGSUt2OUEOHb84mDYmiuS84n6NBiFbhAT9bDCVPx2e1q5x5Ey2xZkClXHdoXAaKoCth2Cl1eUM0/s320/colorProfile.jpg" /></a></div><div class="separator" style="clear: both; text-align: left;">The automatic Mode will linearize sRGB image and keep high dynamic range image linear. You can also change this in the each image clip.</div><br />
You will also need to enable the <i>Color Management </i>in the<i> Display </i>section of the Preferences<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEBnZ3uhwAzuiBvAnf5Yor8eIW8FsWJBzcGsOav0G81qY2RsE3v9_dSfoIaIoTN7itcJ84oIePRV9RjuEbVH8nVsrgV5QH5YLxYhSMebdr6LtnxePBKWUmugZYRbaudWKOOkzDvP-k4Bw/s1600-h/colorManagement.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEBnZ3uhwAzuiBvAnf5Yor8eIW8FsWJBzcGsOav0G81qY2RsE3v9_dSfoIaIoTN7itcJ84oIePRV9RjuEbVH8nVsrgV5QH5YLxYhSMebdr6LtnxePBKWUmugZYRbaudWKOOkzDvP-k4Bw/s320/colorManagement.jpg" /></a></div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
In the Photographic Exposure shader you will need to set the gamma to 1.0. Since Softimage is now in charge of the gamma, you can remove the gamma from the exposure shader.<br />
<br />
Now when you render you will get a a better result in the UI.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMvIWCLNZxEVoGgncJG4EubNZu9TY__08xy8RwFQaXgchvWWgceX9JEaChx2I1Z80HLneZ-fa7yPx91tNo4OAAC0MtiOByfrIgK2zfrfCqnAGbrFl5gZoBjAiw8wch0b9StOP1W7rgEZU/s1600-h/LWF_8bit_gamma.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-decoration: none;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMvIWCLNZxEVoGgncJG4EubNZu9TY__08xy8RwFQaXgchvWWgceX9JEaChx2I1Z80HLneZ-fa7yPx91tNo4OAAC0MtiOByfrIgK2zfrfCqnAGbrFl5gZoBjAiw8wch0b9StOP1W7rgEZU/s320/LWF_8bit_gamma.jpg" /></a></div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
You might have noticed that the green color swatch in the shader now match the render result. This is exactly what we want, now the color you set in your swatch match the render... how wonderful!<br />
<br />
But if you render the current pass to disk in a 8 bit format, when you look at the renders everything is darker...<br />
<div class="separator" style="clear: both; text-align: center;"></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkuxbVSEaaJ1hZosjdvMd3XSD_-tDZg8I0ht-VXrMW5ffyCLe3QNievjTP0D9q0DXtZQ2n01b6yQIwakck6xIbeJUgiX8liuMLvC6hbMP19yn8KQPhMKw3Ls8sym_WKv7KRU-LYceN7y0/s1600-h/LWF_8bit.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkuxbVSEaaJ1hZosjdvMd3XSD_-tDZg8I0ht-VXrMW5ffyCLe3QNievjTP0D9q0DXtZQ2n01b6yQIwakck6xIbeJUgiX8liuMLvC6hbMP19yn8KQPhMKw3Ls8sym_WKv7KRU-LYceN7y0/s320/LWF_8bit.jpg" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
This is because Softimage Color Management is only applied in the UI, when you render to disk the gamma is not applied to the output. This is quite useful when doing compositing because you are not dealing with baked-in gamma. All you need to do is apply a 2.2 gamma at the end to get the proper result.<br />
<br />
In a comment of my previous post, Edin pointed out that it is possible to apply the gamma when rendering out to disk. In the pass option, locate the <i>Pass Gamma Correction</i> section and enable the <i>Apply Display Gamma Correction</i><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGxwfnP1ihJ3RTcfvurvfsStqXCJCQiPMzBcfjHN0XkBq1NXo1_p2Kk8_Rjb19-q-DhoHvzQZYtaT2wBUKYGBcYIgMyQ46XCSRc4c08HKj5vi7UL5Y4tzBUIXnP0d5f7tlnj8WCI7BN-A/s1600-h/pass_gamma.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGxwfnP1ihJ3RTcfvurvfsStqXCJCQiPMzBcfjHN0XkBq1NXo1_p2Kk8_Rjb19-q-DhoHvzQZYtaT2wBUKYGBcYIgMyQ46XCSRc4c08HKj5vi7UL5Y4tzBUIXnP0d5f7tlnj8WCI7BN-A/s320/pass_gamma.jpg" /></a></div><br />
<br />
<br />
<br />
You end up with this result.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjocDb9IgfVjogjNzDHm9ORU-YQveXwiRdSaqwzVeIKC1qy_mTLUJNpfRYbqw4Dfd3fDCW14eJc13Yfqb8e-I0ikZx2qn24Nb5Bz36Inn3FUos2UkLlcY2ezvQeOEmcOeVxzWGsBuMVjo0/s1600-h/LWF_pass_gamma.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjocDb9IgfVjogjNzDHm9ORU-YQveXwiRdSaqwzVeIKC1qy_mTLUJNpfRYbqw4Dfd3fDCW14eJc13Yfqb8e-I0ikZx2qn24Nb5Bz36Inn3FUos2UkLlcY2ezvQeOEmcOeVxzWGsBuMVjo0/s320/LWF_pass_gamma.jpg" /></a></div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
For some reason the gamma not applied to the environment ... this is not a big deal because you will rarely use the physical sky as your background. But it is something to keep in mind when using this pass option.<br />
<br />
I hope this little tutorial was helpful. Feel free to point out any errors or omission in this post ... or even suggest alternative methods.<br />
<br />
Finally, here are 2 links that you might find useful. They discuss LWF in Softimage and in Vray<br />
<a href="http://community.softimage.com/forum/autodesk-softimage/rendering/softimage-gamma/page-1/">http://community.softimage.com/forum/autodesk-softimage/rendering/softimage-gamma/page-1/</a><br />
<a href="http://www.aversis.be/tutorials/vray/essential_gamma_01.htm">http://www.aversis.be/tutorials/vray/essential_gamma_01.htm</a>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com7tag:blogger.com,1999:blog-559896676922078424.post-60229790153115951242009-09-04T22:33:00.007-04:002009-10-17T21:42:11.529-04:00Physical Sun and Sky in Softimage<div>If you have used the Physical Sun and Sky in Maya and Softimage, you may have noticed that in Softimage the setup is halfway done. Only the sky is created, no lens shader is used and the Sun is using a soft light shader instead of the physical sun shader.<br />
<br />
If you want to have a setup similar to Maya you have to connect everything manually. I got tired of connecting all the shaders manually so I have modified the Initialize sky shader script to include all those changes.<br />
<div style="text-align: left;"><b><br />
</b><br />
<b><a href="http://kobayashystips.section-5.com/download/softimage/PhysicalSkyAdvance_v1.1.zip">Download the addon here</a></b><br />
<b><br />
</b><br />
</div><div><div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd5RpTSyOV3633G1i3LVUNd9bo6DZQ4vrIODzmW3rF-HTHH5tNvr8wqJq-w4jmBT8f-gGZJyB5Or6tcZZDk8Yp2SThTnZZSVT1ESx6YyIuRxXpIpryvIZ8C6Ij1D0BkFZ7i1HkjX9LVKE/s1600-h/init.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd5RpTSyOV3633G1i3LVUNd9bo6DZQ4vrIODzmW3rF-HTHH5tNvr8wqJq-w4jmBT8f-gGZJyB5Or6tcZZDk8Yp2SThTnZZSVT1ESx6YyIuRxXpIpryvIZ8C6Ij1D0BkFZ7i1HkjX9LVKE/s200/init.jpg" /></a>Once installed <i>(see Softimage Help on how to install addons) <span style="font-style: normal;">you will have a new entry in the Pass > Edit menu : <b><i>Initialize Physical Sun/Sky Shader</i></b></span></i><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-LxILaH6nFqWEM2Fu1Ru2KxUznGXsrkXTjbpgQcbAwEVVmTfHi0GpU5k8PGmA08A6l3izqpHf_1hapX5mkX65QC9ULQsNItGS0FOjT_rGD_s6XiU8nECwST2az-lUcB9tqm3oAHobRk/s1600-h/initUI.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-LxILaH6nFqWEM2Fu1Ru2KxUznGXsrkXTjbpgQcbAwEVVmTfHi0GpU5k8PGmA08A6l3izqpHf_1hapX5mkX65QC9ULQsNItGS0FOjT_rGD_s6XiU8nECwST2az-lUcB9tqm3oAHobRk/s200/initUI.jpg" /></a>The Initialize window is similar to the default Initialize Sky Shader window. Choose your pass and you sun light then click Apply.<br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWOiivW-jPuxxl2ra_QF_ASodWalOkA-lJ4syt1VC4KllRc2COU4Q0tVjm_Be30nq2rycjatckFmol9jEj2SzglsT0FUxximMr3gozCxGRY2fyeBsMHxayHE072DlSb1qJ_ZSTtK9m4FA/s1600-h/envirStack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWOiivW-jPuxxl2ra_QF_ASodWalOkA-lJ4syt1VC4KllRc2COU4Q0tVjm_Be30nq2rycjatckFmol9jEj2SzglsT0FUxximMr3gozCxGRY2fyeBsMHxayHE072DlSb1qJ_ZSTtK9m4FA/s200/envirStack.jpg" /></a>The plugin will create the physical Sky shader in the pass environment stack.<br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqiKo_lEIpCF9T-9OPFflRgoVC74hQFyl5Y1a04EtZlC8PMGeKdY3gnqFvDcBR5pw8rS9Ggw_64PCtqra3-pxb_bK8OWzueBCjo10220uxbTZLm_jyRiYfuZByruGUGHjQf2dhwPN2JaE/s1600-h/lensStack.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqiKo_lEIpCF9T-9OPFflRgoVC74hQFyl5Y1a04EtZlC8PMGeKdY3gnqFvDcBR5pw8rS9Ggw_64PCtqra3-pxb_bK8OWzueBCjo10220uxbTZLm_jyRiYfuZByruGUGHjQf2dhwPN2JaE/s200/lensStack.jpg" /></a>It will also add a photgraphic Exposure shader in the pass lens stack and set the pass lens stack mode to <i>Add After Camera Lens Shaders.</i><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdjHIt4X4dyi9My_SPNFrkWUoviz5JOqMjqxJwjPkfQvDo0EprYARJ3mK6ZSU-oCtrghtSoMQ7U9rehWKLIdJLG34j6olhTGBLpZJ8UZ7MudV77ikuq_4Oq5o4bSxzJ3Je5LF9ipsnOmk/s1600-h/lightShader.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdjHIt4X4dyi9My_SPNFrkWUoviz5JOqMjqxJwjPkfQvDo0EprYARJ3mK6ZSU-oCtrghtSoMQ7U9rehWKLIdJLG34j6olhTGBLpZJ8UZ7MudV77ikuq_4Oq5o4bSxzJ3Je5LF9ipsnOmk/s200/lightShader.jpg" /></a>And most importantly it will add a Physical Sun shader in the light shader, replacing the default soft light shader.<br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">Now you have all the proper shaders to create physically accurate renders.<br />
</div><div class="separator" style="clear: both; text-align: left;">But some of the default values in these shaders are not correct, the plugin will take care of adjusting them correctly.<br />
</div><br />
<div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTtsLC0r2bWPMBq3tQ7T68R6NNA40iNTVVcOLOsHOQwbwEBaOu_p7GvpGmtCXp5BvJXZIPYWZ4coO0JxpfxW4vAriLV1NVOMrpSxkp8EuV0qBfBjMlRkLNOxq45BCZVJ42-gsWvzJ_pQY/s1600-h/sunUI.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTtsLC0r2bWPMBq3tQ7T68R6NNA40iNTVVcOLOsHOQwbwEBaOu_p7GvpGmtCXp5BvJXZIPYWZ4coO0JxpfxW4vAriLV1NVOMrpSxkp8EuV0qBfBjMlRkLNOxq45BCZVJ42-gsWvzJ_pQY/s200/sunUI.jpg" /></a>In the Physical Sun shader you will notice that most properties are controlled by an expression, exactly like in Maya.<br />
</div><br />
You can edit the shadow softness and shadow samples of the Sun in this shader.<br />
<br />
<br />
Most of the values in this shader need to match the value of the Physical Sky shader exactly. Connecting these values with expression is the easiest way to keep these values linked.<br />
<br />
<div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbnO2shCChzZ-IG81wQy2qmk3fH8M7EKEg1h8ZerwYIGN6BVW6OYxmaHlhZ4ieGeIxc-9WXcU8Dcv_LLWQgRxWzK7tN3lyIm52ICA6GmfWUGPXhQNAqoqlajTymxR2WBfNVHXiCSh4Gno/s1600-h/skyUI.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbnO2shCChzZ-IG81wQy2qmk3fH8M7EKEg1h8ZerwYIGN6BVW6OYxmaHlhZ4ieGeIxc-9WXcU8Dcv_LLWQgRxWzK7tN3lyIm52ICA6GmfWUGPXhQNAqoqlajTymxR2WBfNVHXiCSh4Gno/s320/skyUI.jpg" /></a>In the Physical Sky shader, the multiplier values is set to 1 instead of 0.1 and the rgb Unit Convertion is set to 0.318<br />
</div><br />
As mentioned in the <a href="http://download.autodesk.com/us/maya/2010help/mr/shaders/architectural/arch_sunsky.html#Units" target="_blank">Sun and Sky Mental Ray documentation</a>:<br />
<i><span style="font-family: inherit;">When setting the rgb Unit Convertion values to 0.318, the final rendered pixels in the image are true photmetric luminance values in candela per square meter.</span></i><br />
<span style="font-family: helvetica; font-size: 13px; line-height: 17px;"> <i><br />
These true luminance values then fit perfectly as input to the photographic tone mapper.</i></span><br />
<span style="font-family: helvetica; font-size: small;"><span style="font-size: 13px; line-height: 17px;"><i><br />
</i></span></span><br />
<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH3MW9osDdhS37kP9RsUSKDArbQj1bmOxIX9iSDOTxgEQ7oi9yai4s0GBEHU3EYZIQqXofgXIWYu0_UZkDpQVC00GveF-qxa2H98PcRiRz6IxuCyRsVVdRGzwhnjofBeNplUv6ZVBk2rM/s1600-h/tonemapper_1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH3MW9osDdhS37kP9RsUSKDArbQj1bmOxIX9iSDOTxgEQ7oi9yai4s0GBEHU3EYZIQqXofgXIWYu0_UZkDpQVC00GveF-qxa2H98PcRiRz6IxuCyRsVVdRGzwhnjofBeNplUv6ZVBk2rM/s320/tonemapper_1.jpg" /></a><br />
</div><span style="font-family: helvetica; font-size: small;"><span style="font-size: 13px; line-height: 17px;">For the Photographic Exposure shader, the plugin sets the <i>F-Stop Number </i>to 16 and the <i>c/m2 Factor</i> to 1.</span></span><br />
<span style="font-family: helvetica; font-size: 13px; line-height: 17px;">Setting the c/m2 Factor to 1 is important to stay in true photographic mode. </span><br />
<span style="font-family: helvetica; font-size: 13px; line-height: 17px;">These setting represent the <i>Sunny 16 </i>rule in photography. As discussed in the<a href="http://download.autodesk.com/us/maya/2010help/mr/shaders/architectural/arch_camera.html#The_"Photographic"_Tone_Mapper" target="_blank"> Physical Exposure Mental Ray documentation.</a></span><br />
<span style="font-family: helvetica; font-size: 13px; line-height: 17px;"><br />
To adjust the brightness of the image you can simply adjust the Shutter Time and the F-Stop.</span><br />
<span style="font-family: helvetica; font-size: small;"><span style="font-size: 13px; line-height: 17px;"><br />
Note that the gamma value is set to 2.2. It is possible to work in linear workflow in softimage, but I decided to keep the values to the Mental Ray default.<br />
<br />
I will discuss linear workflow using the Physical Sun and Sky in a future post ... so stay tuned.</span></span><br />
<span style="font-family: helvetica; font-size: 13px; line-height: 17px;"><br />
Finally the plugin sets 2 more things: it enables the Final Gathering and set the Ambiance Color to Black. <i>(Don't forget to set the Final Gathering for the Region Render as the plugin do not set it) </i></span><br />
<span style="font-family: helvetica; font-size: 13px; line-height: 17px;"><br />
With this setup you will have the exact same setup as Maya ... If you downloaded the Maya modification script provided in the <a href="http://kobayashystips.blogspot.com/2009/09/mia-exposure-photographic-ae-template.html" target="_blank">previous post</a> and you create a physical sun and sky setup using the Photographic exposure.</span><br />
<div class="separator" style="clear: both; text-align: center;"><span style="font-family: helvetica; font-size: small;"><span style="font-size: 13px; line-height: 17px;"><span style="font-family: 'Times New Roman'; font-size: medium;"><span style="font-size: 16px; line-height: normal;"><br />
</span></span></span></span><br />
</div><span style="font-family: helvetica; font-size: 13px; line-height: 17px;"> Here are renders done in Maya 2010 and Softimage 7.5. Both renders are using the default Physical Sun and Sky settings mentioned in this post and mia_materials (architectural shader).</span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWbrEbSvO0jNUVHmZN-QWusHMukPJ_ezlcNjX-OSWVFWCc3ix-DDnspYxiZpiIK_khuftHn2Ku_AOnUvTirJwDqbJWQw8mEjvD0h5kq2EOVmoVi44YVxkzDsVwW3zsv69MEAYPE4z6ZV4/s1600-h/mayarender.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWbrEbSvO0jNUVHmZN-QWusHMukPJ_ezlcNjX-OSWVFWCc3ix-DDnspYxiZpiIK_khuftHn2Ku_AOnUvTirJwDqbJWQw8mEjvD0h5kq2EOVmoVi44YVxkzDsVwW3zsv69MEAYPE4z6ZV4/s320/mayarender.jpg" /></a><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWbrEbSvO0jNUVHmZN-QWusHMukPJ_ezlcNjX-OSWVFWCc3ix-DDnspYxiZpiIK_khuftHn2Ku_AOnUvTirJwDqbJWQw8mEjvD0h5kq2EOVmoVi44YVxkzDsVwW3zsv69MEAYPE4z6ZV4/s1600-h/mayarender.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a>Maya 2010<br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrFzdXlV7-xCW-bnbz3cEMNAE8KeLU0eK49W5C9DNRHQyko3RfrRzOjHDstM0m7UOk0tGosUM-nddvFeVD4XyBxAZxCipioXrjfDicXP7oAp8natYlCTocie5EouELDrkfL4P1QHyHzo0/s1600-h/Default_Pass_Main.1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrFzdXlV7-xCW-bnbz3cEMNAE8KeLU0eK49W5C9DNRHQyko3RfrRzOjHDstM0m7UOk0tGosUM-nddvFeVD4XyBxAZxCipioXrjfDicXP7oAp8natYlCTocie5EouELDrkfL4P1QHyHzo0/s320/Default_Pass_Main.1.jpg" /></a><br />
</div><div class="separator" style="clear: both; text-align: center;">Softimage 7.5<br />
</div><span style="font-family: helvetica; font-size: 13px; line-height: 17px;"><br />
As you can see the result is similar in both application. </span><br />
<span style="font-family: helvetica; font-size: small;"><span style="font-size: 13px; line-height: 17px;"><br />
</span></span><br />
<span style="font-family: helvetica; font-size: 13px; line-height: 17px;">I hope you like this plugin.</span><br />
</div></div></div>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com23tag:blogger.com,1999:blog-559896676922078424.post-65031890712891685332009-09-02T19:01:00.010-04:002009-09-04T10:58:18.867-04:00mia exposure photographic AE templateMaya doesn't ship with an AETemplate for the mia_exposure_photographic so you end up with an Attribute Editor showing raw attribute without any logic.<div><br /></div><div>If you read the <a href="http://download.autodesk.com/us/maya/2010help/mr/shaders/architectural/arch_camera.html#The_"Photographic"_Tone_Mapper"target="_blank">Mental Ray documentation on the photographic exposure shader</a> you can see that if the film_iso attribute is set to zero then the shader is in Arbitrary mode, then many attributes are ignored, like the camera_shutter and f_number for example.</div><div><br /></div><div>I have created this AETemplate to add some logic in the Attribute Editor of the shader. The Template also group attributes logically and hides the more advance attributes.</div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3LDi78ubRXrlpRqLI_n13lV3l6BpXlXgdeROpFEk2kosuX_278_C_TLMJuO39jPowBeSKqyT0RqS3LdAeSdYQldVk_d0jiBj8BW_dhwlY_fTjA_qxU3SWZRnDsFoSPJJuPFKwaP7Rb2U/s400/mia_exposure_photgraphic_AE.jpg" style="cursor:pointer; cursor:hand;width: 400px; height: 316px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5377098200343754386" /></div><div><br /></div><div><a href="http://kobayashystips.section-5.com/download/maya/2010/AEmia_exposure_photographicTemplate_maya2010.zip">Download the AETemplate here</a> <i>(View the readme.txt for installation)</i></div><div><i>EDIT (sept 04, 2009): I have update the script to force the automatic photon energy attributes of the physical sun shader to ON. This is usefull if you want to shoot photons from the physical sun. </i></div><div><i><br /></i></div><div>It is also sugested in the <a href="http://download.autodesk.com/us/maya/2010help/mr/shaders/architectural/arch_sunsky.html#Units"target="_blank">documentation </a>to set the rgb_unit_convertion value of the physical sun and sky to 0.318 when using the physical tonemapper.</div><div><br /></div><div>To help you acheive this, you can download a modified render global script created by David Jonhson that will promp you with a choice of tonemapper to use when creating a physical sun/sky setup and set the appropriate rgb_unit_conversion value.</div><div><a href="http://www.djx.com.au/blog/2007/10/16/choose-exposure/"target="_blank">>You can visit David site to download the script.</a></div><div><br /></div><div>I have created a slightly modified version of David script. </div><div>David use a gamma value of 1 in both the simple and physical tonemapper and set the miDefaultFramebuffer at 0.45.</div><div>I prefer using a gamma value of 2.2 in both shader and leave the miDefaultFramebuffer value at 1.</div><div>This is purely a personal choice. I prefer controling the gamma in the tonemapper to avoid confusion.</div><div><br /></div><div>My script also uses a promp dialog instead of a small window. </div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YUug33Hm7CiN4B6T2GJ_kZoCKoFd99dbhuwmwSHYO4JhrRA_IthF5kcPU0byGFMUEJlzGtIExV1BaXUX-ne-EshXkVbCtLvXsgwr_WBXh1iFGU7LxUUo7ClFTHSgvIy-NYztp5s7zng/s400/exposureChoice.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5377104663737983138" style="cursor: pointer; width: 240px; height: 94px; " /></div><div>Again this is purely personal. I find this method simpler and more straightforward.</div><div><a href="http://kobayashystips.section-5.com/download/maya/2010/createMentalRayIndirectLightingTab_maya2010.zip">Download my version of the script</a>.</div><div><br /></div><div>Both method are equaly good in my opinion, you can pick the one you feel more comfortable with.</div><div><br /></div><div></div>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com4tag:blogger.com,1999:blog-559896676922078424.post-76711796916464246942009-08-31T19:49:00.014-04:002009-09-03T01:16:16.026-04:00Maya Ambient Occlusion tips<div><div>You may have notice 2 strange attributes in the mib_amb_occlusion texture in Maya <i>Id Inclexcl</i>and <i>Id Nonself.</i><div><i><br /></i></div><div>If you look in at the <a href="http://download.autodesk.com/us/maya/2010help/mr/shaders/occlusion.html#mi_shader__mib_amb_occlusion">mib_amb_occlusion docs</a> in the mental ray documentations, you can see the description of those attributes.</div><div><br /></div><div>So with these you can include or exclude objects with a given id... or even force given object to cast AO on other objects but themself... this looks cool! so what appends when you set a value in there? You lose the occlusion or there are no changes right?</div><div><br /></div><div>That's because these values are mental ray ids and you need to assign a mental ray id to your objects ... but how can I do this do you ask?</div><div><br /></div><div>You need to add an extra attributes named <i>miLabel</i> to the transform nodes of your objects and set the id in this miLabel attribute.</div><div>But I need to add this attribute on all my objects manually you ask again? of course not! Use <a href="http://kobayashystips.section-5.com/download/maya/miLabel.zip">this script</a> (see the readme file in the zip for installation and usage)</div><div><br /></div><div>Now you can take advantage of this feature!</div><div><br /></div><div>In this example I have added the miLabel attribute to all the objects, I have set the miLabel of the ground plane to 1, the cube to 2 and the sphere to 3. All the obejcts are assign to the same constant shader using the mib_amb_occlusion texture as color.</div><div>Here are different results when setting each value in the mib_amb_occlusion texture.</div></div><div><div style="text-align: left;"><br /></div><div style="text-align: left;">Id Inclexcl: 0 Id Nonself: 0</div><div style="text-align: left;">(both feature disabled)</div><div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh89ph0aWJiGIlYOayUEq0H-b5LLvQjhA4ng5P-142Ax6XDXvfLCIre_A-i8MRncczQjRAS9hUeitexDAbTTxTvL8JGZzozu2kQYozMCsDrkBs0kOSiRyVN6AivYr8lExbggomMYgihT70/s1600-h/occ.jpg" style="text-decoration: none;"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh89ph0aWJiGIlYOayUEq0H-b5LLvQjhA4ng5P-142Ax6XDXvfLCIre_A-i8MRncczQjRAS9hUeitexDAbTTxTvL8JGZzozu2kQYozMCsDrkBs0kOSiRyVN6AivYr8lExbggomMYgihT70/s400/occ.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5376285719926193522" style="cursor: pointer; width: 400px; height: 300px; " /></a></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Id Inclexcl: 2 Id Nonself: 0</div><div style="text-align: left;">(include only objects with id 2)</div><div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1FAzcQUN8QBzGStis6uUq7bdEMLMMo-B0FHkzCUjr8wmSUv-xiWs4iG_lHYawnHuZilTZGMdVhr870WlwFDJ86N8pJQFECF-S7roS0egCnuuzHiIR6zTq_JsG9j8et_Zu16OHnQQ_eSU/s1600-h/include.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1FAzcQUN8QBzGStis6uUq7bdEMLMMo-B0FHkzCUjr8wmSUv-xiWs4iG_lHYawnHuZilTZGMdVhr870WlwFDJ86N8pJQFECF-S7roS0egCnuuzHiIR6zTq_JsG9j8et_Zu16OHnQQ_eSU/s400/include.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5376285725421587314" style="cursor: pointer; width: 400px; height: 300px; " /></a></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Id Inclexcl: -2 Id Nonself: 0</div><div style="text-align: left;">(Exclude objects with id 2)</div><div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiURV8sjxrzn_-Do9DesE-0-a_6tzCDPo_k2BqtAg1NnBuv4XuSyPptxsksuLyL-aD7gWIRPTCD3RB5W1ITQzfl9iGayGZJoQCZGkRlsI60csjxR92MAvgAocRjZeRk1UhGmnElIh59wmE/s1600-h/exclude.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiURV8sjxrzn_-Do9DesE-0-a_6tzCDPo_k2BqtAg1NnBuv4XuSyPptxsksuLyL-aD7gWIRPTCD3RB5W1ITQzfl9iGayGZJoQCZGkRlsI60csjxR92MAvgAocRjZeRk1UhGmnElIh59wmE/s400/exclude.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5376285725871364194" style="cursor: pointer; width: 400px; height: 300px; " /></a></div><div style="text-align: left;"><div style="text-align: left; "><br /></div><div style="text-align: left; ">Id Inclexcl: 0 Id Nonself: 2</div><div style="text-align: left; ">(Objects with id 2 do not cast AO on themself)</div></div></div></div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidjbxFRgxpRfIntepTRNLdpHyyaNmj0ZQC_vuv7kRhfqycyfVHirr5X4-Xiakrm6IvpxVw9e1j2Cmbx4R03TWxSP-n3ZycnGaxFPoLYQ-v8mdkXKp_uPzxkJaakID_jFbUUW2s4ndzupg/s1600-h/nonself.jpg" style="text-decoration: none;"><img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidjbxFRgxpRfIntepTRNLdpHyyaNmj0ZQC_vuv7kRhfqycyfVHirr5X4-Xiakrm6IvpxVw9e1j2Cmbx4R03TWxSP-n3ZycnGaxFPoLYQ-v8mdkXKp_uPzxkJaakID_jFbUUW2s4ndzupg/s400/nonself.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5376285736094376866" /></a><div><br /></div><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidjbxFRgxpRfIntepTRNLdpHyyaNmj0ZQC_vuv7kRhfqycyfVHirr5X4-Xiakrm6IvpxVw9e1j2Cmbx4R03TWxSP-n3ZycnGaxFPoLYQ-v8mdkXKp_uPzxkJaakID_jFbUUW2s4ndzupg/s1600-h/nonself.jpg" style="text-decoration: none;"></a><i>Note that the use of the number 2 is arbitrary, I could have used 34 as my id on the cube and use 34 or -34 as a id value in the mib_amb_occlusion shader.</i></div><div><i><br /></i></div><div>I hope this tips can help you achieve some tricky Ambient Occlusion renders.</div><div><i><br /></i></div><div><b><i>I would like to thanks Daniel Kvasznicza </i></b><a href="http://www.inetgrafx.com/"><b><i>http://www.inetgrafx.com</i></b></a><b><i> for pointing this out to me.</i></b></div>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com2tag:blogger.com,1999:blog-559896676922078424.post-70486003514516485382009-08-30T23:09:00.014-04:002009-08-30T23:58:44.189-04:00Hotkey view changes, isolate select and Hidden line shade viewIn Maya, I never really liked having to toggle my 3d view to perpspective, front, side and top using the space bar menu or to have to dig into a panel menu to isolate my selection (I hate doing hide unselected... but that's me) ... I prefer using hotkeys for those.<div><br /></div><div>Unfortunatly there is no way to hotkey these without having to create the commands using mel.</div><div>Fortunatly creating a new hotkeyable command in Maya is really easy. </div><div><br /></div><div><div><div><div>Here are a few hotkey commands I like to create for Maya:</div><div><br /></div><div>Let's create the first hotkey command ... the toggle perspective view command. </div><div>First, open the Hotkey Editor.</div><div>1. In the Category section to the left, select the User Category.</div><div>2. Create a new entry by pressing New in the bottom part of the editor</div><div>3. Enter a name for the new command</div><div>4. In the command section copy paste this command:<i> switchModelView Perspective;</i></div><div>5. Hit Accept to save the new command.</div><div>Now you can assign any hotkey to the command to toggle the current view to a perpspective view!</div><div><br /></div><div>It should look something like this:</div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Byd69m8GlH4EGgEQqEi8nVwJbCqYDGvM1OE9t00ZOwFhfffu8yX8TEWwu8M1ccLDWJkMfHBMpvIO1dtrhYhU2_m1kYjAfKx0XW81M3xK-fZ66UKTDz-uUiWyYwFekj-X0gK6hn1Xb2U/s400/hotkeyEditor.jpg" style="cursor:pointer; cursor:hand;width: 400px; height: 342px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5375963317970647762" /></div><div><br /></div><div>Repeat step 2 to 5 using the following commands for the front, side and top view</div><div><i>switchModelView front;</i></div><div><i>switchModelView side;</i></div><div><i>switchModelView top;</i></div><div><br /></div><div>I personnaly assign each command to Alt+1, Alt+2, Alt+3 and Alt+4</div><div><br /></div><div>Now for the Isolate selection hotkey ...</div><div>The process is the same a above. Here is the mel script you need to copy in the command section:</div><div><div><i>string $panel = `getPanel -withFocus`;</i></div><div><i>int $panelStatus = `modelEditor -q -viewSelected $panel`;</i></div><div><i>if ( $panelStatus == 0 ) {</i></div><div><i> enableIsolateSelect $panel 1;</i></div><div><i> isolateSelect -state 1 $panel;</i></div><div><i> isoSelectAutoAddNewObjs $panel 1;</i></div><div><i>} else {</i></div><div><i> enableIsolateSelect $panel 0;</i></div><div><i> isolateSelect -state 0 $panel;</i></div><div><i>}</i></div></div><div><br /></div><div>I assign this command to the "i" hotkey<i> ...</i> select one or more objects then hit "i" to go to isolate selection mode, press "i" again to get out of isolate selection mode.</div><i><i><i><div><span class="Apple-style-span" style="font-style: normal;">Works like a charm and is way faster than doing hide unselected.</span></div><div><br /></div><div><span class="Apple-style-span" style="font-style: normal;">Now ... for those of you that worked in Softimage, you are probably missing the hidden line shaded mode.</span></div><div><span class="Apple-style-span" style="font-style: normal;"><br /></span></div><div><span class="Apple-style-span" style="font-style: normal;">Lucky you... here is how to do it in Maya:</span></div><div><span class="Apple-style-span" style="font-style: normal;"><br /></span></div><div><span class="Apple-style-span" style="font-style: normal;">For this one you will need to create 2 commands, one that will set the view in Hidden Line, one that will put it back to normal Maya shade. And you will need to override the default shade hotkey with the later command.</span></div><div></div><div><span class="Apple-style-span" style="font-style: normal;"><br /></span></div><div><span class="Apple-style-span" style="font-style: normal;">First, create the hidden line command:</span></div><div><span class="Apple-style-span" style="font-style: normal;">Create a new command like the example above ... enter <i>displayHiddenLine </i>as the name of the command ... in the command section enter this mel script (the tabing might get messy because of the copy/paste, but fear not the command will work) :</span></div><div><div><i>{</i></div><div><i> string $currentPanel = `getPanel -underPointer`;</i></div><div><i> if ("" == $currentPanel) {</i></div><div><i> $currentPanel = `getPanel -withFocus`;</i></div><div><i> }</i></div><div><i> if ("" != $currentPanel) {</i></div><div><i> string $panelType = `getPanel -typeOf $currentPanel`;</i></div><div><i> if ($panelType == "modelPanel") {</i></div><div><i> modelEditor -edit -displayAppearance "smoothShaded" -displayTextures off </i></div><div><i> -displayLights "none" -wos 1 $currentPanel;</i></div><div><i> } else if (`isTrue "MayaCreatorExists"` && `scriptedPanel -exists $currentPanel` </i></div><div><i> && `scriptedPanel -query -type $currentPanel` == "dynPaintScriptedPanelType") {</i></div><div><i> dynPaintEditor -edit -displayTextures 0 -displayAppearance "smoothShaded"</i></div><div><i> -displayLights "default" $gDynPaintEditorName;</i></div><div><i> } else if ($panelType == "scriptedPanel") {</i></div><div><i> string $scriptedType = `scriptedPanel -q -type $currentPanel`;</i></div><div><i> if ($scriptedType == "referenceEditorPanel") {</i></div><div><i> global string $gReferenceEditorModelEditor;</i></div><div><i> modelEditor -edit -displayAppearance "smoothShaded" -displayTextures off -displayLights "default" $gReferenceEditorModelEditor;</i></div><div><i> }</i></div><div><i> }</i></div><div><i> }</i></div><div><i>};</i></div><div><i><br /></i></div><div><i><br /></i></div><div><span class="Apple-style-span" style="font-style: normal;">You will also need to create the new toggle shade command to replace the default one:</span></div><div><span class="Apple-style-span" style="font-style: normal;">Create another new command ... enter <i>displayShadedNew </i>as the name of the command ... in the command section enter this mel script:</span></div><div><div><i>{</i></div><div><i> string $currentPanel = `getPanel -underPointer`;</i></div><div><i> if ("" == $currentPanel) {</i></div><div><i> $currentPanel = `getPanel -withFocus`;</i></div><div><i> }</i></div><div><i> if ("" != $currentPanel) {</i></div><div><i> string $panelType = `getPanel -typeOf $currentPanel`;</i></div><div><i> if ($panelType == "modelPanel") {</i></div><div><i> modelEditor -edit -displayAppearance "smoothShaded" -displayTextures off </i></div><div><i> -displayLights "default" -wos 0 $currentPanel;</i></div><div><i> } else if (`isTrue "MayaCreatorExists"` && `scriptedPanel -exists $currentPanel` </i></div><div><i> && `scriptedPanel -query -type $currentPanel` == "dynPaintScriptedPanelType") {</i></div><div><i> dynPaintEditor -edit -displayTextures 0 -displayAppearance "smoothShaded"</i></div><div><i> -displayLights "default" $gDynPaintEditorName;</i></div><div><i> } else if ($panelType == "scriptedPanel") {</i></div><div><i> string $scriptedType = `scriptedPanel -q -type $currentPanel`;</i></div><div><i> if ($scriptedType == "referenceEditorPanel") {</i></div><div><i> global string $gReferenceEditorModelEditor;</i></div><div><i> modelEditor -edit -displayAppearance "smoothShaded" -displayTextures off -displayLights "default" $gReferenceEditorModelEditor;</i></div><div><i> }</i></div><div><i> }</i></div><div><i> }</i></div><div><i>};</i></div></div><div><br /></div><div><span class="Apple-style-span" style="font-style: normal;">Now you need to assign the </span>displayShadedNew <span class="Apple-style-span" style="font-style: normal;">command to the 5 hotkey so that it override the default Maya hotkey then assign </span>displayHiddenLine <span class="Apple-style-span" style="font-style: normal;">to any hotkey ... i personnaly use Shift+5.</span></div><div><span class="Apple-style-span" style="font-style: normal;"><br /></span></div><div><span class="Apple-style-span" style="font-style: normal;">I hope that you like these simple tips, they are quite simple but they can surprisingly speed up your work.</span></div><div><span class="Apple-style-span" style="font-style: normal;"><br /></span></div><div><span class="Apple-style-span" style="font-style: normal;">Cheers</span></div><div><br /></div></div></i></i></i></div><i><i><i></i></i></i></div><i><i><i></i></i></i></div><i><i><i></i></i></i>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com3tag:blogger.com,1999:blog-559896676922078424.post-46139445698603074842009-08-30T22:38:00.004-04:002009-08-30T23:59:04.679-04:00mip shaders in Maya 2010<div>As you might know the mip shaders are not exposed by default in Maya, this is still true in Maya 2010.</div><div><br /></div><div>I have modified the factory script mentalrayCustomNodeClass.mel to expose all the mip shaders in Maya.</div><div><br /></div><div>You can download the script here: <a href="http://kobayashystips.section-5.com/download/maya/2010/mentalrayCustomNodeClass_maya2010.zip">http://kobayashystips.section-5.com/download/maya/2010/mentalrayCustomNodeClass_maya2010.zip</a></div><div><br /></div><div><br /></div>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com3tag:blogger.com,1999:blog-559896676922078424.post-20549123116115233942009-08-25T19:27:00.008-04:002009-08-30T23:59:44.173-04:00Progressive Rendering script Update<div>I have updated the Progressive Rendering script. You can download the new version on highend3d by following this link:</div><div>EDIT:</div><div>Here is the link to download the script on the new creativecrash.com sit (prev iously highend3d.com)</div><div><a href="http://www.creativecrash.com/maya/downloads/scripts-plugins/rendering/mental-ray/c/k-progressive-rendering?os=windows">http://www.creativecrash.com/maya/downloads/scripts-plugins/rendering/mental-ray/c/k-progressive-rendering?os=windows</a></div><div><br /></div><div>The main change is the render window integration. I have added an icon directly in the render window to enable or disable the Progressive Rendering</div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje8eR-b-83z9p-TwhMRsJV4Iaft2jjBoiaATPMyNQbtwKyRbJvUxCeaNPHtg7ijI96B_NfunW91Pz-Jr9xkUckqqjx71hMm54CQZJ5gI4cu1Zoq_-jQRye9UwMBYskndSD8grRG1oOf8M/s400/renderView.jpg" style="cursor:pointer; cursor:hand;width: 400px; height: 58px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5374048610303438706" /></div><div><br /></div><div>You can also display the Options UI by right-clicking the icon</div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3gBpwKeXc5wceBi6XaKqFgirTygjudN4Fvf08Dlfg73UVuoccNQjPARsZ1xTGiDSIsz1ZE5wQWAglSzFxwy1sMvPNkOwZALU45SroFkTjWcGuOXiP_7vq3DFlszp5yd344oXe03cFjwo/s400/renderViewRightClick.jpg" style="cursor:pointer; cursor:hand;width: 235px; height: 58px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5374048806239770290" /></div><div><br /></div><div>I hope you like this update.</div><div><br /></div><div>Good progressive renders to you all :)</div>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com10tag:blogger.com,1999:blog-559896676922078424.post-23864665290342093262009-08-20T10:23:00.005-04:002009-08-31T00:00:54.160-04:00Tutorial on mip shader in SoftimageDigital Tutors launched their new online tutorial library. This new learning platform is extremely well done, watching tutorial online beats buying DVD's in my opinion.<div><br /></div><div>You can register for a free trial here <a href="http://www.digitaltutors.com/09/register.php">http://www.digitaltutors.com/09/register.php</a></div><div><br /></div><div>In the free tutorial you can watch 8 videos on using the mental ray production shaders in Softimage. I found these tutorials interesting.</div><div><br /></div><div>I played with the mip shaders before, but I still learned a few thing in these tutorials.</div><div><br /></div>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com0tag:blogger.com,1999:blog-559896676922078424.post-47532095120894965412009-08-20T09:45:00.002-04:002009-09-04T10:54:03.610-04:00Mental Ray Progressive Rendering in Maya 2010<span class="Apple-style-span" style=" color: rgb(51, 51, 51); line-height: 17px; font-family:Verdana;font-size:11px;"><div style="text-align: left; ">Maya 2010 comes pakaged with Mental Ray 3.7.53</div><div>This version of Mental Ray have a really cool new feature called the Progressive Rendering.</div><div>This feature is not yet implemented in Maya 2010, but fortunatly for us Autodesk designed the string options.<br /></div><div><br /></div><div>With the string options, you can add any Mental Ray options and set it's value then Maya will pass this information to Mental Ray enabling the Mental ray feature! This is great because Maya users don't have to wait for Autodesk to implement new Mental Ray features.</div><div><br /></div><div>Of course using the string options are not very user friendly ... that's why I have create this script to add the string options to enable Mental Ray's Progressive Rendering.</div><div><br /></div><div>You can download the script <a href="http://www.creativecrash.com/maya/downloads/scripts-plugins/rendering/mental-ray/c/k-progressive-rendering?os=windows">here</a>.</div><div><br /></div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmpYf9nIUkUoWvv1GcDSZXXRulfoxf0fRtlmqBtrA37lscq0oP-7Kv-OLNpJHPmWJUZFkiReu5dN5tMHaKpxJu_zvPdGjDAsefAosCOLzHiQGWHrd0NpqdOtQIpLzjn7SZvAo5kntTfSI/s320/ProgressiveRenderingUI.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5371757843892729170" style="border-top-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(255, 255, 255); border-right-color: rgb(255, 255, 255); border-bottom-color: rgb(255, 255, 255); border-left-color: rgb(255, 255, 255); cursor: pointer; width: 320px; height: 188px; " /></div><div><br /></div><div>Install the script an execute it ...</div><div>This little window will appear, enable the Progressive Rendering and start a render or an IPR!</div><div>Adjust any of the options from this window instead of having to edit string options manually.</div><div><br /></div><div>The Progressive Rendering works like a charm in IPR, tweak your lights and material faster than before!</div><div><br /></div><div>Enjoy!</div></span>Sylvain Bergerhttp://www.blogger.com/profile/04036137663328791255noreply@blogger.com13