Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides

2 bytes added, 13:45, 10 February 2016
Environment skyboxes
Note that because of changes in the accuracy of the stored values, some objects might slightly move as result.
==== Environment & skyboxes ====
Sun profiles (climate/default/nice.sii, bad.sii) are not bound to time anymore, rather to sun position. Thus <strong>low_elevation</strong> and <strong>high_elevation</strong> define interval when the profile is used. Meaningful range is -90 to 90 degrees, with 5 degree step. It works same as before, during given interval sun profile is present alone, outside of the interval it starts to blend with its neighbour. The only complication is <strong>sun_direction</strong>, that is used for splitting morning and afternoon profiles for same elevation (+1 = rising sun / morning; -1 = falling sun / afternoon; 0 = use profile for both).
Sun position is computed from actual time and truck position. Conversion formula from map coordinates to earth coordinates (namely latitude) is in climate profiles (climate.sii) as <strong>latitude_a</strong> and <strong>latitude_b</strong> values, so its possible to make differently positioned earth zones on single map just by choosing different climate profile. Some additional data are in environment data (env_data.sii) - <strong>day_in_year</strong> (172 = summer solstice), <strong>summer_time</strong> (+1h).

Navigation menu