modo bubbble logo

Matcap Shader

Home >> Shade, Light & Render >> Shader Tree Items >>  Matcaps

back next
comment balloon Comments (0) RSS Icon
4.6/5 (1 vote)

What if you could create a surface material and lighting environment simply by painting an object so that it looks like how you want your surface to appear? MatCaps, or "material captures" can do just that. Basically what happens is the shading of a spherical image is applied to the target surface by mapping corresponding normals from the captured surface onto that of the rendered surface. This opens up all sorts of interesting possibilities for non-photoreal image rendering demonstrated by these examples below; the original 'MatCap' is displayed on the left, with the resulting shaded surface shown on the right--

Matcap Sample

Creating Custom MatCaps

The 'Matcap' shader requires a spherical image as a source, users can create or photograph any spherical shape for application to the surface. However, make sure the final image is cropped in exactly to the outer edge of the sphere and that the image has the same width and height (square aspect ratio). When creating 'Matcaps' users will want to avoid surfaces with high-frequency details, these don't typically map well to complex surfaces, and they end up looking like the image is a reflection onto the surface instead; soft or subtle transitions work best. Resolution wise, make sure the image itself captures the necessary details for the target output resolution, but for soft, blurry Matcaps, sizes in the 512x512 to 1024x1024 pixel resolution should work just fine for most cases.

MatCap Samples

Applying Matcaps

Matcaps are applied with the Matcap shader, and can be added to the Shader Tree by simply selecting the Matcap item found under Add Layer button- "Add Layer > Other > Matcap". The Matcap layer works like any other Shader Tree layer; depending on its position in the tree, it can either affect the entire scene, or be limited to a specific surface through the use of a material mask. Also like other Shader Tree layers, it will overwrite the settings for layer that are below it in the tree (unless the 'GL Only' option is enabled). For more information on working with Shader Tree layers, please reference that page of the documentation. Once the Matcap shader is applied, users will need to specify an appropriate image to produce the effect. From there, users can adjust the additional settings depending on the intended use.

Process PanelLayer--

Enable: Toggles the effect of the layer on and off, duplicating the functionality of toggling visibility in the Shader Tree. When un-checked (disabled), the layer has no effect on the shading of the scene. However, disabled layers are saved with the scene and are persistent across modo sessions.

Invert: Inverts the RGB values for the layer producing a negative effect.

Blend Mode: Affects blending between different layers of the same effect type, allowing user the ability to stack several layers for different effects. For more on blending, please reference the 'Blend Modes' page of the documentation.

Opacity: Changes the transparency of the current layer. Reducing this values will increasingly reveal lower layers in the shader tree if present, or dim the effect of the layer itself on the surface.

Matcap Shader--

Image: This is where the users specify the spherical Matcap image that is to be applied to the target surface. If no images are loaded in the scene, a clip browser window will open allowing users to load an image for use, if images are already present in the scene, users can specify any existing images for use. Uses may need to load the image separately using the Clips Browser (image) viewport prior to applying a Matcap shader.

Gamma: When rendering surfaces with a Matcap applied, they may appear light or washed out. This is because modo always renders internally at gamma 1.0 (linearly) and then applies the user specified output gamma when displaying or saving the rendered result. Bitmapped images typically have automatic gamma applied to them in an image editor or digital camera (otherwise, they would look too dark to most users); because of this, rendering with modo's default gamma value (2.2 ) will make rendered images appear light or washed out as they have received double gamma. Therefore it is important to de-gamma the images. This can be done by inverting the gamma amount here, simply by dividing the render outputs Gamma amount (whatever it may be, 2.2 by default) by the image maps items 1.0 value. This can be done directly in the value input field using mathematical shorthand, the typed entry would look like "1.0/2.2" in the dialog, pressing enter will return the value "0.455" (modo does the math for you!). Now the rendered image will produce the correct result. When using the Matcap material strictly for OpenGL display, adjusting the gamma is unnecessary.

Use Lights: The shading of Matcaps surfaces are controlled directly by the Matcap image itself, and are not affected by scene lighting. The 'Use Lights' option provides users a means to incorporate the lights in the scene, blending them with the texture of the Matcap shader. A value of 0% disables all lights on the scene from having any affect on the surface moving up toward 100% which means the surface is completely controlled by the lights of the scene in effect changing the Matcap shader into a diffuse color channel for the surface.

GL Only: When this toggle is enabled, the Matcap shader will only affect the OpenGL viewport representation of the surface, and the rendered surface will display as normal (as if the Matcap shader were disabled). This is useful for when users wish to use Matcaps as a sculpting or modeling aid, giving users a clearer view of the geometry but still have the surface render normally otherwise.



back next