Jump to content

[1.3.1-1.5.1] SunFixer 1.0.1 [obsolete]


taniwha

Recommended Posts

KSP 1.3.0 "fixed" vessel shadows on the ground by "breaking" the position of the sun in the sky (as a workaround for a Unity bug). 1.3.1 fixed the sun's position but the shadows it cast were still highly granular in their motion. KSP 1.4.0 brought a new version of Unity which fixed the bug 1.3 worked around, but the workaround remains in effect in KSP, thus the shadows continue to jerk across the terrain.

This tiny mod (seriously: other than some setup and sanity checking code, it's one line) mitigates the workaround, bringing back shadows that move smoothly with the position of the sun in the sky.

Download: SunFixer 1.0.1

License: GPLv3

Source: github

There is no configuration or tuning.

The release was compiled for 1.5.1, but my testing included using a version for 1.4.x in 1.5.1, and the mod is so simple it's difficult to break, so it should work on any KSP that needs it.

Or was so simple: now with support for Kopernicus (thanks to @Thomas P.)

Many thanks to @5thHorseman for a video showing off SunFixer:

 

Edited by taniwha
Link to comment
Share on other sites

8 hours ago, 5thHorseman said:

I'll try to make a quick video. If I'm super up for it I'll try to make it a gif.

But that won't be until tomorrow.

Actually I may need more of an explanation of what this does, because I just did a close (like less than 100 meters at orbital velocity) Minmus flyby and the shadow looked exactly the same with and without the mod.

EDIT: OH it's the sun moving, not the ship. Okay yeah I see that. I thought this fixed how your shadow vanished on descent or something like that :)

EDIT: Nope, still not seeing it. I reinstate my request. :)

Edited by 5thHorseman
Link to comment
Share on other sites

41 minutes ago, 5thHorseman said:

Actually I may need more of an explanation of what this does, because I just did a close (like less than 100 meters at orbital velocity) Minmus flyby and the shadow looked exactly the same with and without the mod.

EDIT: OH it's the sun moving, not the ship. Okay yeah I see that. I thought this fixed how your shadow vanished on descent or something like that :)

I believe this has more to do with the jerkiness of shadows moving across the ground, due to the movement of the sun in the sky. if you watch the shadows of the KSC moving across the ground as the day passes in a relatively low time warp, then install this mod and watch again, you should see a big difference. See below, though I'm sure you can do a much better job showing it:

 

Edited by vardicd
Link to comment
Share on other sites

6 minutes ago, vardicd said:

I believe this has more to do with the jerkiness of shadows moving across the ground, due to the movement of the sun in the sky. if you watch the shadows of the KSC moving across the ground as the day passes in a relatively low time warp, then install this mod and watch again, you should see a big difference. See below, though I'm sure you can do a much better job showing it:

Yes, this is the issue that SunFixer fixes. The issue that KSP 1.3 fixed is the ship's shadow fading in and out as it moves with the ship across the terrain.

Link to comment
Share on other sites

1 minute ago, taniwha said:

Yes, this is the issue that SunFixer fixes. The issue that KSP 1.3 fixed is the ship's shadow fading in and out as it moves with the ship across the terrain.

Really that got fixed? I swear it still happens when I play. I'll have to look closer next time I play.

Link to comment
Share on other sites

5 hours ago, 5thHorseman said:

Actually I may need more of an explanation of what this does, because I just did a close (like less than 100 meters at orbital velocity) Minmus flyby and the shadow looked exactly the same with and without the mod.

EDIT: OH it's the sun moving, not the ship. Okay yeah I see that. I thought this fixed how your shadow vanished on descent or something like that :)

EDIT: Nope, still not seeing it. I reinstate my request. :)

 

4 hours ago, vardicd said:

I believe this has more to do with the jerkiness of shadows moving across the ground, due to the movement of the sun in the sky. if you watch the shadows of the KSC moving across the ground as the day passes in a relatively low time warp, then install this mod and watch again, you should see a big difference. See below, though I'm sure you can do a much better job showing it:

 

 

4 hours ago, taniwha said:

Yes, this is the issue that SunFixer fixes.

@5thHorseman The issue this mod affects is the movement of shadows across the ground, due to the movement of the sun [time of day] I posted a video above, relinked in this post, that shows the movement of the building shadows across the ground at KSC. the first 17 seconds of video show the shadows moving in a very jerky, stop and go fashion. This is without Sunfixer. the remaining 10 seconds of video shows the same shadows moving across the ground much smoother, with Sunfixer installed. Both videos are recorded at 100x time warp. This mod doesn't actually make any changes to the Sun itself, so far as I understand it.

Link to comment
Share on other sites

5 hours ago, vardicd said:

The issue this mod affects is the movement of shadows across the ground, due to the movement of the sun [time of day] I posted a video above, relinked in this post, that shows the movement of the building shadows across the ground at KSC. the first 17 seconds of video show the shadows moving in a very jerky, stop and go fashion. This is without Sunfixer. the remaining 10 seconds of video shows the same shadows moving across the ground much smoother, with Sunfixer installed. Both videos are recorded at 100x time warp.

Yeah the problem was I tried it on Mun, where the sun moves much slower across the sky, so the jerkiness was hidden in the fact that the shadows weren't changing much. When I did it at the KSC it was much more pronounced.

Link to comment
Share on other sites

11 minutes ago, 5thHorseman said:

Yeah the problem was I tried it on Mun, where the sun moves much slower across the sky, so the jerkiness was hidden in the fact that the shadows weren't changing much. When I did it at the KSC it was much more pronounced.

Understandable, was just trying to help, and clear up any confusion you may have had.

Link to comment
Share on other sites

  • 2 months later...
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...