How to generate terrain inside a simple shape shader only?

Started by arlechinu, May 13, 2013, 03:09:46 AM

Previous topic - Next topic

arlechinu

Hi,

I'm trying to create some hexagonal map tiles with terrain but I just can't find a way to generate terrain inside a shape only. I don't mean masking the generated terrain, I managed to do that, but if I mask the terrain in an area with very high terrain it comes out as a very high column with the terrain on top of it and very high and straight sides, just like slicing the terrain down to the planet surface.

What I need to do is being able to define a shape - one or more simple shape shaders or perhaps a mask that I can draw in Photoshop - and only generate the terrain inside of it, with the edges of the generated terrain blending with the planet surface.

I'm hoping someone more proficient that I can help me out in the right direction, I'd really appreciate it!

Thanks!

Dune

Maybe you can work out something with this....

arlechinu

Thanks for that! It's definitely in the right direction but I can't get my generated terrain edges to blend with the planet surface as well as in your scene. As soon as I try to increase the height range the edges of the shapes are 'sliced'. How can I fix that? What am I doing wrong?

Dune

You'd have to soften the edges of the simple shape (edge profile).