Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate the sunlight direction according to the current time and position on the earth

How can I calculate the position of the sun according to the current time and position on the earth? I am currently adding light-sources to an Augmented Reality framework on Android and it would be great to know where to set the "sun". I think there are a lot of factors but an approximation would be enough for now I think.

like image 558
Simon Avatar asked Nov 13 '22 20:11

Simon


1 Answers

take a look at the noaa site, they give you a spreadsheet that gives you the results you want.

like image 80
woliveirajr Avatar answered Dec 10 '22 11:12

woliveirajr