Maya 2016: Wireframe Rendering using Mental Ray

If you want to show off your awesome modelling skills, there is no better way then to show off the models wireframe. You could do a quick screenshot of your model in wireframe mode, but that looks cheap and not very impressive. It would be better to render the object using a render engine.

I will show you how you can make a clean, technical and awesome looking image using mental rays “contour” render option. To use this feature you have to activate it in the render settings and then apply a shader to the object. This way you can set up an environment that is rendered normally and your hero object is rendered as wireframe object.

You probably neither have seen or heard of this feature due to that this feature is only found in the “legacy mode” of Mental Ray and even then it is still hidden in the advanced settings.

Render Settings

  1. Set “Render Using” to “mental ray”
  2. Open the “Quality”-tab
  3. Enable “Show Advanced Settings
  4. Expand “Legacy Options“> Set Sampling Mode to “Legacy Sampling Mode”2015-06-15-20_09_42-Start
  5. Open the “Configuration”-tab
  6. Enable “Show Advanced Settings
  7. Expand “Contours” > Enable “Enable Contour Rendering”
  8. Expand the “Draw by Property Difference”-section > Enable “Around all Poly Faces”2015-06-15-19_59_19-Start

Material Settings

  1. First create a white Lambert material “mat_wireframe”
  2. Navigate to the Shading Group “lambert2SG”, and rename it to“mat_wireframeSG”
  3. Expand the mental ray section, and the subsection “Contours”
  4. Enable “Contour rendering”, and set the color to black.
  5. Apply the material to a test object (like a poly sphere) and do a render.
  6. If necessary adjust the value of the width (0.5 usually has nice results)MaterialSettings

Now apply the material to the objects that you would like to render as wireframe.

Note: if you render objects with “smooth mesh preview” enabled (By pressing the Key 3), mental ray renders a more complex wireframe. In such cases selecting the object and pressing the key 1 enables mental ray to render out the low poly version.

  • Hi. Thanks for the tutorial. I have a small problem with the batch render. Only the first image of the sequence is rendered with the wireframe settings, but the rest appear with the lambert material only (without wireframe). Any idea why?