Created by Bryan Draffen aka Skillator
email = gandolf@vci.net 
Free - free for all GameStudio projects, without restrictions

//////////////////////////////////////////////////////////////////////////////////////////////////

Hi,

This script will mesh deform a 33*33 vertex HMP into the shape of a 33*33 vertex MDL or HMP.
The idea is that the edges of MDLs can be welded together (especially in better modeling programs)

Open a Hieghtmap image in MED and save it as a .HMP then change the shape of it or open another and
save this one as a .MDL.  Assign the HMP T1 and the MDL M_1.  Put the HMP where you want it, but the
location of the MDL dosn't really matter (invisible,passable,and quickly deleted).  I scaled the 
HMP up to 24.



Another idea for making seamless terrains (if you consider that to be difficult without the help
of some code, like me Haha).  Is to snap the edges together.

I'm planning on using code like this to make seamless terrains from HMPs that are similar to the shape
they will be morphed into, so that the shadows created in MED will be almost the same as they should be.

note:If you decide to mesh deform several HMPs don't use the same HMP file over & over. Many of the same
HMP files will mantain the same shape. So use different ones! =P

enjoy!






