Planetside Software Forums

General => Terragen Discussion => Topic started by: one2gov on April 28, 2014, 02:32:54 PM

Title: Terragen 3 density shader: how to use?
Post by: one2gov on April 28, 2014, 02:32:54 PM
Hello everyone. I can't understand how to use density shader. As i read here http://planetside.co.uk/wiki/index.php?title=Populator_v3 "The density shader is read as a mask where white areas mean objects are placed the most densely and black areas mean no objects will show up. Intermediate grayscale values will have varying levels of population density according to how light the grayscale value is."
As i understood with that tool i can create empty spaces on my plane that full of objects.

I what to create spherical map. For my purpose i need to delete tree under camera. If i am correct i need to apply to my plane this density shader

(http://i.imgur.com/8PsyTyk.png)
But i am just sitting and pressing wrong buttons all day.
Title: Re: Terragen 3 density shader: how to use?
Post by: yossam on April 28, 2014, 05:07:31 PM
Try this.............


You might have to resize your map to get what you want.
I used one of the trees from the model pack that comes with TG.



Title: Re: Terragen 3 density shader: how to use?
Post by: bobbystahr on April 28, 2014, 08:59:33 PM
Try this as well.....I used a free Banyan .tgo that was out there

EDIT  note that you have to invert the Simple Shape/Density shader
Title: Re: Terragen 3 density shader: how to use?
Post by: one2gov on April 29, 2014, 04:31:40 AM
Thank you yossam i used your file as guide. I didn't noticed "projection type" option.
bobbystahr i prefer your clean solution but unfortunately i don't know how to hide that shape shader from renderer. Thank you for your time.
Title: Re: Terragen 3 density shader: how to use?
Post by: Kadri on April 29, 2014, 06:07:46 AM
Quote from: one2gov on April 29, 2014, 04:31:40 AM
... unfortunately i don't know how to hide that shape shader from renderer....

I don't understand your problem.

Maybe the outside you wrote is the boundary for the population?
Make the population area bigger by putting bigger numbers in Area length a  and b .

If you use a image map  you have the problem to mask the outside too.
You can use more then one population to overcome this or using the merge nodes for more complicated setups.
But with a Simple shape shader it is easier.
You get only a circle or square mask in the place and the size you specify.


If you want only to use a image as a mask the basic way is to use a very big one with a small are for the masked place.
Terragen can use very big images very easily...like 20 000x 20 000 if you want.
If you use a greyscale image it will not very big even.
Like this one below.
Title: Re: Terragen 3 density shader: how to use?
Post by: bobbystahr on April 29, 2014, 08:14:29 AM
Quote from: one2gov on April 29, 2014, 04:31:40 AM
Thank you yossam i used your file as guide. I didn't noticed "projection type" option.
bobbystahr i prefer your clean solution but unfortunately i don't know how to hide that shape shader from renderer. Thank you for your time.

Use the Maptest_0001.tgd as a tute...If you do as I did in it you should be home free.
Title: Re: Terragen 3 density shader: how to use?
Post by: bigben on May 12, 2014, 09:57:01 AM
Quote from: one2gov on April 28, 2014, 02:32:54 PM
....
I what to create spherical map. For my purpose i need to delete tree under camera.

Sounds like a distance shader.
[attach=1]