Ambient Light Level Equivalents

All about writing scripts for Celestia in Lua and the .cel system
Topic author
jeffmack
Posts: 55
Joined: 10.01.2011
Age: 68
With us: 9 years 7 months
Location: Canasvieiras, Florianópolis, Santa Catarina, Brazil / 27° 25' 54.4" S; 48° 28' 15.9" W; 56 Ft AMSL
Contact:

Ambient Light Level Equivalents

Post #1by jeffmack » 09.08.2012, 01:02

What "set AmbientLightLevel" values are equivalent to the manual "Low" and "Medium" ambient light levels? Obviously the value of 0.0 is equivalent to "None." Thanks...
System: Dell Novo XPS 13 9370 Notebook; CPU: Intel Core i7-8550U 8th Gen @ 1.80 GHz 1.992 GHz; MB: Dell 0F6P3V
Chipset: Intel Kaby Lake Rev 08; RAM: 16 GB LPDDR3-2133MHz; Graphics: 128 MB Intel UHD Graphics 620; Storage: 512 GB Intel SSD
OS: Windows 10 Pro 64-bit; Celestia: 1.6.1
-Jeff MacKinnon

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 11 years 10 months
Location: Paris France

Re: Ambient Light Level Equivalents

Post #2by jogad » 09.09.2012, 17:11

Hi,

Here's a tip for you:

8) The ambient light is controlled with the keys } and {

Each time you hit one of these keys the ambient light increase or decrease by steps of 0.05
and the new value is displayed for one second at the bottom left of the screen.

Starting with "none" "low" or "medium" it is easy to find the corresponding values. :)

:mrgreen:

Topic author
jeffmack
Posts: 55
Joined: 10.01.2011
Age: 68
With us: 9 years 7 months
Location: Canasvieiras, Florianópolis, Santa Catarina, Brazil / 27° 25' 54.4" S; 48° 28' 15.9" W; 56 Ft AMSL
Contact:

Re: Ambient Light Level Equivalents

Post #3by jeffmack » 09.09.2012, 17:46

Thanks jogad, but I already know that. I'm looking for the CEL script "set AmbientLightLevel" equivalent values for "Low" and "Medium." Thanks!
System: Dell Novo XPS 13 9370 Notebook; CPU: Intel Core i7-8550U 8th Gen @ 1.80 GHz 1.992 GHz; MB: Dell 0F6P3V
Chipset: Intel Kaby Lake Rev 08; RAM: 16 GB LPDDR3-2133MHz; Graphics: 128 MB Intel UHD Graphics 620; Storage: 512 GB Intel SSD
OS: Windows 10 Pro 64-bit; Celestia: 1.6.1
-Jeff MacKinnon

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 11 years 10 months
Location: Paris France

Re: Ambient Light Level Equivalents

Post #4by jogad » 09.09.2012, 19:03

 
:oops: Ok! I explain more...

The value displayed on the screen is the same than the parameter of SetAmbientLightLevel.

If you set ambient light to "none" in Celestia and hit { you see

ambient.jpg

The displayed level is 0.05 more than "none".
As you guessed "none" is thus 0.05 - 0.05 = 0

Se same method gives 0.1 for "low" and 0.25 for "medium"

:mrgreen:

Topic author
jeffmack
Posts: 55
Joined: 10.01.2011
Age: 68
With us: 9 years 7 months
Location: Canasvieiras, Florianópolis, Santa Catarina, Brazil / 27° 25' 54.4" S; 48° 28' 15.9" W; 56 Ft AMSL
Contact:

Re: Ambient Light Level Equivalents

Post #5by jeffmack » 09.09.2012, 19:47

Ahhh! I understand now. Thanks jogad!!! :D
System: Dell Novo XPS 13 9370 Notebook; CPU: Intel Core i7-8550U 8th Gen @ 1.80 GHz 1.992 GHz; MB: Dell 0F6P3V
Chipset: Intel Kaby Lake Rev 08; RAM: 16 GB LPDDR3-2133MHz; Graphics: 128 MB Intel UHD Graphics 620; Storage: 512 GB Intel SSD
OS: Windows 10 Pro 64-bit; Celestia: 1.6.1
-Jeff MacKinnon


Return to “Scripting”

Who is online