Red3Tango

[1.1] Minimum Ambient Lighting v1.2.1

60 posts in this topic

Are you a streamer or make videos and its too dark?

Here is your answer! A small plugin that will set a minimum ambient lighting level based on percentage. Percentage is modified by using the toolbar icon (or though config file)!

Don't like cluttering your Toolbar?

You can disable the button from the Flight scene, or completely disable in the config file. (this does not disable the mod, just the icon)

Does this wash out the colors when the in-game lighting is already high?

Nope! The mod does NOT indiscriminately raise the existing ambient lighting, it ONLY sets what the minimum value can be.

Mod Spotlight

 

 

Video by maxhfx (a.k.a. maxrsp)

Checkout the before and after pictures below!

Before (game default)

ma-0.png

After (mod default)

ma-20.png

To the EXTREME

ma-80.png

Download

SpaceDock (Also available on CKAN)

Mirror

(BSD License) (source)

=== CHANGE LOG ===

v1.2.1

[Fixed] - Possible Memory Leak

Spoiler

 

v1.2.0

[Fixed] - Got legacy UI working

[Updated] - Rebuild with 1.1 libraries

v1.1.2

[hotfix] - Removed UI temporarily so it was compatible with 1.1

v1.1.1

[updated] - Rebuild with 1.0.4 libraries

v1.1

[Added] - Stock Toolbar integration and in-game UI

[Changed] - Folder Structure *remove existing install before upgrading*

v1.0.2

[updated] - Rebuild with 1.0.2 libraries

[Added] - Hosted on Kerbal Stuff (available on CKAN)

v1.0.1

[updated] - Rebuild with 0.90 libraries

[Changed] - Folder structure *remove old install under GenesisRage folder*

v1.0

initial release

 

 

Edited by Red3Tango
v1.2.1 update
3 people like this

Share this post


Link to post
Share on other sites

This is an interesting mod. In real life, the Moon bounces photons off its surface and they hit Earth, providing a tiny bit of light. It always annoyed me that vessels were pitch back when not in line of sight of the sun. I have a few questions though. Does the mod alter lighting during the day(exposure from sun) as well? Or just the night. Also, it would be great if you could do the same thing during eclipses, that way even though the light side is exposed to the sun, it's still dimmed because of an eclipsing planet.

Share this post


Link to post
Share on other sites

@Razorcane:

It doesnt really effect anything during the day, it just sets the minimum ambient level. So it doesnt let it drop below 20% (or whatever you have it set at).

As for eclipse lighting, I doubt I will add that in, because that gets into a whole new area of calculations.

@kristianj99:

I honestly didnt think about that, but it may be possible later. Might require a rewrite as currently the mod takes in the games ambient setting and overrides if below a certain threshold.

Edited by Red3Tango

Share this post


Link to post
Share on other sites

Hopefully this will put an end to all those videos and pictures that are just "vast expanse of black." Nice work.

Share this post


Link to post
Share on other sites

Thx BigFatStupidHead! Yeah I watch a lot of videos/stream (and stream myself on occasion) and it got to me that you see a black screen with a couple green dots from the batteries haha. Ive heard complaints from Scott Manley in his videos, and also from several streams, so I thought "hey why not make a mod for them".

Edited by Red3Tango

Share this post


Link to post
Share on other sites

@BigFatStupidHead

I know what you mean. The "vast expanse of black" is a bit of a problem when filming any shot behind a moon/planet. Of course you can increase the shot's brightness in post processing, but the result of doing so looks ugly nine times out of ten.

Share this post


Link to post
Share on other sites
This is an interesting mod. In real life, the Moon bounces photons off its surface and they hit Earth, providing a tiny bit of light. It always annoyed me that vessels were pitch back when not in line of sight of the sun. I have a few questions though. Does the mod alter lighting during the day(exposure from sun) as well? Or just the night. Also, it would be great if you could do the same thing during eclipses, that way even though the light side is exposed to the sun, it's still dimmed because of an eclipsing planet.

Because Unity has no HDR, the incredible range of brightness of the real world cannot be captured in the pathetic 256 levels of brightness.

I know what you mean. The "vast expanse of black" is a bit of a problem when filming any shot behind a moon/planet. Of course you can increase the shot's brightness in post processing, but the result of doing so looks ugly nine times out of ten.

screenshots are in 8-bit, no photographer will edit photos in 8-bit.

Edited by jacobgong

Share this post


Link to post
Share on other sites

Dammit, I was hoping this was Nova's lighting plugin for making space, you know, *dark*.

Share this post


Link to post
Share on other sites

