IgorZ

[1.7+] Surface Mounted Lights - v1.13

Recommended Posts

>>> Support me at Patreon if you like the mod!

Surface Mounted Lights

The stock light parts are designed to light the distant objects. However, the station itself needs some lighting to be usable when passing thru the dark side of the celestial body. The lighting parts in this mod are designed to highlight the surface, on which they are mounted.

Omni Light

Illuminates a small area on the vessel's surface.

Omni Light

Spot Light

Illuminate the parts and objects at a small distance.

Spot Light

4Way Spot light

A special version of the spot light that emits light in 4 perpendicular directions. Each light can be adjusted and controlled independently.

Spot Light

Features

  • All lights allow setting the color of the light.
  • The stock lights get an ability to change the lens color. It make them looking much cooler.
    Illuminator Mk1 Illuminator Mk2

Languages supported

Русский Русский

Italiano Italiano

Español Español

Português Português

Support

You can support this and the other of my mods on Patreon. This is where I post my ideas, prototypes and the features development progress.

How to install

  • Recommended:
    • Install and run CKAN.
    • Search for "Surface Mounted Lights", then install the mod.
    • Occasionally run CKAN client to update the mod to the latest version.
  • Manual:
    • Download the ZIP archive:
    • If you have an older version of the mod in your game, you must delete all the old files first! Do not just copy over, this will likely result in compatibility issues.
    • Unzip the release archive into the game's GameData folder.
      • Note, that names of the folders must be exactly like in the archive or the mod won't work.
      • The release archive contains a minimum version of the required dependency: ModuleManager. If your game has better versions, do not overwrite!
    • Verify the installation: the mod's LICENSE.md file must be located at <game root>/GameData/SurfaceLights/LICENSE.md.

Sources are available on GitHub. License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License.

This is a continuation of the abandoned project, originally started by @Why485.

Edited by IgorZ

Share this post


Link to post
Share on other sites

I've been using these lights in 1.1.2 without an update.  Nice to see igorz grab this and go with it.

Share this post


Link to post
Share on other sites

@IgorZ I was directed to you about getting a quick tutorial on how to make lights for a KSP mod. What are the chances I could have one? Thanks in advance for your help!

Share this post


Link to post
Share on other sites
5 hours ago, TMasterson5 said:

@IgorZ I was directed to you about getting a quick tutorial on how to make lights for a KSP mod. What are the chances I could have one? Thanks in advance for your help!

Hello. I'm a programmer so, I can help you with the code side. E.g. how to code the context menu, how to get light sources from the model and control playing. Though, a properly made model is 50% of the success. To be more specific:

  1. You need to define a light source in the module.
  2. You need to define an emitting texture on the material, and use it where you want you "lens" to be shown.
  3. You need to define an animation which slowly turns on/off both the light and the texture. It's not required, actually. But it makes the light more player friendly.
  4. And, finally, you need to pack this stuff into .mu so what nothing is lost.

