Need help with smooth displacements

Started by Elegy, July 08, 2009, 08:43:03 PM

Previous topic - Next topic

Elegy

Hello, I've recently tried to get a handle on Terragen 2 and I'm having a little trouble using functions to get smooth displacements. My ultimate goal is to basically smooth the edges of Voronoi Cell noise and then to use that to hopefully create realistic looking canyons.

Before that though, I'm trying out a method to see if it works. I've attached an image of what I'm trying to do. Basically, I used a Hard Step Scalar to create a sharp circle in the centre of the terrain (a cross section is shown at the top of the image) and I'm trying to smooth the edges out so it looks like the bottom part of the image.

I had the idea of laterally displacing the edges of the block by using a Smooth Step Scalar but it doesn't seem to be working. The end result is just a constant angled slope downwards. Can someone help me out here please? Any help would be appreciated.

The TGD file is attached.

mogn

I have never tried lateral displacement, but a minimum requirement is that you miss a compute terrain somewhere.

Henry Blewer

There are easier methods for making canyons. A large height field with steep slopes work great. Just set the displacement to 5000 instead of the default 2000. If you add plant objects, just scale them up so they fit the canyon scale you had in mind. A couple strata and outcrops shaders should give you the look you want. The first for the hard plateaus, the second for softening the hard edges.
http://flickr.com/photos/njeneb/
Forget Tuesday; It's just Monday spelled with a T

Elegy

Compute Terrain doesn't appear to be the problem. I had a Compute Normal but I replaced it with a Compute Terrain (with a small patch size) with no difference.

I've tried some of the easier methods for making canyons and they work quite well - I've attached a render of the scene I'm currently working on in fact (I still have a lot to do with the image).

However, my canyons aren't as canyon-looking as I'd like them to me. Ideally, I want to be able to create canyons like these:

http://www.planetside.co.uk/images/stories/planetside/displacement.jpg
http://upload.wikimedia.org/wikipedia/commons/1/1d/Isalo_canyons.jpg

The first one in particular looks like a job for Voronoi.

Hetzen

The problem you are having, I think, is that with Voronoi Cellular Noise there are no steps of grey between each patch. I've had a go with the Step nodes before and they didn't do what I expected (wanted). Terragen doesn't like pure verticle surfaces, because the geometry triangles become too stretched to allow further finer displacments laterally, they too look stretched. I've had better success by making vertical displacments at a slight angle, say 85 to 88 degrees, by adding a small roll off in the greys between black and white of the displacment. This seems to add more vertices in the vertical.

Having a look at your .tgd, your get altitude function will only be working on the final position of the whole node network, as it only returns it's value on rendering, so you plugging into it's input is redundant, the Get functions don't use their input at all. (the reason for it being there is the way the program sets up nodes). Something I found out recently.

Have a go at painting some hard edged white splodges on black in photoshop, then add a slight blur to the image, then use an image map shader in TG as the displacment function. A colour adjust shader between the image map shader and the displacment shader will give you some control over the vertical'ness of the sides. Either that, or play around with some clamped power fractals, or, use Geocontrol.

schmeerlap

Sorry I can't help you regarding using functions to give you your smooth-edged canyon, as they're (functions) on a high shelf which I can't reach. But I did have some success using an Image Shader as a Blend by Shader greyscale mask on the main terrain Power Fractal. This method does take a bit of persistent clicking on the seed button of the Power Fractal to get the desired terrain under your image mask. The link below will take you to my "Arabah Pass" where I employed this method.

http://forums.planetside.co.uk/index.php?topic=5663.msg58657#msg58657

John
I hope I realise I don't exist before I apparently die.