Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Lua scripting: ApplySkySettings() http://sldev.free.fr/forum/viewtopic.php?f=6&t=1759 |
Page 1 of 1 |
Author: | Amalia Illios [ 2017-03-11 15:09:31 ] | |||||||||
Post subject: | Lua scripting: ApplySkySettings() | |||||||||
Hello Henri, are there any specifics to consider when using ApplySkySettings() beyond what you posted? Somehow it doesn't seem to do anything for me beyond causing a slight jump in cloud rendering. This is my script:
No matter what preset I am using, the effect does remain the same. I'm stumped. Oh, and is there a way to trigger the equivalent of "Revert to region default"? Because loading "Default" would obviously not do that. Love, Lia |
Author: | Henri Beauchamp [ 2017-03-11 17:12:47 ] | |||||||||
Post subject: | Re: Lua scripting: ApplySkySettings() | |||||||||
Apparently, the A-12AM setting only works when you first override the region settings. Try CTRL SHIFT Y (set to mid-day) then "/lua ApplySkySettings("A-12AM")" -> working. Now try "World" -> "Environment settings" -> "Revert to region default" and "/lua ApplySkySettings("A-12AM")" -> not working. Windlight always was an ugly mess...
I'll add a new Lua function for it in next release (I already implemented an OnWindlightChange() event too)... |
Author: | Amalia Illios [ 2017-03-12 07:51:25 ] | ||||||||||||||||||
Post subject: | Re: Lua scripting: ApplySkySettings() | ||||||||||||||||||
Hello again Henri, thank you for looking into it. I was beginning to doubt my sanity. You wrote:
Love, Lia |
Author: | Henri Beauchamp [ 2017-03-12 09:13:23 ] | |||||||||||||||||||||||||||
Post subject: | Re: Lua scripting: ApplySkySettings() | |||||||||||||||||||||||||||
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |