A renderman compliant displacement shader which supports multi-tile texture maps using the udim naming convention. The shader supports both displacement and bump mapping. Also if you extract displacements as floating point images from Mudbox or Cyslice the only thing you need to do is make sure the displacement gain is set to 1.0
DOWNLOAD DISPLACEMENT SHADER HERE
The shader uses the following naming conventions.
Below are examples of displacement, bump and what the object looks like without any displacement. These examples are using 4 x 1K maps. I did also extract 2K and 4K maps to test it out, however there was only a subtle difference between the various resolutions as I didn’t put much detail or thought into what I was sculpting – the only real difference was the time it took to extract the 2K and 4K maps. All three sets of maps rendered in about the same time. Click on the images to see the full size renders.
Looking at this you’ll notice some artifacting and stair-stepping in places. In order to test this out I just went haywire with all the various sculpting brushes in Mudbox – the artifacting is present in the hires sculpted geo (only around one million poly faces – so not that hires for a sculpt).
You’ll notice on the inside of the anvil there is what looks like a little black artefact in the bump render, this is expected as in the sculpted geometry that piece folds over itself – again, a result of me be too carefree with the sculpting brushes in Mudbox.
This render is just to show you what the object that I’m using the displacement shader on looks like.