sun position

sun position

Classic game design, maintained to please you...

Moderator: Content Developer

Post Reply
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

sun position

Post by dansan »

Referencing Behes screenshots from "BA model replacements" @ http://springrts.com/phpbb/viewtopic.ph ... &start=920
(I don't want to derail that thread to much, so opening new topic.)

Image

Look at shadows of the trees top left and bottom in screenshot and interpolate the suns position. Is it intentional, that the sun is put very near to the map? While the shadows look very nice and make the map atmospheric, the angle seems unrealistic.
(I'm not trolling - I want to understand.)
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: sun position

Post by jK »

The sun is multiple million km far away. So to simplify the whole math you can assume that the sun has no distance instead it is just a direction. And this SunDir is equal on every spot on the map.

So the sun isn't "near to the map" at all ;)
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: sun position

Post by luckywaldo7 »

Maybe he meant the angle over the horizon? It looks to be about 45┬░, so mid-afternoon?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: sun position

Post by jK »

The SunDir is a map property and I don't see it being unrealistic on this map at all ...

Or do you live in Antarctica and never saw 45degree shadows? ^^
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: sun position

Post by very_bad_soldier »

That shadows indeed seem to not take all the same direction (which is probably what he meant). I think the reason is that the trees are not straight but bend and the shadows therefore get distorted.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: sun position

Post by dansan »

Oh... (blushing)... I think it's what v_b_s said: when I look at all the other trees, their shadow are mostly in line... but the trees @top left got my attention, and their shadow lean a lot to the left, what made me interpolate the suns position wrong, and it's prob just that they are not straight... sorry for the noise, and thank you for your answers :)
Post Reply

Return to “Balanced Annihilation”