Rendering Clip Maps
Power to the People

How to Render a Clip Map, and What to Do With It.

 

Introduction

In this tutorial, we'll be rendering a Clip Map to be used in a compositor.

This tutorial requires:

Pixels3D | studio | v3.x
A 2D Compositing Application ( After Effects, effect*, Flame, etc... )
An understanding of techniques explained in previous PIU tutorials.

Downloads
Tutorial Support Files
The Plan
Using the included background plate of a shed, we'll create a clip map that will allow a 3D corkscrew to pass through the hole in the wall.
Open the Sample Scene
The Sample Scene consists of a pre-animated corkscrew passing through a mesh. This mesh will represent the wall of the shed.
Import the Background Plate

Open the View Options for the Camera Pane by clicking the button labeled 'Camera' in the upper-left of the camera pane.

Click the Image CheckBox, and click the 'No Image Loaded' swatch to open the Texture Manager.

Click an Empty Slot in the Texture Manager, and choose the wall.pct included in the Tutorial Support Files.
Click Apply to return to the Camera View Options, then click OK.
The image appears as the backdrop in the Camera View.
The 'Fun' Part: Matching the POV

Only by carefully tweaking the camera/interest position, field of view, and roll, are we able to match up the view with the image. The only way to learn this by doing it, so play with it for awhile & see if you can line up the mesh with the wall.

If you get can't get it to look right, check the Corkscrew Aligned file for a solution.

In this case, the match does not need to be perfect, as thi clipping plane will only be used to matte out the parts of the corkscrew behind the wall.

Setting up Shaders

Load in the MatteBlack & MatteWhite Shaders.

Apply the MatteBlack Shader to the Clipping Mesh.

Apply the MatteWhite Shader to the Corkscrew.

A Quick Render reveals our Luma Matte.

At this point, render the entire animation with AntiAliasing set to 2:1. This produces a matte without jaggies.

Render the Diffuse Pass

To keep the clip matte file in-tact, do a File>Save As, and use a new name. This file will be the diffuse pass.

The clipping mesh is no longer needed, so delete (or hide) it.

Apply a metal shader to the Corkscrew.

Now, render out this file.

Composite the Elements

Import the Diffuse Pass, Matte Pass, and Background Plate into the compositor.

On the right is the layer setup for use in Adobe After Effects. The matterender layer ( the Clip Map ) has been selected as a Luma matte for the diffuserender layer.

 

 

Render from the Compositor

As you can see, many times, Pixels can do the work for you.

Just imagine how difficult this would have been to manually roto!

 

Contact Us | Privacy Notice
Copyright © 2000 Pixels Animation Studios, Inc. All rights reserved.
1-619-220-4902