Skip to content

Time Of Day

tobspr edited this page Apr 15, 2016 · 3 revisions

The render pipeline supports an extensive Time of Day system. It controls settings like the sun position, fog amount and scale, camera parameters (ISO, aperture and shutter speed in case of manual camera parameters), and much more.

Configuring the Time of Day settings

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.