Planetside Software Forums

General => Terragen Discussion => Topic started by: MGebhart on October 29, 2009, 01:43:18 PM

Title: Layers of Color
Post by: MGebhart on October 29, 2009, 01:43:18 PM
Hi,

I'm trying to layer elevations of color on my terrain. I'm not clear on how to setup the shader to do this. I could not find documentation to help accomplish this.

I thought I could stack Surface shaders with different min and max altitudes to get the look I want but, no luck. Can't get past two colors and the colors are not blended.

The image gives you an idea of what I want to do.

Thank you,

Marc
Title: Re: Layers of Color
Post by: neuspadrin on October 29, 2009, 02:32:01 PM
you would need to limit the min AND max of each layer, except the top/bottom layer which top would only limit min, and bottom would limit only max.  Also might want to check the "use y for altitude" to make your life easier there.  Or youd need to be super careful and just set the min height and slowly go through each layer in proper order. 

Theres other ways to do this, easiest is with using images.  I'm sure theres other methods too.
Title: Re: Layers of Color
Post by: cyphyr on October 29, 2009, 03:53:16 PM
As neuspadrin says images may be the best way. You could make a banded layer in photoshop or use the free program Stratagen 2 (http://sg2.jens-bringewatt.de/index.php). You'll need to use an image shader in plan z or plan x projection and set the scale to the relative height of your terrain (the diff between your min altitude and your max altitude)
:)
Richard
Title: Re: Layers of Color
Post by: Henry Blewer on October 29, 2009, 09:49:31 PM
Here is a link to my towers landscape. It uses procedurals for strata and strata coloring. There is a tgd file you can download and use if you like it. I made it as a rough landscape which can be reseeded to make many more.
http://forums.planetside.co.uk/index.php?topic=7145.0
Title: Re: Layers of Color
Post by: MGebhart on October 29, 2009, 10:17:11 PM
Thank you all for your input.

When I get some time tomorrow I'll work on it.

Thanks again,

Marc
Title: Re: Layers of Color
Post by: MGebhart on October 30, 2009, 08:43:12 AM
Here is an image with the strata.

Thanks again for your help.

Marc
Title: Re: Layers of Color
Post by: schmeerlap on November 04, 2009, 11:49:39 AM
It looks like your image with strata is projected through the camera as the strata in the distant cliffs is perfectly aligned (and is the same scale) with the strata in the nearby cliffs. That can seem unnatural. Using an Imagemap for coloured strata layers is probably better implemented using X or Cylindrical projections. I've put this one together to illustrate how the Cylindrical projection looks. You'll find the tgd below. I've also provided you with a low resolution version (the original is more than 3 Mb) of the image I used in the Imagemap shader. When you first open the tgd file you'll get an error message cos it won't be able to find the image. Either insert this low res image into the Imagemap shader, or one of your own. You can see that the image itself isn't a strat image, just some coloured noise. So you can see how cool the Cylindrical projection can be in converting it to strata. When you've got the tgd loaded you'll see that the Imagemap is filtered through a Warp shader. To see what the strata looks like without the warping, just unhook the Warp shader from the Surface layer Colour input, and hook the output from the Imageshader straight into that Colour input.

John
Title: Re: Layers of Color
Post by: MGebhart on November 04, 2009, 12:09:16 PM
John,

Excellent.

I appreciate your involvement in this topic. This is very helpful and will give users with less knowledge a solid leg-up on creating believable strata. You have gone that extra mile and I am grateful.

Thank you,

Marc   
Title: Re: Layers of Color
Post by: MGebhart on November 05, 2009, 12:27:56 PM
Here is a quick render of image driven strata.

Again, I would like to give credit to John for his involvement in this Topic and providing the necessary Terragen settings to create this image.  

Please note that this image was rendered 320x240 and sharpened in Photoshop. The final render will be larger with populations.

Marc
Title: Re: Layers of Color
Post by: bobbystahr on November 07, 2009, 01:10:03 PM
Quote from: MGebhart on November 05, 2009, 12:27:56 PM
Here is a quick render of image driven strata.

Again, I would like to give credit to John for his involvement in this Topic and providing the necessary Terragen settings to create this image. 

Please note that this image was rendered 320x240 and sharpened in Photoshop. The final render will be larger with populations.

Marc

You might also want to play around with the Paint shader as a way of restricting all strata info: maps, strata shader, etc. to a specified area.. ...
Title: Re: Layers of Color
Post by: TheBlackHole on November 07, 2009, 06:49:20 PM
The first one is the best (other than the weird strata). Is that a TG2 render or a photo showing what you wanted?
Title: Re: Layers of Color
Post by: MGebhart on November 07, 2009, 09:20:31 PM
Yes, the sample.jpg is a photograph.

It does kind of look like a render. I suppose that's a good observation of how TG2 renders photo-real stuff so well.

Marc 
Title: Re: Layers of Color
Post by: pfrancke on November 08, 2009, 12:46:43 PM
This has been a very useful thread for me.  John, I messed with your tgd also to see how you get this great terrain - I couldn't get the strata or the twist and shear to do anything though until I put a compute terrain node in front of the twist and shear (I might be wrong about this).  Anyway, thanks guys!
Title: Re: Layers of Color
Post by: pfrancke on November 08, 2009, 01:20:40 PM
Here is jpg and tgd with couple of minor tweaks.
Title: Re: Layers of Color
Post by: TheBlackHole on November 08, 2009, 06:44:06 PM
Quote from: MGebhart on November 07, 2009, 09:20:31 PM
Yes, the sample.jpg is a photograph.

It does kind of look like a render. I suppose that's a good observation of how TG2 renders photo-real stuff so well.

Marc 
I was talkng about how the strata colors are so weird.
Title: Re: Layers of Color
Post by: Henry Blewer on November 09, 2009, 07:54:39 AM
The displacements are wild, and I like the coloring. If you used lateral displacement, this is how I can usually get away from the dark render spots. I use a Compute Normal input to the lateral displacement. The Compute Normal's setting is changed to the smallest scale size. This helps keep the displacement from wrapping into itself, causing render errors.
Title: Re: Layers of Color
Post by: pfrancke on November 11, 2009, 04:12:47 PM
This thread has opened a world for me.  In the attached image I simply had two imagemaps - a whitish one and the one provided above - on the terrain and each imagemap was blended with multiple powerfractals (with tweaks in different directions).
Title: Re: Layers of Color
Post by: Henry Blewer on November 11, 2009, 07:12:04 PM
I think I might look into this method. It's very impressive.
Title: Re: Layers of Color
Post by: MGebhart on November 11, 2009, 10:31:41 PM
WOW! This is terrific. Perhaps a little more detail for us new users.

Marc
Title: Re: Layers of Color
Post by: pfrancke on November 11, 2009, 11:22:19 PM
 :-[   Believe me, I consider myself perhaps not a new user, but certainly a less than clever one.  I'm attaching the essence of the tgd file that created the image.  Just find image textures to plug in.  I stumbled on this technique because of this thread, and I don't know how much is luck or how much is value, but my thinking was that if I pumped random numbers into the blending node of the image map, then the image wouldn't cover all the background.  Or perhaps I could have multiple images...  Anyway, please forgive the shameful tgd - have fun with it!!!