RealSun Position

$19
Publisher 10th Planet™
File size 169.65MB
Number of files 310
Latest version 1
Latest release date 2017-01-04 06:15:29
First release date 2017-01-04 06:15:29
Supported Unity versions 2018.4.2 or higher

"RealSun Position" is a simple script that performs the classic day/night cycle, but unlike everyone else, he does so by taking account of the geographic location and time of year!
Simply by providing the precise geographic coordinates (then latitude and longitude) and a start date, the script is able to calculate the correct angle of rotation to apply for your directional light, so that the day/night cycle of your application will not be just a simple imitation, but correspond to the true day/night cycle of real world.

In astronomy, there are some algorithms that are used to calculate the exact location of the heavenly bodies in outer space in a precise date, in the past, present, or future. "RealSun Position" is based on the method of the Julian day, which is the acronym JDE, and is one of the most accurate methods and most commonly used. The JDE method allows to calculate the azimuth and elevation angle of the sun at a given time to a specific geographic location of our planet. Once obtained these data, they are simply applied to the directional light of your scene, and you're done.

Some examples: suppose you are designing a game that will take place in a Far West-style environment. Applying "RealSun Position" to the directional light of the scene and then entering in the script the geographical coordinates of Texas and any date of the year, for example of 1862... The result would be to get in your environment, the true and real sunshine of the Wild West for that precise period; try to imagine how exciting it would be to get the result of a sunset over the Rocky Mountains of Texas corresponds perfectly to the real world!
Or maybe you're making a 3D reconstruction of the dropping of the atomic bomb on Hiroshima? Surely you've lost a lot of time for the realization of the environment as close as possible to the photos of that era, but at what time those photos were taken? How are you going to get the right light of that moment? Of course you can, but you will lose even more a long time when it would be enough to simply use the script by setting the geographical coordinates of Hiroshima, and the day of August 6, 1945 at 08:15 AM; You would get the exact, true, and perfect light of that historic moment!
Perhaps instead you have in mind a game set in Russia, specifically in St. Petersburg? Maybe even in the distant future? I don't know… For example, we say at midnight on July 26 of the year 9290? But you know that in the summer time and in that place at midnight there is still the sun? "RealSun Position" the knows how, because in fact he will calculate the exact position of the sun in that moment and he will apply it to the directional light in your scene, so that even in your game, at midnight will still day, just as it would in reality!
And at the north pole? Or at the south pole? The day and night are six months long, and the sun on the horizon will stay low in the sky, not exactly over our heads as happens here. "RealSun Position" knows it and executes it, because "RealSun Position" manages the light of your application so that it matches exactly the same sunlight of the real world which would result in any place in both hemispheres.

That is why it's possible to use "RealSun Position" without any hesitation, not only for recreational applications, but also for educational applications, research, professional, and also for applications of astronomical type.

Top Publisher Assets