Mental Ray | Rusty Metal

I was looking for some rusted metal shader for a scene I’m working on and I wanted it to be fully algorithmic, no bitmap at all.

The main idea is to have blurred reflection with some dusty bumps in the less accessible areas. This require several component to be layered : diffuse, noise, ambiant occlusion, blurred reflection …
I see many benefits in algorithmic shading :

  • small memory impact
  • no interpolation artifact
  • no more tilling issue

Here’s how it works, in pseudo-code :

amb_occ = ambiant_occlusion("cone=wide","distance=small","fallof=high"); C = diffuse() * noise("grey","orange") * amb_occ; C += specular() * noise() * amb_occ ; C += reflect("blur") * amb_occ ;

Quite simple, eh ? 😀

One thought on “Mental Ray | Rusty Metal”

  1. Still amazing 🙂
    I wish the flash animation could be a little bit slower so I could take time to understand your approach. 🙂

    Et sinon comment tu fais pour avoir des "catégories" dans ton blog ? (rendering styles, input, etc..)
    J’aimerais bien convertir mon vieux blog en truc automatique comme celui ou là ou blogger etc…

    Merci 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *