Modeling Tutorial: How to use 3ds Max and After Effects to achieve multi-pass rendering and post-compositing

Modeling Tutorial: How to Multi-Pass Render and Post Compositing with 3ds Max and After Effects - Part 2

Recommendation: NSDT scene editor helps you quickly build 3D application scenes that can be redeveloped

1. Create a basic scene

step 1

Open  3ds Max .

Open 3ds Max

Open 3ds Max.

step 2

I made a simple scene. I put three objects with a certain distance from each other.

production object

production object

step 3

Press  Ctrl-C  to create a camera in perspective view.

create camera

create camera

2. Set the object ID

step 1

With the teapot selected, right-click and select Object Properties .

object properties

object properties

step 2

It will open the Object Properties window. Set the Object ID  value to  1 .

Object ID

Object ID

step 3

In the same way, set the Object  ID  value of the cylinder to  2 .

Object ID

Object ID

step 4

In the same way, set the object  ID  value  of the box to 3 .

Object ID

Object ID

3. Render in RPF format

step 1

Press  Shift-Q  or  F9  to render the scene.

Shift-Q

Shift-Q

step 2

Click the save image icon. It opens the save image window. Set the File Name to "Diffuse " and select the File Format as  RPF . Click the Save button.

save image

save image

step 3

It will open the RPF Image File Format window. Select the 16 bits per channel option. Open all options. Click on the OK button.

RPF image file format

RPF image file format

4. Compositing in After Effects

step 1

Turn on After Effects . Import the Diffuse.RPF file in the timeline   . You'll notice that the file comes with all the properties like  Z Depth , Object ID , Z  Coverage , etc.

open after effets

open after effets

step 2

With the Diffuse.RPF  layer  selected , go to 3D Channels > Effect > ID Mask .

Effects 3D Channel ID Mask

Effects > 3D Channels > ID Mask

step 3

In the ID  Mask effect, the default value for ID Selection is set to  0 .

ID matte

ID matte

step 4

Set the ID Selection value to  1 . You'll see that only the teapot is visible. This happens because I have set the object ID value of the teapot to 1 in 3ds Max.

ID card selection

ID card selection

step 5

 Create  a duplicate layer of the Diffuse.RPF layer by pressing  Ctrl-D  .

This time, set the ID Selection value to  2 . The cylinder is highlighted because in 3ds Max I have set the cylinder's Object ID to 2.

Diffuse RPF

Diffuse.RPF

step 6

 Again, make  a duplicate layer of the Diffuse.RPF layer by pressing  Ctrl-D  . This time, set the ID Selection value to  3 . The box is also highlighted because in 3ds Max I have set the object ID of the box to 3.

Diffuse RPF

Diffuse.RPF

step 7

You can give the layers the correct names for Teapot , Cylinder and Box . Put the diffuse layer in the background again to get the floor.

rename layer

rename layer

step 8

Now you can control individual layers. For example, if you want to change the color of the teapot, just select the teapot layer and go to Effect > Color Correction > Hue/Saturation .

Effects Color Correction Hue Saturation

Hue/Saturation >> Effect of Color Correction

step 9

Change the Primary Hue value and you will see the teapot's color change accordingly.

main color tone

main color tone

Step 10

In the same way, you can apply glow to cylinder layers. This way, you can control any individual layer and apply any effect.

shiny

shiny

5. Z Depth Compositing in After Effects

step 1

With the diffuse layer selected, go to Effect > 3D Channels > 3D Channel Extraction .

Effects 3D Channels 3D Channel Extraction

Effects > 3D Channels > 3D Channel Extraction

step 2

With the Z depth channel selected  , it will look like the image below.

Z depth

Z depth

step 3

You can use black and white values ​​to get perfect Z depth. Just remember to keep it white from the camera, when it travels far it turns gray.

black and white

black and white

step 4

With the layers selected, press  Ctrl-Shift-C  to precompose. Rename the precomposition layer to  Diffuse.rpf Comp 1 .

Ctrl-Shift-C

Ctrl-Shift-C

step 5

Bring the diffuse layer into the timeline. Turn off precomposition layers.

Diffuse layer

Diffuse layer

step 6

S_Z Diffuse layer with blur effect applied. Alternatively, you can use camera lens blur . It blurs the entire layer.

step 7

Pick the precomposited layer as  the Z-buffer pass. Now you can get true depth of field in your images. The teapot on the front looks in focus, while the cylinder and box look out of focus.

Z buffer

Z buffer

in conclusion

In this tutorial, I've shown you how to control the realization of individual objects in a layer using only one pass. This is the US RPF file format. It contains almost every pass like Z Depth, Object ID, Material ID, Z Coverage etc, each of which can be done by using a layer.

In the next part of this tutorial, I'll show you the most useful and powerful file formats used in the industry to control everything.

Original link: Modeling Tutorial: How to use 3ds Max and After Effects to achieve multi-pass rendering and post-compositing - Part 2 (mvrlink.com)

Guess you like

Origin blog.csdn.net/ygtu2018/article/details/132032558