Author Topic: Flattening land using shaders  (Read 2259 times)

Offline Abyssinian02

  • Member
  • *
  • Posts: 24
Flattening land using shaders
« on: January 07, 2015, 12:12:31 AM »
Hey,

I have a, hopefully, rather easy question. I made a terrain of mountains, and I now wanna have a road go through it. I've already painted the road using a shader, but now my question is what is the best way to flatten the terrain towards a height of my choosing (and possibly have the terrain next to it adjust smoothly to it).

Right now I have this, but as you can see the roads go over quite steep mountains. I'd love to push that down a little at those points. It doesn't need to be totally flat, but just flat enough. I'll need to do the same for the fences that'll be added later.

Offline bobbystahr

  • Member
  • *
  • Posts: 10347
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Flattening land using shaders
« Reply #1 on: January 07, 2015, 12:49:26 AM »
Hey,

I have a, hopefully, rather easy question. I made a terrain of mountains, and I now wanna have a road go through it. I've already painted the road using a shader, but now my question is what is the best way to flatten the terrain towards a height of my choosing (and possibly have the terrain next to it adjust smoothly to it).

Right now I have this, but as you can see the roads go over quite steep mountains. I'd love to push that down a little at those points. It doesn't need to be totally flat, but just flat enough. I'll need to do the same for the fences that'll be added later.

Dune shared a technique for cutting a road into a mountainside which may be helpful. Do a search for mountain road Subject and Dune as the member.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist

Offline Dune

  • Member
  • *
  • Posts: 15131
    • www.ulco-art.nl
Re: Flattening land using shaders
« Reply #2 on: January 07, 2015, 07:02:31 AM »
A more sophisticated method can be found at NWDA.

Offline N-drju

  • Member
  • *
  • Posts: 1453
  • A bee-sting allergic artist and philosopher
Re: Flattening land using shaders
« Reply #3 on: January 07, 2015, 07:16:21 AM »
Hey Abyssinian,

Check out the "On the road" tutorial by Old Blaggard here:

http://planetside.co.uk/wiki/index.php?title=Terragen_2/3_Tutorials#Making_of_.22On_the_Road.22

It gives a nice overview on how to make a road that would cut through uneven terrain and make the transition between the road and land smooth. I remember that it can be done with color adjust shader, but it needs some tweaking to get the values right. I tried this method once. It's not bad actually.
"When dictatorship is a fact, revolution becomes a right."

Offline Abyssinian02

  • Member
  • *
  • Posts: 24
Re: Flattening land using shaders
« Reply #4 on: January 07, 2015, 10:20:31 AM »
After watching both the on the road tutorial and Dune's scene on how to make a road, I think I got the right anwser, but for some reason it's not working. Would anyone have any idea as to what I did wrong? I added the scene to this post.

Offline bobbystahr

  • Member
  • *
  • Posts: 10347
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Flattening land using shaders
« Reply #5 on: January 07, 2015, 06:47:51 PM »
Well I doubt we can help as the terrain is displaced by a map and it's not there, still in your computer. All the many maps you use don't show up in fact. Best bet would be to gather the project, then zip/rar the folder and file share that, It'll be too large to upload but I use either DropBox or sendSpace free file sharing.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist

Offline Abyssinian02

  • Member
  • *
  • Posts: 24
Re: Flattening land using shaders
« Reply #6 on: January 08, 2015, 01:47:16 AM »
Ah sorry, I hadn't thought of that. :-[ Goes to show you how much of a rookie I still am. Anyway, here are the files gathered.

Offline bobbystahr

  • Member
  • *
  • Posts: 10347
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Flattening land using shaders
« Reply #7 on: January 08, 2015, 04:27:45 AM »
Ah sorry, I hadn't thought of that. :-[ Goes to show you how much of a rookie I still am. Anyway, here are the files gathered.

Heh heh, happens to the best of us time to time. Thanks, I'll have a look tomorrow, near the end of a looooong day here.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist

Offline bobbystahr

  • Member
  • *
  • Posts: 10347
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Flattening land using shaders
« Reply #8 on: January 08, 2015, 03:10:20 PM »
Well this is as good as I can do. Can't figure a way to adapt Dune's set up to image maps but that would likely work. I think you need a Wizard like Dune  :D  in your corner on this. This is the Blue to Scalar in the displace tab slightly displaced(1 m. I think). The Green to Scalar on the mountain side seriously needs Dune's input to solve I think.
« Last Edit: January 08, 2015, 03:12:48 PM by bobbystahr »
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist

 

anything