Planetside Software Forums

General => Terragen Discussion => Topic started by: Erwin0265 on April 05, 2012, 09:02:35 PM

Title: Sun shining through solid object
Post by: Erwin0265 on April 05, 2012, 09:02:35 PM
Hi,
Just another post to ask another noob question.
I am playing around with the sun position in my scene and can't seem to work out why the sun can shine through a solid object.
If I uncheck, "Glow in atmosphere", all is fine, but I want the glow in the sky; just not coming through solid rock.
Any suggestions?
Thanks
Erwin
Title: Re: Sun shining through solid object
Post by: rcallicotte on April 05, 2012, 10:08:40 PM
There's a setting to prevent this.  Can't remember it (sorry), but do a search for "sun shining through terrain" to see what you can find.
Title: Re: Sun shining through solid object
Post by: Oshyan on April 05, 2012, 10:59:42 PM
You need to enable "Receive shadows from surfaces" on the Quality tab of the Atmosphere node. Unfortunately this will increase render time, but it's the only way to properly fix it at this time.

- Oshyan
Title: Re: Sun shining through solid object
Post by: Erwin0265 on April 06, 2012, 12:36:11 AM
Quotebut do a search for "sun shining through terrain" to see what you can find.
That's exactly what I did; but I didn't find anything that addressed this particular issue.
QuoteYou need to enable "Receive shadows from surfaces" on the Quality tab of the Atmosphere node.
Thanks, Oshyan.
QuoteUnfortunately this will increase render time, but it's the only way to properly fix it at this time.
Yep; render time went from 1 min, 48 seconds to 9 min, 1 second; and that's for a little 640 x 480 test render............
Looks a lot better though...............
Cheers
Erwin
Note:- Render 6.56 is the one with "Receives shadows from surfaces" checked" [render time = 9min, 1sec]
          Render 6.57 has "Glow in atmosphere" unchecked [Sunlight settings] [render time = 1min, 58sec]
I think it's worth the wait and use the "Receives shadows from surfaces" setting.
Although, you could probably achieve a similar effect by combining render 5.55 and 5.57 in PS or GIMP, etc.
Similar, but still not quite as good as render 5.56...................
Title: Re: Sun shining through solid object
Post by: rcallicotte on April 06, 2012, 03:25:08 PM
Looks nice, I agree. 

Good to be reminded what this is.  Thanks Oshyan.
Title: Re: Sun shining through solid object
Post by: FrankB on April 08, 2012, 11:51:38 AM
To be precise, the sun isn't shining through an object, but the atmosphere is glowing in front of the object, whereas the shadow from the object should prevent the atmosphere from glowing in that spot.

That's  what "receive shadows from surfaces" actially means: that the shadows that an object or terrain casts also affects the atmosphere in that object or terrain shadow.


Title: Re: Sun shining through solid object
Post by: Erwin0265 on April 08, 2012, 09:35:58 PM
QuoteTo be precise, the sun isn't shining through an object, but the atmosphere is glowing in front of the object, whereas the shadow from the object should prevent the atmosphere from glowing in that spot.

OK, let me rephrase; The sun APPEARS to shine through the object....................
;)