• Welcome to World Machine Community. Please login or sign up.
October 18, 2019, 10:09:59 am


Read the Development Diary for an inside look at World Machine's progress!

Roads that follow the terrain

Started by TorQueMoD, February 18, 2013, 03:11:45 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Hey all,

So first off, I know how to create roads using the layout generator. The only problem I'm having is that the roads need a specific height level to be applied to them - 1200m for example. This means that any areas of my terrain that are higher than 1200m are carved through and any areas lower than 1200m my road is raised up on a platform. Is there any way to get the road to simply adhere to the height of the terrain beneath it? Or maybe be raised only a meter or so above the terrain below it?

I want the road to follow the terrain not cut through it.


Hi there,

Depending on what you want -- if you want something more like a dirt path, for example -- a smooth area on your terrain but one that adheres really tightly to the underlying terrain -- I would do the following:

1) Create your layout generator but Make sure you have  not connected your terrain into it.
2) Create your road shapes appropriately.
3) Take the output of the layout generator and use it as a mask input into a blur device. Wire your terrain into that blur device and set the radius to a moderate value. You now will have a smooth path on your terrain.

If you want a road that does carve through the terrain somewhat, but never gets too far off of it, here's a good method around:

1) Create a layout generator and hook your input terrain into its terrain input.
2) Create your road shape with plenty of control points. You can add additional points after creating by rcliking on a vertex and choosing subdivide if need be. (of course also set your fallof distance, curve, etc appropriately for the size of your road)
3) Select the terrain device from before that you want to match so that you can see it below your road shape
4) Right click on your road shape and choose "Drop curve to surface". This will set all the vertex heights appropriately so that the road is located as nearly as possible to the terrain.

Here's an example picture of a road placed onto the default world using the second technique:

-- Stephen Schmitt
- Creator of World Machine


Thank you Remnant. That's exactly what I wanted to do (the second one). Though the blur mask is a great idea too.
I'll try it out and let you know how it goes.

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview