/
SolarLunarTracking.README.txt
40 lines (30 loc) · 1.56 KB
/
SolarLunarTracking.README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Solar Lunar Tracking (Unity 5)
==============================
The SolarLunarTracking.unitypackage package for Unity 5 provides astronomically
accurate solar and lunar tracking. The tracking is used to position lights and
objects representing the sun and moon. The color temperature of the sun light is
adjusted as a function of elevation.
Getting Started
---------------
This project depends on the SimTimeControls package published by the VTL.
To use this package first add the SimTimeControls prefab to your scene. Then
place the SolarLunarTracking prefab in your scene. Position the prefab such that
it is centered on your terrain.
In the inspector specify your location and UTM timezone in the fields provided
under the "Solar Lunar Tracking Geolocation" component of the SolarLunarTracking
GameObject.
In your lighting settings set the SolarLunarTracking/Sun/Light as the Sun.
(Unity seems to forget this. If you can't see the Sun double check this.)
Make sure the clipping distance of your main camera is beyond ~8000 meters to
ensure the moon is visible. Or move the Plane under Moon to within your viewing
range.
Changelog
---------
Updated to support Unity 5.1.1 API changes
Acknowledgements
----------------
The astral class is derived from Simon Kennedy's Python astral module under
Apache Software License 2.0, and Darin Koblick's matlab Lunar Azimuth and
Altitude Estimation Algorithm under BSD.
https://pypi.python.org/pypi/astral/0.8.1
http://www.mathworks.com/matlabcentral/fileexchange/22992-lunar-azimuth-and-altitude-estimation-algorithm/content/LunarAzEl.m