david-wm-sanders / factorio-timelapse

A mod for Factorio that takes screenshots of the world at the specified interval.
MIT License
9 stars 0 forks source link

Lighting (day-night cycle) Controls #1

Closed david-wm-sanders closed 8 years ago

david-wm-sanders commented 8 years ago

A lot of people have noted that the rapid oscillation between day-night in videos created from the images captured by the mod are a bit rough on the eyes and mind. I completely agree with this assessment and found my initial videos (with an interval of 60s) to be slightly nauseating. I dropped the default interval to 30s in an attempt to make the oscillation less nauseating.

However, more work needs to be done to remedy this issue.

There are several possible options:

  1. Set game.always_day = True while Timelapse is active.
  2. Temporarily set the time to a value (game.daytime = 1 for noon) before taking the shot and then set it back to the original value after the shot. (See: Game-day)
  3. Only take the shot if the game.daytime value is within a specific window. For example, 0.75->0.25 for full day time. The window could possibly be expanded to include the dusk and dawn periods.

The solution is probably to implement all of the above options and then provide a _lightingmode variable that can be set by the user via the remote interface to chose which one they want. The default _lightingmode would be selected after testing which of the above options provide the best result. A "none" _lightingmode would be included to keep the behaviour as is.

david-wm-sanders commented 8 years ago

I implemented the basic functionality for the system detailed in 2 in a214fda184cc74f2146dc63dc90cd271e78570ac. To complete 2, I need to:

Regarding 1, I have decided not to implement this system as players can easily just set the _lightmode to "none" and call game.always_day = true themselves.

david-wm-sanders commented 8 years ago

Finished in 52f56cf039bfbad3b79e32af29b7e5f5cfd96b85