Terrain Conformer
This script conforms a terrain surface to a road in just a few click. It's very easy to use. 
1- Create a road and a terrain as an editable_poly.
The objects must not have any thikness. (Very important!)
To conform smoothly, the terrain must have enough subdivision.
Also, you will get a better result if you build the road near the terrain
otherwise it can produce some distortion on the topology.
2- Launch the script, pick the road, pick the terrain,
choose the distance of the blending (smoothness of the slope),
click the button "Conform terrain" and wait a few seconds...
3- If you are not happy about the result, click "undo conform",
then move, rotate or scale what you want and click again "Conform terrain"...
---------------------------------------------------------------------------------
The road does not change at all.
Only the terrain is conformed right under the road
but, outside the road, it keeps the original relief.
The terrain is conformed to the road only on the Z-axis,
it's not doing anything along the other axis X or Y.
A important thing :
The original objects are not deleted, just hidden.
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
If you have any suggestions, feel free to post comments !
Look at the video demo on youtube ! (there is no sound)
| Attachment | Size |
|---|---|
| terrain_conformer.mse | 3.75 KB |


Comments
Thank fantastic script
Thank fantastic script
Really cool
Awesome! I wanted to script something like this myself but now I don't have to do that. ;o)
www.zwischendrin.com
About compatibility with Max 2010
I didn't test myself the script on Max 2010.
(Read the previous post of "luisllamas")
I can only give an example file from Max 2012,
eventually saved with the compatiblity 2011 and 2010.
I never had any error message.
Just a suggestion : have you installed all the updates available
for your version ?
Hi!Very excited about this
Hi!
Very excited about this script but it did'nt work for me..
It says: "--unknown property: "falloff in undefined".
In 3dsmax 2010.
I followed all the prerequisites to make the terrain and road objects.
An example file would be useful to identify if the problem comes from my objects.
Thanx!
Thank you for your feedback
Thank you for your feedback and your test.
I updated the "version requirement info"
and added a comment about the necessity to build objects
without thickness, in the "Additional Info" section.
Do you think that I need to create a start-up tutorial ?
Best regards.
Great Script
It works now. (I used a road with thickness :P )
Thanks for the instructions.
Tested in 3ds Max 2010 and 2011, 64 bits. You can add it to version requirement info.
Good work!
+1 for you.
There are prerequisites...
The objects must be "open" objects, so you can easily select the borders
of the road and the terrain. They must not have thikness,
like with the "Shell" modifier.
Do not apply any modifier on your objects:
collapse the stack modifier (or duplicate and collapse the stack).
It works also better if the faces normals are directed upward.
I tested it a lot of times with different combinations
and it has always worked as expected.
For example : I always create my road with a spline.
Then I add a "Sweep" modifier and select "use custom section",
pick a simple line, uncheck the "Banking" option. If the normals are
directed backward, in "Sweep parameters", I check "mirror on XY plane".
Finally I convert it to editable poly.
If you don't want to use this road to render your scene, you can use it
as a proxy-road to conform the terrain and make another road with the same spline,
more complex, even with thikness for the final render.
I hope it helps ! Best regards.
Interesting script
Very interesting...
But tried doing some experiments and it hasnt worked as expected. May be I have been doing something wrong.
Best regards