Planetside Software Forums

General => Terragen Discussion => Topic started by: siddartha on April 21, 2018, 02:23:10 PM

Title: terrain under a lake/ water shader
Post by: siddartha on April 21, 2018, 02:23:10 PM
Hello friends,
I have a question about the lake objekt or the water shader in Terragen 4.
When I'm rendering a scene with some displaced terrain under the lake surface
it is because of the transparency in a certain camera angle possible to look
through the water and to see the terrain.
But it seems that TG is not showing in the final render the calculated terrain,
instead just something very simple without any details like in the preview
when it starts the calculation.
The render quality settings doesn't matter it is always like that in the final render.
Is this a known bug in Tg or exist some trick to render the displacement under
a lake object/ water shader correctly?
thanks in advance!
Title: Re: terrain under a lake/ water shader
Post by: zaxxon on April 21, 2018, 07:04:04 PM
No bug, but the feature to enhance the render is a bit tricky to find. It's called the "ray trace multiplier", see this forum link:

https://planetside.co.uk/forums/index.php/topic,23425.msg238178.html#msg238178

Forgive me for bumping my own image to demonstrate  ;) :

https://planetside.co.uk/forums/index.php/topic,23396.msg236756.html#msg236756
Title: Re: terrain under a lake/ water shader
Post by: Matt on April 21, 2018, 09:54:47 PM
In TG4 it's much easier to get to. There's a button on the Advanced tab labeled "Subdiv Settings".

Matt
Title: Re: terrain under a lake/ water shader
Post by: siddartha on April 22, 2018, 08:01:19 AM
Thanks for the answers but it doesn't work for me.
I've rendered now with the subdevision multiplier on 2 instead of 0.25.
The result was more details in the area where it was also o.k. before
but in the area near the camera no effect at all.
I attached 2 simple test render  with 0.25 and 2 as a multiplier.
the rendertime of the second was 10 times longer.
Title: Re: terrain under a lake/ water shader
Post by: Dune on April 22, 2018, 10:04:26 AM
Ah, this is something to do with the clipping. I think it's ray detail padding you have to adjust to maybe 1  (in the renderer). And the subdivison settings needn't be above 1. 1 is the same relative detail as the rest, you can't get higher.
Title: Re: terrain under a lake/ water shader
Post by: siddartha on April 22, 2018, 11:02:26 AM
Yes, the detail padding has solved the problem!
Thanks a lot and sorry if my question wasn't clear enough.