Mila material glossy samples & light pass


#1

Hi all, i wanted to ask about mila material, on maya 2015

-where i can adjust the glossiness samples?

  • i tried render direct iradiance pass, but it render black, do i miss something? ( simple scene using ball)
  • how to achive AO pass with transparancy cut out

any reply very apppreciated

Thanks


#2

you need to select your mila glossy node directly. Extra Attributes -> Quality. But be careful. This slider doesn’t control your samples as in mia, but your quality.

Anyway, there is a reason why it’s hidden. Mila and Unified Sampler were designed with simplicity in mind. One shouldn’t modify local samples. Just increase your unified sampler quality until your rendering looks good. Unified sampler “knows” where more samples are needed. The more complex your scene, the better it will work. Of course there will be no benefit in a sphere on a plane scenario.

mila uses a new passes system (LPEs - Light Path Expressions). Supported framebuffers are listed here. http://docs.autodesk.com/MENTALRAY/2015/ENU/mental-ray-help/files/shaders/layering/techstuff.html

I wrote a simple script, some time ago. This will add all supported LPEs automatically :slight_smile:


string $passes[] = {"direct_diffuse","indirect_diffuse","direct_glossy","indirect_glossy","direct_specular","indirect_specular" ,"diffuse_transmission","glossy_transmission"," specular_transmission","front_scatter","back_scatter" ,"emission"};
$size = size($passes);
for( $i=0; $i<$size; $i++ ){

createNode -name $passes[$i] renderPass;
setRenderPassType -type "CSTCOL" $passes[$i];
connectAttr -nextAvailable defaultRenderLayer.renderPass ($passes[$i]+".owner");
}


#3

hi, thanks for the reply mate, very helpfull cheers!