Ambient light levels
Posted: Thu Jun 21, 2007 8:10 pm
OK here's a technical question, if anyone can answer it for me.
I was reading on the wiki website that you can change the amount of ambient light that falls upon the dark side of planets and ships.
I have a planetinfo.plist file in this directory: Oolite/oolite.app/Resources/Config/planetinfo.plist
In that file is the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN">
<plist version="1.0">
<dict>
<key>universal</key>
<dict>
<!-- Change this value to move the sun closer to or further away from the planet. The game's default
value for this is 20. -->
<key>sun_distance_modifier</key>
<real>210</real>
<!-- Set this to 1 to enable the procedurally generated planet and cloud textures. A value of zero
means use the game's default planet and cloud rendering routines. -->
<key>generate_textures</key>
<integer>1</integer>
<!-- Set this to 1 to draw the cloud textures, 0 to not draw the atmosphere. -->
<key>show_atmosphere</key>
<integer>1</integer>
<!-- The width of the textures generated for planets and clouds. Must be a power of 2. -->
<key>texture_width</key>
<integer>512</integer>
<!-- The height of the textures generated for planets and clouds. Must be a power of 2 and half
of texture_width. Probably take this out later and calculate the value from texture_width. -->
<key>texture_height</key>
<integer>256</integer>
<!-- The ammount of light shed on the dark side of planets and ships. 0.0 - 1.0 -->
<key>ambient_level</key>
<real>0.0</real>
</dict>
</dict>
</plist>
I have had a play around with the file to see if it works. For instance I have changed the sun_distance_modifier part to 210 to make the planet's sun further away to make things a bit more realistic.
However when I change the ambient_level part, there seems to be no noticable difference to the dark side of planets.
This isn't a major concern but it would be nice to make the planets dark side more....... well dark.
From what I understand about this file and what I have read, I see that the <key>universal</key> part means that all the variables in this file are related to ALL planets in the game.
And that is true for the sun distance variable because the sun is further away in the dozen or so planets I visited.
However the ambient light part doesn't seem to work at all.
Does anyone know how to do this?
Thanks.
I was reading on the wiki website that you can change the amount of ambient light that falls upon the dark side of planets and ships.
I have a planetinfo.plist file in this directory: Oolite/oolite.app/Resources/Config/planetinfo.plist
In that file is the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN">
<plist version="1.0">
<dict>
<key>universal</key>
<dict>
<!-- Change this value to move the sun closer to or further away from the planet. The game's default
value for this is 20. -->
<key>sun_distance_modifier</key>
<real>210</real>
<!-- Set this to 1 to enable the procedurally generated planet and cloud textures. A value of zero
means use the game's default planet and cloud rendering routines. -->
<key>generate_textures</key>
<integer>1</integer>
<!-- Set this to 1 to draw the cloud textures, 0 to not draw the atmosphere. -->
<key>show_atmosphere</key>
<integer>1</integer>
<!-- The width of the textures generated for planets and clouds. Must be a power of 2. -->
<key>texture_width</key>
<integer>512</integer>
<!-- The height of the textures generated for planets and clouds. Must be a power of 2 and half
of texture_width. Probably take this out later and calculate the value from texture_width. -->
<key>texture_height</key>
<integer>256</integer>
<!-- The ammount of light shed on the dark side of planets and ships. 0.0 - 1.0 -->
<key>ambient_level</key>
<real>0.0</real>
</dict>
</dict>
</plist>
I have had a play around with the file to see if it works. For instance I have changed the sun_distance_modifier part to 210 to make the planet's sun further away to make things a bit more realistic.
However when I change the ambient_level part, there seems to be no noticable difference to the dark side of planets.
This isn't a major concern but it would be nice to make the planets dark side more....... well dark.
From what I understand about this file and what I have read, I see that the <key>universal</key> part means that all the variables in this file are related to ALL planets in the game.
And that is true for the sun distance variable because the sun is further away in the dozen or so planets I visited.
However the ambient light part doesn't seem to work at all.
Does anyone know how to do this?
Thanks.