RimWorld

RimWorld

Realistic Lighting and Shadows
96 Comments
Sjaandi  [author] 1 hour ago 
4.1.2 - Space Planet Tilt
- The world map now respects planet tilt. High planet tilts looks awesome from space!
- Plants no longer grow under roofs without sunlamps No more magic cave growth.

Thanks to @LordBlackHole for his testing!
Sjaandi  [author] 18 hours ago 
@ZAX Thank you!
@LordBlackHole I found the bug - thank you! It's just one line of code. I'll try to get it in the next release. If for some reason you still see it - holler at me!
LordBlackHole 21 hours ago 
I tested plants (potatoes, rice, cocoa) in a completely dark, sealed room under a mountain roof (no sunlight, no sunlamps, 0% light). Despite the absence of any light source, the plants not only displayed growth progress but actually grew to full maturity and could be harvested.
ZAX 22 hours ago 
game looks so much with this:steamthumbsup: super awesome mod
Sjaandi  [author] 23 hours ago 
@maxiharda Thank you!
@VitaKaninen I'm redoing how coloring works for sky and shadows right now - so after the next release, let me know if it's still a problem.
@OrAZion I haven't experimented with changing the planets rotation yet. So - maybe?
@LordBlackHole Most plants should require at least some light to grow. Does it show a positive growth rate in a room with no sun and no sunlamps?
LordBlackHole 23 hours ago 
Removing explicit light requirment on plant growth (I see all plants now require minimum of 0% light) seems to give unexpected consequences, any plant (even in eclosed room with no light sources at all and overhead mountain roof) continue to grow until there is sun outside (it seems that all plant are just using global light level rather than local). Is it expected behaviour? I see no errors in logs. It just looks strange that all plants can grow in pitch-black mountain rooms
OrAZion 19 Jul @ 5:42am 
Moonlight brings night lighting, but the sunlight of this module is more beautiful than moonlight.
And then I was thinking, is there a way to make this planet Tidal locking?
VitaKaninen 18 Jul @ 3:19pm 
Lightning seems to be working the opposite the of the way it should. Ideally, when the lightning strikes, the shadows would light up a little bit, and everything else would light up a whole lot.

What is happening, is that the shadows turn black, and everything else stays the same.

The first image is regular light levels. The second one is during a lightning strike. The third one is using a mod to increase the ambient light level during the same strike.
https://imgur.com/a/a95SFDq
maxiharda 18 Jul @ 5:04am 
this is awesum
Sjaandi  [author] 18 Jul @ 3:41am 
@cyanobot, @Jean1337_, @Ghojo, @MeatOnASeat - Thank you for the kind words. I'm glad you are enjoying the mod! It's comments like yours (and ratings) that keep me motivated to make the mod ever better.
MeatOnASeat 17 Jul @ 5:02pm 
Really enjoying this mod!!! Awesome job and thank you for this!
Ghojo 17 Jul @ 1:22pm 
You are a true wizard !
Jean1337_ 17 Jul @ 4:25am 
Your mod is a pearl
cyanobot 17 Jul @ 12:36am 
It had never occurred to me to be bothered by the shadows, but this looks awesome!
greensniperhat 16 Jul @ 11:52pm 
Yeah, just pointing out that ArcadeBulls post
Sjaandi  [author] 16 Jul @ 11:43pm 
@greensniperhat I just looked at Moonlight. This mod practically duplicates all its functionality.

The two main differences are the initial position of the moon when you start the game (may not be a new moon on the first of the month) and that in this mod the moon varies its rising and setting times based on its orbit around the planet (half moons will be visible only half the night).

If you want everything else to be the same, you can set your moon orbit time to 15 days in the settings, and amp up the moon brightness until it matches vanilla brightness.
greensniperhat 16 Jul @ 11:32pm 
I think the (old) Moonlight mod is this link: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2589384830

