Skip to content

Time Of Day

tobspr edited this page Apr 15, 2016 · 3 revisions

Configuring

There is a daytime editor located in toolkit/daytime_editor. You can use this to configure the daytime dependent settings. This is a live preview, if any pipeline instance is running at the time, it will directly show the updated settings.

![Plugin Configurator](http://i.imgur.com/lJXj9rL.png)

Importing real-world sun data

The render pipeline supports importing real-world sun data from an external API. Real-World sun data includes sun-altitude, sun-azimuth and sun-intensity.

If you want to import data, head over to toolkit/import_sun_data and edit import_data.py with the location and datetime you would like to fetch data for. The default configuration looks like this:

# You can get this data from http://sunpath.azurewebsites.net/
CONFIG = {
        "year": 2016,
        "month": 7,
        "day": 21,
        "latitude": 50.778228759765625,
        "longitude": 6.088640213012695,
        "height": 167,
        "precision": 6
    }

After editing the configuration, run import_data.py. You will also be asked to override your current time of day settings.

Clone this wiki locally