1. Preparing the Image in Photoshop
This is the still image which I'll use in the tutorial. This is the snap of my stills camera’s carton box.
Photoshop. Import the image into Photoshop.
Click on Lasso Tool icon and select Magnetic Lasso Tool.
With the help of Magnetic Lasso Tool, make a fine selection around the carton box.
Ctrl-X to cut the selected part.
Ctrl-V to paste the cut part again
but on a new layer.
Rename the layers as Box and Floor.
off the visibility of the Box layer.
the Floor layer selected, pick Clone Stamp Tool.
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.
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.
this image as floor.jpg.
Turn off Floor layer’s visibility and turn on Box layer’s visibility. Save the image as box.png.
2. Camera Mapping in 3ds Max
in the perspective viewport, press Alt-B keys. It opens Viewport
Configuration window. Turn on Use Files radio button. Click on Files
floor.jpg file and click on Open.
get the floor.jpg image as the perspective background image. Turn on safe frames
mode by pressing Shift-F key.
the grid with the perspective of the background image. This is a very necessary
step for a successful camera mapping.
a plane and cover the entire perspective viewport.
With the plane selected, apply a Camera Map modifier onto it.
in the perspective viewport, press Ctrl-C to create a camera.
M to open the Material Editor. Pick an empty slot and apply floor.jpg
image as the Diffuse texture onto the plane.
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.
the plane and increase its Length and Width segments to 30.
The problem with the plane’s texture gets solved.
Press M to open the Material Editor. Pick another empty slot and apply the original image as the Diffuse texture onto the plane.
Create a box in the perspective/ camera viewport.
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.
Press M to open the Material
Editor. Pick another empty slot and apply the box.png as the Diffuse
texture onto the box.
the box selected, apply a Camera Map modifier onto it. With Camera
Map modifier selected, click on Pick Camera and select the camera in
the ground plane selected, apply the floor.jpg texture again.
With the camera selected, press Ctrl-V key to make a clone of it.
the second camera and try to bring it closer to the box. You will see the
camera is traveling in the scene.
Render the scene. You will see some shading in the rendered frame so I'll apply an ambient light.
an Omni light in the scene. Turn on Ambient Only option.
Render the scene. You will see a perfectly lit 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.
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.