Converting a Still Image into Live Footage Using Camera Mapping in 3ds Max



This is the still image which I'll use in the tutorial. This is the snap of my stills camera’s carton box.

Open Photoshop. Import the image into Photoshop.
Open Photoshop
Open Photoshop
Click on Lasso Tool icon and select Magnetic Lasso Tool.
Magnetic Lasso Tool
Magnetic Lasso Tool
With the help of Magnetic Lasso Tool, make a fine selection around the carton box.
Magnetic Lasso Tool
Magnetic Lasso Tool
Press Ctrl-X to cut the selected part.
Ctrl-X
Ctrl-X
Press Ctrl-V to paste the cut part again but on a new layer.
Ctrl-V
Ctrl-V
Rename the layers as Box and Floor.
Box and Floor
Box and Floor
Turn off the visibility of the Box layer.
Box layer
Box layer
With the Floor layer selected, pick Clone Stamp Tool.
Clone Stamp Tool
Clone Stamp Tool
With the help of Clone Stamp Tool, start painting the empty space. The aim is to fill the empty space with the missing pixels of the floor. Use the pixels around the empty area and the rest of the image.
Clone Stamp Tool
Clone Stamp Tool
I've painted the empty space. This is not perfect but it's sufficient for the task. The only thing which you have to keep in the mind is that you must paint the edges of the empty area perfectly. No matter how it looks in the center, but it should be seamless around the edges.
Paint the floor
Paint the floor
Save this image as floor.jpg.
floorjpg
floor.jpg
Turn off Floor layer’s visibility and turn on Box layer’s visibility. Save the image asbox.png.
boxpng
box.png
Open 3ds Max.
Open 3ds Max
Open 3ds Max
Being in the perspective viewport, press Alt-B keys. It opens Viewport Configuration window. Turn on Use Files radio button. Click on Files tab. 
Alt-B key
Alt-B key
Select floor.jpg file and click on Open.
floorjpg
floor.jpg
You get the floor.jpg image as the perspective background image. Turn on safe frames mode by pressing Shift-F key.
Shift-F
Shift-F
Match the grid with the perspective of the background image. This is a very necessary step for a successful camera mapping.
Match the grid
Match the grid 
Create a plane and cover the entire perspective viewport.
Create a plane
Create a plane
With the plane selected, apply a Camera Map modifier onto it.
Camera Map modifier
Camera Map modifier 
Being in the perspective viewport, press Ctrl-C to create a camera.
 Ctrl-C
Ctrl-C
Press M to open the Material Editor. Pick an empty slot and apply floor.jpg image as the Diffuse texture onto the plane.
Material Editor
Material Editor
With Camera Map modifier selected, click on Pick Camera and select the camera in the viewport. You can see the plane’s texture is a bit jagged. 
Pick Camera
Pick Camera
Select the plane and increase its Length and Width segments to 30. The problem with the plane’s texture gets solved.
Length and Width
Length and Width
Press M to open the Material Editor. Pick another empty slot and apply the original image as the Diffuse texture onto the plane.
Material Editor
Material Editor
Create a box in the perspective/ camera viewport.
Create a box
Create a box
Turn the box into Editable Poly. Adjust the box according to the carton box in the background image. You may have to play with the vertices of the box.
Editable Poly
Editable Poly
Press M to open the Material Editor. Pick another empty slot and apply thebox.png as the Diffuse texture onto the box.
Material Editor
Material Editor
With the box selected, apply a Camera Map modifier onto it. With Camera Mapmodifier selected, click on Pick Camera and select the camera in the viewport.
Camera Map
Camera Map
With the ground plane selected, apply the floor.jpg texture again.
floorjpg
floor.jpg
With the camera selected, press Ctrl-V key to make a clone of it.
Ctrl-V
Ctrl-V 
Select the second camera and try to bring it closer to the box. You will see the camera is traveling in the scene.
Animate the camera
Animate the camera
Render the scene. You will see some shading in the rendered frame so I'll apply an ambient light.
Render the scene
Render the scene
Apply an Omni light in the scene. Turn on Ambient Only option. 
Ambient Only
Ambient Only
Render the scene. You will see a perfectly lit scene.
Render the scene
Render the scene
You can animate the second camera. But don’t go quite away from the box otherwise you will see some seams around the plane’s corner.  A little bit of camera animation can make the still scene live.
NB: Don't move the first camera during the animation of the second camera. The first camera is used to project the textures onto the meshes.
Animate the second camera
Animate the second camera
Camera Mapping is a very useful technique and it is used in almost every VFX shots. Due to Camera Mapping technique, you don't need to replicate each and every thing in a scene. You just have to project the textures onto the simple geometry and hence you can animate the camera to make a still image into a live one.
Previous
Next Post »