But anyways it's easily searchable in the workshop
Sjaandi  [author] 16 Jul @ 8:54pm 
@Vortek Gamer That change was just released in 4.0! Sometimes Steam takes up to half an hour to push out the update to everyone. You may need to quit Rimworld to allow Steam to make the update. You'll know you have the update when you get a popup alerting you to the new changes when you next load the game.
Vortek Gamer 16 Jul @ 8:44pm 
just wondering why you do not name the settings name the mod name???? that would be the best way to name the setting? I was trying to look it up with Realistic as that is first part of its name.
Sjaandi  [author] 16 Jul @ 8:30pm 
Version 4.0 Release - North-Facing Shadows!
- Added north-facing shadows for all objects: No more shadows disappearing at noon!
- Changed mod setting name: Easily find the mod under Settings
- Moon phases take into account sun: New moons only in day, full moons only at night - just like real life!
- Can disable Celestial Info Box: Go to settings to disable in-game sun/moon information
- Added option to disable game balance setting: Want pure vanilla gameplay with only realistic lighting? - you got it! Warning: can be immersion-breaking.
Sjaandi  [author] 16 Jul @ 5:18pm 
@MultiNightsniper I might add explicit support for other mods later, though I currently don't have plans to do so.

The ability to disable the GUI element will be in the next release!

@BIGLove247 That wouldn't be this mod - that's probably a toxic weather event or your biome.
BIGLove247 16 Jul @ 4:58pm 
why is everything puke colored?
MultiNightsniper 16 Jul @ 10:26am 
Me again, a couple of things. Could you add compatibility with Vanilla Expanded Props? When placing say fake grass, the lighting doesn't affect it it would seem.
https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2102143149

Secondly, maybe cross compatibility with UI Not Included: Customizable UI Overhaul? The ability to add your weather text to a widget and or the ability to customize it more would be really nice, espicially as of now when using F11 to take a UI-less screenshot, your text saying the weather is still present!

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2588873455&searchtext=ui
Sjaandi  [author] 16 Jul @ 7:49am 
@condottiere Glad you like it! A lot of people forget how dark a moonless night is in real life outside of the city.

@Skull_Pancakes. I think the platform's orientation would matter more than whether it's at the poles. I've thought about setting the sun intensity to 100% (or higher) in space to mimic the lack of atmosphere.

@ArcadeBulls That link is flagged as malicious by Steam. There is a compatibility question and answer in the FAQ. Short answer is that I wouldn't use it with any other lighting or shadow mods.

@Rey Thank you!
Rey 16 Jul @ 1:33am 
Thanks for the great work! Really ups the immersion factor.
ArcadeBulls 16 Jul @ 1:21am 
I would probably add incompatibility part. I'm sure Moonlight (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3261311563) won't be compatible along with Realistic Darkness and such.
Skull_Pancakes 16 Jul @ 12:04am 
Would you receive a more consistent and stronger source of power/light with solar in space if you managed to find an asteroid or space platform on the poles?
condottiere 15 Jul @ 4:10pm 
No helpful technical notes from me, sorry. :D But I'm loving this mod. Night with a full moon is crazy dark. It really changed the in-game daily pace of my play until I was able to afford putting up extra lights everywhere (hard start in permanent toxic fallout). It's wonderfully oppressive! GOod luck and thank you for fixing the shadow problem. Mod is still totally playable and enjoyable with it.
Sjaandi  [author] 15 Jul @ 11:32am 
@C There's no programming limit that I know of, the main reason it's set this way is so the seasons stay lined up with the quadrums. A negative tilt would give opposite seasons, while a tilt greater than 90+ would flip the hemispheres.

I have the shadow issue almost patched. I'm hopeful I'll have it ready by this weekend, but I won't promise it.
C. 15 Jul @ 9:13am 
Is there a reason for axial tilt only being between 0 and 90 degrees? My expectation is ease of use but maybe there's a hard coding issue. I was just wondering if allowing negative/90+ axial tilt could act as a simple way to prevent the north facing shadows issue while you work on a more in-depth solution. I was having that issue but realized I could set the tilt to 0 for boring but not broken shadows and keep the other mod's systems intact.
C. 15 Jul @ 9:00am 
No problem. I'm no programmer, closest I've come is playing games with logic systems like Barotrauma (not easy to wire a submarine from scratch). I just got lucky to stumble on the setting after reading your comment to check there first, and figured I'd mess with it for a bit. An option for larger text on the GUI should work; I like seeing the information on the phase of the moon and what not, it's cool.
Sjaandi  [author] 15 Jul @ 6:10am 
@Nim While it is realistic for most plants (outside of some flowering species) to grow as long as there is available sunlight, I do understand your desire for better game balance. I'll probably end up making it an optional feature - so if you don't want it or another mod handles it more to your liking you can choose to use that instead.

