You can do it with mental ray aswell you just have to enable contourrendering in the shadinggroup and in the renderglobals