I wish I could help with the latter 4 bullets but I only played a bit with the models (and none of them worked after that :(). I may recommend you @Shatten who is currently fighting with 4-way Spot Light model in SurfaceLights mod. He has much more background than me.

Edited by IgorZ

Share this post


Link to post
Share on other sites
7 hours ago, IgorZ said:

Hello. I'm a programmer so, I can help you with the code side. E.g. how to code the context menu, how to get light sources from the model and control playing. Though, a properly made model is 50% of the success. To be more specific:

  1. You need to define a light source in the module.
  2. You need to define an emitting texture on the material, and use it where you want you "lens" to be shown.
  3. You need to define an animation which slowly turns on/off both the light and the texture. It's not required, actually. But it makes the light more player friendly.
  4. And, finally, you need to pack this stuff into .mu so what nothing is lost.

I wish I could help with the latter 4 bullets but I only played a bit with the models (and none of them worked after that :(). I may recommend you @Shatten who is currently fighting with 4-way Spot Light model in SurfaceLights mod. He has much more background than me.

@Shatten could you help me out here?

Share this post


Link to post
Share on other sites

I can't fly a rocket that doesn't have good lighting. Thank you for this!

Share this post


Link to post
Share on other sites

Thanks so much for picking up the ball on this.

Any chance you'll be doing this unfinished part of the mod as well?

Aviation Lights and Strobomatic do this 'OK,' but this mod in particular feels so much more polished, and also has the convenience of being able to just tweak the lights to the way you want them to behave, instead of (for instance) having different parts for different colors. And currently I don't think there's ANY mod that allows for long-range visibility of light flares, such as what you see from an aircraft in the sky at night. I've always wanted my bases to have such lights as well, so I can spot them from orbit.

Edited by vger

Share this post


Link to post
Share on other sites
8 hours ago, vger said:

Thanks so much for picking up the ball on this.

Any chance you'll be doing this unfinished part of the mod as well?

Aviation Lights and Strobomatic do this 'OK,' but this mod in particular feels so much more polished, and also has the convenience of being able to just tweak the lights to the way you want them to behave, instead of (for instance) having different parts for different colors. And currently I don't think there's ANY mod that allows for long-range visibility of light flares, such as what you see from an aircraft in the sky at night. I've always wanted my bases to have such lights as well, so I can spot them from orbit.

To be honest, it's very low in the priority list. I like launching rockets into the space, and spend little or none time in the air :) After implementing the planned features in KIS, KAS, and EVS I will consider getting back to the nav lights.

Share this post


Link to post
Share on other sites

If there is a way to force all 4 spotlights on the 4 way spot to be the same color that should allow the lens color to work.

Share this post


Link to post
Share on other sites
3 hours ago, Ruedii said:

If there is a way to force all 4 spotlights on the 4 way spot to be the same color that should allow the lens color to work.

Interesting idea. It may actually work.

Share this post


Link to post
Share on other sites

I've noticed that my lights are flickering sometimes. I read your note above about having more than 8 lights. Could this cause the flickering I'm seeing? When you say "in a single area" what are you defining as an "area"?

Thanks!

Share this post


Link to post
Share on other sites
1 hour ago, tjt said:

I've noticed that my lights are flickering sometimes. I read your note above about having more than 8 lights. Could this cause the flickering I'm seeing? When you say "in a single area" what are you defining as an "area"?

"Single area" means a compact scene area with many light sources. It's unknown how exactly KSP/Unity optimizes lights, so it's hard to say anything concrete. Increasing the setting solves the problem but impacts rendering performance.

Share this post


Link to post
Share on other sites

so a single ship/space station would be considered one "area"? if that's the case, then I'm well over the 8 light max.

 

 

Share this post


Link to post
Share on other sites
6 hours ago, tjt said:

so a single ship/space station would be considered one "area"? if that's the case, then I'm well over the 8 light max.

It can be considered "one area". We don't know how exactly KSP/Unity works when handling light sources. If you see your lights flickering then you need increasing the setting. If everything is fine then do nothing :)

Share this post


Link to post
Share on other sites
4 hours ago, Fictitious1267 said:

I love using this in 1.1.3. It doesn't show color in 1.2, but they work as white lights still. Thanks.

Looks like they optimized the shaders. Last time I tried to beat it with the stock lights I haven't figured out how to workaround it. Good to know the mod at least works.

Share this post


Link to post
Share on other sites

more lights! yes!

I love the rounded directional light. one either side-top of a hatch looks awesome.. looking forward to 1.2 release

Share this post


Link to post
Share on other sites
On 9/28/2016 at 1:07 PM, IgorZ said:

Looks like they optimized the shaders. Last time I tried to beat it with the stock lights I haven't figured out how to workaround it. Good to know the mod at least works.

I'm pretty sure the Station Light in Mark One Laboratory Extensions is working correctly for 1.2PRE.  

EDIT: I just checked it;  the station light is working correctly. Might want to peek at the MOLE code and see how it is done there.

Edited by Bombaatu

Share this post


Link to post
Share on other sites
12 hours ago, Bombaatu said:

I'm pretty sure the Station Light in Mark One Laboratory Extensions is working correctly for 1.2PRE.  

EDIT: I just checked it;  the station light is working correctly. Might want to peek at the MOLE code and see how it is done there.

Thanks for the note! I'll definitely use it when I'm out of ideas :) For now I have a hope they've just optimized the default shader which can be worked around pretty easily.

Share this post


Link to post
Share on other sites

Luckily, simple re-compile fixed the issue.

Share this post


Link to post
Share on other sites

Thanks for keeping the lights on for this mod. SurfaceLights is one of very few part mods I like to have around.

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