Getting two colours from one surface layer?

Started by monks, October 10, 2008, 05:02:24 PM

Previous topic - Next topic

monks

Is this possible?

I've got an image map that I want to use to control the bounding area of 2 colours.
I've gto a single surface layer. I've removed the default fractal breakup node though from the surface layer.
I have an image map going to 2 colour adjusts. How would I input those into the single surface layer to get a mix WITHOUT using altitude or slope.
I'm really trying to minimise the number of nodes here, any other suggestions would be welcome.
Any ideas??

monks

bigben

I take it you have a greyscale image map and you want to apply colour to the high and low values, with mixtures in between?

It's quite simple really.  Set the white point to the greyscale value that you want the colour to appear fully, and the black point to the number that you want it to disappear. (scale of 1 to 0)  That's all there is to it.  If the black pooint is higher than the white point the greyscal image will appear inverted, so there's no need to invert the mask at all.

http://forums.planetside.co.uk/index.php?topic=2519.msg25275#msg25275
http://forums.planetside.co.uk/index.php?topic=2549.0 Flat ocean, coloured using an image map of bathymetric data

monks


mhaze

I'm totally confused by your examples and can seem to make monks set up work. How about a simple example for the mentally challenged please

Thanks

Mick

bigben

http://archive.bigben.id.au/tgdemo/colour_adjust_mask.tgd

This demo overlays two masked surfaces (green and blue) over a red surface producing a complete spectrum of colours. Simply substitue a greyscale image map for the Fractal node feeding the colour adjust shaders.

mhaze


mhaze

No matter what image or type of image I use for a mask this causes terragen to crash soon after usually on the next change or the one after.

I came up with my own similar solution and the same thing happened, any ideas?

Mick

Oshyan

Are you using "Through Camera Projection" in your Image Map shader? You will need to assign a camera to stop it from crashing. Either that or use a different projection type, though Through Camera may be necessary for your particular technique.

- Oshyan

mhaze