This basic code snippet shows how to randomly tweak the surface of a mesh to create random terrain, cave walls, etc. Hold the space bar to 'animate' the surface. Variations of this code can be used for a number of special effects such as objects that are affected by environmental factors such or music or for deformable terrain.
The image file "test.bmp" is just a place holder and any image will do.
--
TAZ
I guess I should mention that I created this for DBP, but you might be able to use the technique in DBC.
"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1