Planetside Software Forums

General => Terragen Discussion => Topic started by: zepeu on January 12, 2021, 10:37:12 AM

Title: Mask shader not masking?
Post by: zepeu on January 12, 2021, 10:37:12 AM
Hello !

I'm sort of a beginner in Terragen even if I used it for a long time, mostly because I don't achieve to find the basic informations of "what does this actually do?"
I obviously did some research without succes :(

So, I explain :
Context : I'm trying to create a canyon in the middle of a desert. Therefore a sandy desert (yellowish) with a rocky canyon (redish)

Help I got : I (mostly) followed this really nice tutorial to do it : Canyon Tutorial (https://www.youtube.com/watch?v=ZWsQDWRk6-w)
Well, it's really nice... As long as you don't get the camera out of the canyon ^^,

Problem : There is a "fake stones shader" masked by the "painted shader" defining the canyon. Theorically, the fake stones should be only inside the canyon... They are not :'(

Here are the nodes :
(https://i.ibb.co/HKZzLMw/Nodes.png) (https://ibb.co/b6tBjyw)

I'm pretty sure the "problem" is linked to these 3 elements in the node network, but I don't achieve to get what's making the fake rocks getting on the desert even with the mask on (yes, the "fit to this" are all deactivated ;) )

Therefore, here is what I got as a result :
01 Desert with fake stones.png

And this is what I would like (sort of, I just deactivated the fake stones and the colouring of them for the image :) )
02 Desert without fake stones.png

Could anyone give me some advices, and, possibly even explain me what in the hell is happening?
I tried to mask a population of bushes with the shader, and it works perfectly :'(






Bonus question :
I have these trange shapes, absolutely ugly on the rim of the crack, how to remove them?
03 Strange shapes.png

Thanks a lot by advance !

;)
Title: Re: Mask shader not masking?
Post by: Dune on January 12, 2021, 11:07:40 AM
I'll have a look. It looks awful indeed.

EDIT: Well, that's a very strange method, very slow too, with three compute terrains.

EDIT 2: adjusted your file to a more logical setup. There's a lot that can still be perfected, but I left it at this. Good luck!
Title: Re: Mask shader not masking?
Post by: zepeu on January 12, 2021, 12:01:07 PM
Quote from: Dune on January 12, 2021, 11:07:40 AMI'll have a look. It looks awful indeed.

EDIT: Well, that's a very strange method, very slow too, with three compute terrains.

EDIT 2: adjusted your file to a more logical setup. There's a lot that can still be perfected, but I left it at this. Good luck!

Thanks a lot, I'll have to understand what you did, now ^^,
Ho do you get such skills without tutorials? It's really a mistery to me...
Title: Re: Mask shader not masking?
Post by: Dune on January 12, 2021, 12:12:58 PM
Study tgd's that are posted, and read the basics.... and that for more than 10 years ;)
Title: Re: Mask shader not masking?
Post by: zepeu on January 12, 2021, 05:21:34 PM
Quote from: Dune on January 12, 2021, 12:12:58 PMStudy tgd's that are posted, and read the basics.... and that for more than 10 years ;)
Hahahaha... I read the beginning, thought "Yeah, I already did this, not realy helpfull  :( " then the rest of the sentence XD
Thanks :)
Title: Re: Mask shader not masking?
Post by: Dune on January 13, 2021, 02:57:05 AM
;D  You're right; the beginning is pretty tough. Experimenting is another thing, combine nodes, see what happens. That takes a lot of time, but can also give a lot of insight.
Title: Re: Mask shader not masking?
Post by: N-drju on January 13, 2021, 04:07:28 AM
It is rarely a good idea to mask all your features with just one painted shader, unless you really know what you are doing. Nodes interact with each other. Sometimes in an ugly way. Especially when they are masked with exact same item.

This may yield exaggerated results - displacements are being superposed onto one another and go out of control. Think "wave interference".

I think it might be helpful for you to study other masking methods that TG offers. Rest assured, I began my adventure with TG in much the same way as you do - a day with a painted shader is a day worth living. ;)

Just remember that in TG it is easier to make more out of less than the other way. Good luck!
Title: Re: Mask shader not masking?
Post by: Dune on January 13, 2021, 04:25:40 AM
You're right. I would prefer a soft simple shape setup for valleys like this, where you can adjust softness through color adjusts for different masks, avoiding overlaps.