Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 13,972 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: real sun position by time, date and location [Re: djfeeler] #422062
05/01/13 07:29
05/01/13 07:29
Joined: Nov 2011
Posts: 274
de
lemming Offline
Member
lemming  Offline
Member

Joined: Nov 2011
Posts: 274
de
Thank you! This will be useful!

Re: real sun position by time, date and location [Re: lemming] #422063
05/01/13 08:18
05/01/13 08:18
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
@oliver2s: Thank you very much from me, too! smile

Have you tried to retrieve the night/twilight/day/golden hour times as well to blend sun colors, too?

Re: real sun position by time, date and location [Re: HeelX] #422064
05/01/13 08:22
05/01/13 08:22
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Originally Posted By: HeelX
@oliver2s: Thank you very much from me, too! smile

Have you tried to retrieve the night/twilight/day/golden hour times as well to blend sun colors, too?


Not yet. It's on my To-Do-List, but has low priority, because I have a lot of other things to do the next 3 months.

Re: real sun position by time, date and location [Re: oliver2s] #422075
05/01/13 15:43
05/01/13 15:43
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
@oliver2s and HeelX: Do you have any sources related to the sun light color?

Re: real sun position by time, date and location [Re: PadMalcom] #422106
05/02/13 09:24
05/02/13 09:24
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
No, I don't have any sources yet.

Re: real sun position by time, date and location [Re: oliver2s] #422117
05/02/13 15:18
05/02/13 15:18
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
I am not sure, but maybe Cinema 4D provides some information on the color? (At least the built-in sun can auto adjust to a given time with direction/color, probably the manual has a chapter about that and maybe with citations on how they did it?)

Re: real sun position by time, date and location [Re: Rei_Ayanami] #422120
05/02/13 18:31
05/02/13 18:31
Joined: Mar 2006
Posts: 2,252
Hummel Offline
Expert
Hummel  Offline
Expert

Joined: Mar 2006
Posts: 2,252
Check the Atmospheric Scattering section in the rendering papers thread. It's basically all about light getting wavelength-dependend absorbed and scattered away while traversing the atmosphere. During dawn and dusk there is more atmosphere the light has to traverse, which results in the color change.

Re: real sun position by time, date and location [Re: Hummel] #434181
12/16/13 12:25
12/16/13 12:25
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Under very rare conditions the sun pan was wrong for a few seconds around noon in spring and fall, because the value for acos was out of range (-1, 1).

Fixed that and updated the code in the first post.

Re: real sun position by time, date and location [Re: oliver2s] #434693
12/24/13 08:34
12/24/13 08:34
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
The code in the first post isn't correct (undeclared stuff from iceX), those defines do not match with the ones which are used in the function itself.

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: real sun position by time, date and location [Re: 3run] #434701
12/24/13 12:47
12/24/13 12:47
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
i just converted the code yesterday to C#.
the defines are pretty clear. one must be replaced with the latitude parameter, the other is just another Rad/Deg-conversion factor


Visit my site: www.masterq32.de
Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1