A collection of tips and trick that I learned along the way. These are both written down for myself to remember and for everyone else to learn from my 10000 hours. Please let me know if there are better ways of doing these things!
[ZBRUSH/NUKE] When extracting 32-bit .exr displacement maps for multiple subtools in zbrush, they don’t get merged on creation. You can easily merge these by just merging them in Nuke using the ‘over’ merge operation.
[ARNOLD] LAYERING MULTIPLE DISPLACEMENT MAPS
Often I get into the situation where it’s more efficient to combine multiple displacement maps at render time rather than sculpting/applying all of them in zbrush. A common example is the following: I want to create some kind of fabric. I would sculpt the displacement map in Zbrush but leave out the high frequency details. Just big shapes. I prefer to paint the high frequency stuff so I can use the same info in my color map. It also allows me to go much higher res - I’m not bound to my 8 - 12 million polygons in zbrush.
So we end up with a 32bit displacement map and a 0-1 range image. How do we combine these? First you have to remap the painted displacement map so the mid point falls at 0. Every render engine provides some kind of control node for this. alRemapFloat for arnold, pxrRemap for prman, etc. Leave the bias and gain for what it is - just change the output min and output max to something like -0.25 and 0.25. These values obviously depend on what you’re doing. Make sure to disable clamping. We definitely don’t want to lose half our information in the negative values.
Then just layer it on top using an alCombineFloat node (or something similar if you’re not using Arnold) using the add operation. Simple maths are fun!
It should be noted that you can’t use the alLayerColor node since that would clip your values at 1, which makes sense when dealing with colours.
[ARNOLD] Using animated .ass sequences: there’s a need to set an expression in the Frame attribute. Without quotes:
“=frame “, what you would expect it to do.
“=frame%10 “, loops 10 frames in this case.
Or you can ping-pong the loop, which is useful sometimes when dealing with tree caches.
int $max = 25; //end ass sequence
int $min = 0; //start ass sequence
int $range= $max - $min;
ArnoldStandInShape.frameNumber = $min + abs(((frame + $range) % ($range * 2)) - $range);
[ARNOLD] You can use the aiAmbientOcclusion shader in your shading networks, no need to bake out ambient occlusion maps.
[ARNOLD] The maya snow shader is useful to make things like dust since it returns the face angle in relationship to the Y axis. Make sure to tick alpha is luminance to be able to use it (this copies the alpha channel to the rgb channels).
[KATANA] After you’ve referenced in your alembic cache, make sure to convert the objects from polymeshes to subdmeshes if you’re planning on subdividing and displacing them. One way of doing this is with an AttributeScript node using the following expression: SetAttr(‘type’, [‘subdmesh’])
[ARNOLD / KATANA] RAMPS & FACING RATIO:
This is a common technique to fake the effect small stray hairs of fabrics have on clothing. Based on the viewing angle, and thus how many hairs you are actually looking at, the fabric gets lighter. This is especially noticeable on darker fabrics. Look at the green and blue fabrics these guys are wearing.

The easiest way to build this (I think!):
Make an arnoldShadingNode with node type facing_ratio, an arnoldShadingNode with node type ramp_rgb and an arnoldShadingNode with node type alLayerColor.
Connect the facing ratio output to the ramp_rgb input. Make sure you have two positions, two colors (black and white) and two interpolation types (I set both interpolation types to 2 usually, unless I specifically want linear interpolation, which would be 1) and have the input type on custom. Then you can just layer your texture maps in your alLayerColor node with the ramp_rgb as a mask for the 2nd layer. Obviously you need to do some kind of color remapping of your second texture map, for example with an alRemapColor node.
Powered by themekiller.com