Thank you so much for this! Can you also edit the normal lighting? The game used to look really nice and vivid, now it looks really desaturated and dull. Here's a screenshot, for example:

http://i.imgur.com/tyTTX.png

Share this post


Link to post
Share on other sites

This is exactly the kind of thing I need, sometimes I can't ensure that events take place on the daylit side of kerbin.

Share this post


Link to post
Share on other sites
Thx BigFatStupidHead! Yeah I watch a lot of videos/stream (and stream myself on occasion) and it got to me that you see a black screen with a couple green dots from the batteries haha. Ive heard complaints from Scott Manley in his videos, and also from several streams, so I thought "hey why not make a mod for them".
This is exactly the kind of thing I need, sometimes I can't ensure that events take place on the daylit side of kerbin.

Well, seems that your plugin has come to its destination ;D

Share this post


Link to post
Share on other sites

I would love NO ambient light. The dark side of planets should DARK like in real life. All you should see is its silhouette against the stary background ( which too should not be visible if the vessel is in the sunlight, but that's for another plugin I suppose. ) But when orbiting in the dark... it should just be stars... maybe a cabin light and a SMALL amount if ambient light from the stars and Mun. ( wish it could vary depending on its phase/posistion, but unity has no HDR to reflect light ).

Oh and apparently removing ambient light gives a noticeable performance boost.

Share this post


Link to post
Share on other sites

I have renamed the thread to "Raise Minimum Ambient Lighting" to alleviate some confusion on what this mod is intended to do. I apologize to everyone that has been confused by the mis-leading title. I may modify the plugin if I get more time to dig deeper into the backend of the KSP program and see if there is a way to hook into the code they use to set the ambient lighting. Until that time, I will change the title of the thread.

@Motokid600: theoretically removing ambient lighting would give a performance boost, because the entire game would be completely black. I know some would like to lower the ambient lighting, but with how KSP uses ambient lighting I do not see a way to dynamically modify that without ruining other parts. Basically all the light you see in game is ambient light (unless you have lights on your craft), like the lighting from the towers around the launchpad and even the sun. This mod dynamically adjusts how far it goes down, but is unable to go below what the game sets. Yes I could rewrite the plugin to just offset the ambient lighting, but that task is much easier to do by just simply turning down the contrast and brightness on your monitor (would have the same effect).

Edited by Red3Tango

Share this post


Link to post
Share on other sites
Thank you so much for this! Can you also edit the normal lighting? The game used to look really nice and vivid, now it looks really desaturated and dull. Here's a screenshot, for example:

http://i.imgur.com/tyTTX.png

Just go into your video card settings and adjust it there.

Share this post


Link to post
Share on other sites

Well it all basically comes down to the lights need to be brighter and the dark needs to be darker. But that may be a job for another mod.

NovaSilisko said he was going to release a separate lighting mod that replicates the lighting in Alternis Kerbal. That's spot on there imo.

Share this post


Link to post
Share on other sites
I would love NO ambient light.

Same here. I believe NovaSilisko did this for his planet mod. It removed all ambient light in space and left only the sun to illuminate objects. If you look at real life pictures from space they look weird and as if they were made in a studio. This is because people are hardly used to light that comes from a sole distant source (without an atmosphere to scatter it).

@Motokid600: theoretically removing ambient lighting would give a performance boost, because the entire game would be completely black.

Not entirely true, as the sun would still provide light. How that works from a technical point of view is another matter.

Share this post


Link to post
Share on other sites
Not entirely true, as the sun would still provide light. How that works from a technical point of view is another matter.

Yeah its a technical point of view, when in Line-Of-Sight with the sun the game increases the "ambient" light settings.

Share this post


Link to post
Share on other sites

Another great mod idea, you're good at this. Little features that just straight up improve the game experience.

I wonder would it be possible to adjust this in-flight? I'm not sure I'd want this all the time but it would be super to be able to boost the light a bit before a screenshot without having to use an EVA-ing Kerbal as a speedlight!

Share this post


Link to post
Share on other sites

The OP images appear broken, which is a shame because I want to see this in action. It sounds like it will make farside cinematics quite doable.

Share this post


Link to post
Share on other sites
I wonder would it be possible to adjust this in-flight?

That is an interesting idea, I may have to look into a keybind to toggle it!

And thanks for the compliment ;)

Share this post


Link to post
Share on other sites

Downloading ! Been looking for something like this or similar !

Share this post


Link to post
Share on other sites

@Absolute Human:

Technically NOT a "clone", that mod just adjusts the current ambient lighting based on a slider.

My mod dynamically increase the minimum ambient lighting, but does not effect anything if the in-game lighting is above the threshold (to prevent wash-out)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now