Planetside Software Forums

Support => Terragen Support => Topic started by: N-drju on September 29, 2016, 03:46:27 PM

Title: Mysteries
Post by: N-drju on September 29, 2016, 03:46:27 PM
Hey,

Okay, forget the GI issue - I cracked it and found where the problem was. I'm sorry if I offended anybody with my rantish post.
Today, I've got two mysteries for you. :P If you can, please answer these questions:

1. How come that the sun is shinning THROUGH a ROCK in this render fragment if the RECEIVE SHADOWS FROM SURFACES option in the atmosphere tab is turned ON!?
2. Why the f...lowers the rock tower in the picture does not cast ANY shadows on the clouds below, despite it being just a standard terrain feature?!

[attach=1]  [attach=2]

My faint voice is saying "Heeeelp..." :(



Title: Re: Mysteries
Post by: yossam on September 29, 2016, 05:10:57 PM
Is the first one an "easy cloud"?  ???
Title: Re: Mysteries
Post by: Kadri on September 29, 2016, 05:15:44 PM

"Okay, forget the GI issue - I cracked it and found where the problem was."
What was it? Would be nice if you post it there for others to see,if they have a similar problem especially.
Title: Re: Mysteries
Post by: Kadri on September 29, 2016, 05:21:48 PM

Have you checked "Receive shadows from surfaces" in the Atmosphere(you have that i see) and-or Cloud nodes (try this) quality tab?
Title: Re: Mysteries
Post by: Oshyan on September 29, 2016, 06:10:15 PM
Is the rock part of the terrain, or another object?

- Oshyan
Title: Re: Mysteries
Post by: N-drju on September 30, 2016, 02:26:44 AM
Quote from: Kadri on September 29, 2016, 05:15:44 PM

"Okay, forget the GI issue - I cracked it and found where the problem was."
What was it? Would be nice if you post it there for others to see,if they have a similar problem especially.

Actually, I did not post my solution there... So I'm afraid there's nothing to refer to. :(

Quote from: Oshyan on September 29, 2016, 06:10:15 PM
Is the rock part of the terrain, or another object?

- Oshyan

It is a part of the terrain Oshyan, as can be seen in the right picture. Tower (crater shader), Tow disp. (power fractal shader) and Tower Strata (S&O shader) are the ones responsible for this terrain feature. I made it more or less according to this tutorial I've seen before:

http://www.planetside.co.uk/forums/index.php/topic,12630.msg125740.html#msg125740

I also tried to move sun beyond the terrain that came before that tower and the sun disc was not visible as it should be. So in theory the "receive shadows from surfaces" option works... but not for that tower... All cloud layers have that option checked as well.
Title: Re: Mysteries
Post by: Dune on September 30, 2016, 03:02:03 AM
I don't know if the shadow-throwing and sunray-through need a compute terrain to get its exact bearings, so was it a normal setup? Perhaps a tgd would give some folks a chance to see what's happening... but it sounds weird.
Title: Re: Mysteries
Post by: N-drju on September 30, 2016, 04:27:54 AM
I don't know what you mean by "normal setup". Anyway, according to the tower tutorial two "compute terrain" are needed because otherwise you DO NOT get any displacement on the tower surface. At least not using this method.

I'm not an expert Ulco, but if shadows and sunray-through did not require any special actions to be taken like you say, there would be no need for the "receive shadows..." option... Still, it just doesn't work with this rock tower...
Title: Re: Mysteries
Post by: Dune on September 30, 2016, 08:20:47 AM
That sounds 'normal' enough. I can't help you I'm afraid. Something for Planetside I suppose.
Title: Re: Mysteries
Post by: Kadri on September 30, 2016, 10:03:38 AM

I had a similar problem 1-2 months ago but it was only a test that i didn't bother to investigate further.

I tried some options in the render settings today.
One option was "Do ray traced shadows" in the "More" tab of the Render node.
Have a look if it is checked or not accidentally.
The sun shines through the ground even if you have "Receive shadows from surfaces" on in the Atmo node if the "Do ray traced shadows" is OFF.
Title: Re: Mysteries
Post by: N-drju on October 03, 2016, 03:42:57 AM
I will look at it Kadri, so thank you. Usually "Receive shadows" is just enough to hide the sun beyond terrain (it even says so in the atmo tab as well!) and I know that because I've tried it many times before. This is really very disappointing. :(

For now, however, I decided to use displaceable spheres as rocks. They cast proper shadows, obscure sun as they should and frankly, offer more diversity than the rock tower created from a crater. Unfortunately, you cannot really successfully use the S&O shader on them, because strata goes across the whole sphere in every possible direction... Not just horizontally. But it is a good solution and I may post some pictures later.
Title: Re: Mysteries
Post by: N-drju on October 03, 2016, 12:45:26 PM
The "Ray traced shadows" is on so I give up...

I will use displaceable spheres to create rock towers and this solution is far more versatile, plus controlling this feature is easier. You can have a look at it below. I guess it's nothing new for you... But maybe it's good to have some solutions/posts refreshed once in a while.

[attach=1]

As you can see, all of the rocks that constitute this tower (there are three of them) are casting proper shadows on the terrain and clouds below. They also obscure the sun's disc as they should. The bottom part of the highest "sprock" is also roughly displaced, while the top has larger, smoother displacement features. Displacement is distributed according to the altitude with the use of a simple "distribution shader" setup. Darkened version of Dune's Parkwood Grass is also included at the top. ;) It looks somewhat "physics defying" but make no mistake - it greatly comes down to what you want to create. I needed this kind of arrangement.

The only disadvantage of this method is that if you want to have several towers like this and populate them, say, with pines... you have to create pine population for each of the spheres. :-\ I don't think you can populate several separate objects at once to reduce the number of populations in use. Here is one more shot for a better view with sun illuminating the surface:

[attach=2]

Title: Re: Mysteries
Post by: Kadri on October 03, 2016, 12:48:14 PM

Can you share a very basic version with the problematic scene? Just curious.
Title: Re: Mysteries
Post by: N-drju on October 03, 2016, 01:34:09 PM
Do you mean the .tgd with the first, hollow rock?
Title: Re: Mysteries
Post by: Kadri on October 03, 2016, 01:35:34 PM

The one in the first post with the sun problem, yes.
Title: Re: Mysteries
Post by: N-drju on October 03, 2016, 01:43:02 PM
I'm afraid I can't because I found a workaround (as seen above) and just moved on with it and overwrote this trash altogether... :-\ You can recreate it though by creating a rock tower according to the instructions laid out in the tutorial I mentioned in the previous post. However, put it inside another crater and put the sun behind it. Sorry I can no longer provide you with the file. :(
Title: Re: Mysteries
Post by: Kadri on October 03, 2016, 02:05:01 PM

I tried it. It works as it should. At least in my test.
Would be good if you save those files like the other thread here.
For the the support section of the forum without your file and a solution it kinda feels like wasting time.
Anyway maybe others can replicate it.
Title: Re: Mysteries
Post by: Oshyan on October 04, 2016, 09:45:00 PM
Agreed, it's important to save example files that show potential bugs like this. Honestly I don't really advise consistent overwriting of files in general, actually. We have incremental save in there and it's quite useful. So many times I've seen people on here lamenting that they overwrote a TGD with a feature they ended up liking and wanting to use again later. Why overwrite? TGDs are small, hard drive space is cheap. :D

Anyway, what I would try next for troubleshooting would be to increase Displacement Tolerance in the Planet node.

- Oshyan