You might note that solar power has also been somewhat nerfed with this mod - so getting the energy to actually run a sun lamp 24/7 is harder than in vanilla.
Nim 15 Jul @ 3:19am 
It might be nice to have an optional setting for the changes to plant growth.
Disabling rest periods and allowing 24/7 growth with solar lamps means you could potentially grow a rice plant in 2.5 days. That has pretty catastrophic consequences for balance.
Sjaandi  [author] 14 Jul @ 9:33pm 
@C. Wow - that's really good information and tells me a lot. Thank you!

The font used actually IS Tiny Font because it's a fair amount of text and I didn't want to fill up the user's screen - they want to play the game after all! If you'd like I can look at being able to change to a larger size in the mod options. As noted below - I also have plans to allow the user to disable it if you wish.

You're right on the other counts - right now it's a static box that can't be moved all the way to the right (nor to the bottom). I wanted to make sure the user didn't accidentally move it a place where they would have to edit the XML to reset it - and as you mentioned so the text wouldn't extend past the edge of the screen for different moon phases.

On your last count - I'm not sure, but your guess is probably right. I haven't tried this.

Great testing! Do you work with software? You're very thorough - this was very helpful!
Sjaandi  [author] 14 Jul @ 9:18pm 
@1-800 No problem! It's a work in progress.

@Rey I have plans to add an option to remove it. Will try to add it in the next release.
C. 14 Jul @ 9:17pm 
Disabled all mods except Harmony and DLCs to test the moon GUI issue at 1920x1080p. It occurs for me with UI scale of 1.25x (and probably higher, but that's my screen's limit) and with Disable Tiny Font enabled. Sometimes the GUI isn't squished even with Disable Tiny Font enabled in certain positions on my screen--best guess is it's related to text-wrapping. Unfortunately, careful positioning is not a stable solution since the GUI length seems to change with the position of the moon.

I also noticed the moon GUI can't be moved fully to the right side of the screen--I'd imagine due to the text for different phases taking up different amounts of space, as with before.

Interestingly, moving the GUI near the edge of the screen at 1x scale and returning to 1.25x scale makes the GUI disappear entirely. I suppose the screen is being magnified and that puts the GUI out of bounds?

Cool mod. Thanks for your hard work, and good luck with it.
1-800-GETHELP 14 Jul @ 7:19pm 
Sorry for not reading it thoroughly in the first place!
Rey 14 Jul @ 1:30pm 
Is there a way to take off the moon/time of day thing on the HUD? I don't like it. Checked the mod options. Nothing.
Tinda 14 Jul @ 11:12am 
Cool, looking forward to that!
Sjaandi  [author] 14 Jul @ 11:11am 
@Tinda Weather and special events are not supported yet. I do plan on adding them.
Tinda 14 Jul @ 11:09am 
I just got a sunblocker event, and while it turned to 0% light, it didn't visually get any darker.
Sjaandi  [author] 14 Jul @ 10:35am 
@тетеря, блин It's unlikely to be compatible as they both handle lighting.
тетеря, блин 14 Jul @ 10:34am 
is it compatible with?

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3512065298

or is that mod behaves in other way?
Sjaandi  [author] 13 Jul @ 11:32pm 
Both of those are addressed in the FAQ. I'll move them higher so they are more obvious.
VelxraTV 13 Jul @ 11:32pm 
have to adjust the starlight setting for night. its too dark by default.
1-800-GETHELP 13 Jul @ 11:30pm 
love the idea of this, but the night is basically pitch black, and the shadows look very wrong during the day
MultiNightsniper 13 Jul @ 10:23pm 
I'm absolutely sure there are mods causing the issue, but I have no idea what it could be. I'm using this modpack: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3521297585
As for resolution it's 1920 x 1080
Sjaandi  [author] 13 Jul @ 9:36pm 
@Thebrokenbucket Thank you!
Sjaandi  [author] 13 Jul @ 9:35pm 
@MultiNightsniper Can you tell me what resolution you are running the game at - and do you have any mods or have you changed any settings that deal with the game's text size / UI elements? I'd like to reproduce your issue so I can determine how best to fix it.
Thebrokenbucket 13 Jul @ 2:49pm 
beaut