This is the fun part where we apply the animated displacement map back on to the snow surface:
Make a copy of the original Lightwave scene that you rendered the depth map from and load it into Lightwave Layout. Apply some sort of basic surface to the ball and snow surface objects so that they appear shaded in the viewport (note: if you downloaded my scene, you may need to turn the lights back on). Then go to File->Save->Save Object Copy and save copies of the objects so that you don't lose the new surfaces (or overwrite the objects of the old scene).
Go to the Image Editor and load in the image sequence that you saved from Digital Fusion. Make sure you select "Sequence" from the Image Type drop down box under the Source tab
Open up the Geometry properties of the snow surface object and set the Display SubPatch Level to 10. Do the same for the Render SubPatch Level. Now go to the Deform properties and add a Textured Displacement plugin modifier. Double click on the plugin name entry to view the settings. In the Texture Editor that appears, set the layer to the following settings
Layer Type: Image Map
Projection: Planar
Texture Amplitude: -1
Image: <select your image sequence here>
Width Tile: Reset
Height Tile: Reset
Texture Axis: Y
Scale X: 10 m
Scale Y: 1 m
Scale Z: -10
Note that we need to set the Z component of Scale to a negative number so that the image is flipped. This is a result of the fact that we rendered the image from below, and are now projecting it from above.
Exit the Texture Editor and close all other active Lightwave panels. If you now press play, you should see the ball moving across the surface and correctly deforming the snow surface as it goes.
|