Difference between revisions of "Osiris/API/TriggerSetAtmosphere"
From Divinity Engine Wiki
(Documented TriggerSetAtmosphere) |
m (Added fading time information.) |
||
Line 6: | Line 6: | ||
* As mentioned above, the UUID must be the UUID of a resource, ''not'' of a root template. Additionally, the '''_Trigger''' must be an [[Triggers|atmosphere trigger]] and not any other kind of trigger. | * As mentioned above, the UUID must be the UUID of a resource, ''not'' of a root template. Additionally, the '''_Trigger''' must be an [[Triggers|atmosphere trigger]] and not any other kind of trigger. | ||
* The atmosphere you specify must have been added as one of the possible atmospheres that can be used in that atmosphere trigger via the "Atmospheres" property of the sidebar. Afterwards, you must also render all light probes again. | * The atmosphere you specify must have been added as one of the possible atmospheres that can be used in that atmosphere trigger via the "Atmospheres" property of the sidebar. Afterwards, you must also render all light probes again. | ||
+ | * If the atmosphere changes abruptly, make the fading time of the atmosphere trigger longer. This means that the exposure of the HDR can't keep up. It's kind of like pointing a video camera from a dark room out into a sunlit street - it'll take a bit of time to adjust. | ||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/TriggerResetAtmosphere|TriggerResetAtmosphere]] | * [[Osiris/API/TriggerResetAtmosphere|TriggerResetAtmosphere]] | ||
[[Category:Osiris Calls]] | [[Category:Osiris Calls]] |
Revision as of 14:22, 10 November 2017
Full Definition(s)
- call TriggerSetAtmosphere((TRIGGERGUID)_Trigger, (STRING)_AtmosphereUUID)
Description
Changes the atmosphere in atmosphere trigger _Trigger to the atmosphere resource with UUID _AtmosphereUUID.
Notes
- As mentioned above, the UUID must be the UUID of a resource, not of a root template. Additionally, the _Trigger must be an atmosphere trigger and not any other kind of trigger.
- The atmosphere you specify must have been added as one of the possible atmospheres that can be used in that atmosphere trigger via the "Atmospheres" property of the sidebar. Afterwards, you must also render all light probes again.
- If the atmosphere changes abruptly, make the fading time of the atmosphere trigger longer. This means that the exposure of the HDR can't keep up. It's kind of like pointing a video camera from a dark room out into a sunlit street - it'll take a bit of time to adjust.