Jump to content

Improve the Lighting (Gamma, Shaders)


Recommended Posts

Lighting in this game is far too simplified and is a severe detriment to gameplay. Lack of gamma correction is the first noticeable problem. Gamma correction is needed because on a properly calibrated monitor, additional light in the room the monitor is in, will drown out lots of detail in a game. Gamma correction offsets light in a room by making the monitor brighter.

Example: The game has been so completely dark that one time I could not even find Kerbin, and I was orbiting the damn planet at the time.

Example 2: Lets take a temperature reading our first time launching into orbit! Oh wait... the thermostat is like 8 pixels in size and my whole ship is pure black. Where the hell is that thing!

Secondly, not everything in space is black... there seems to be an over simplification of light in space as if the sun is the only thing that can ever produce light on an object. Go outside and look up at the moon if it isn't a full moon. You will see both the light side of the moon as well as the dark. You can see the dark side of the moon because light is being reflected from the earth to the moon's dark side. Likewise the moon reflects light on to the earth at night so it is never pitch black.

Moon Light Calculations here...

The fix: The Mun and Minimus are 2 directional lights to Kerbin; Kerbin is 1 directional light for the Mun and Minimus. Figure out the reflective angle (sun to reflector to target) multiply angle's result by the body's albedo. Such calculations only need done once per pass since they behave like directional lights and won't change until next frame is rendered. All planetary bodies (near enough to a flown vessel) can cast light on it.

Link to comment
Share on other sites

I agree that lighting in the game needs a bit of work, but i'm not sure lack of gamma correction is the problem.

Gamma correction is not "offset light in a room by making the monitor brighter" - that would mean the light level in the room is actively monitored and gamma is automatically adjusted to compensate, and it implies that gamma correction simply means "brighter", which it is not.

Some monitors do actively monitor ambient light and adjust brightness (not gamma). Gamma changes the brightness curve ("nonlinear operation used to code and decode luminance" - wiki), specifically to make dark tints a bit brighter in order to "compensate for properties of human vision" (-wiki), and is a one-time calibration for each combination of monitor and graphics card (usually automatic upon installation).

The fix that you propose for excessive darkness seems to be a decent one (and does not involve gamma), but perhaps it can be done simpler, along the lines of what the "Planetshine" mod does, which tweaks ambient lighting depending on how close one is to specific bodies.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...