Set the campus clock to the real Linköping sun #192

Open
opened 2026-10-25 02:38:50 +00:00 by sermuns · 0 comments
Owner

Day and night are a toggle (#92). The campus has a real latitude and longitude, so the sky could follow the actual sun: sunrise, sunset, golden hour, blue hour, moon phase. A player who opens the game at dusk in Linköping sees dusk in Valla.

How it fits. BakedWorld::origin is the campus's lon and lat, and the sky palette already has a day and a night side. A solar position function gives the sun direction and the phase; the server publishes the clock, and clients derive the same sky. The manual day and night toggle stays for events and for players who want noon at midnight.

Scope.

  • A solar ephemeris from the campus origin and the real time.
  • Sky palettes interpolated through dawn, day, dusk and night.
  • A moon phase and a moonlight intensity.
  • Server-owned clock with a manual override.
  • A debug scrubber for testing the transitions.

Related. #187 (seasons), #188 (night sky), #195 (bells), #92 (day-night fade).

Day and night are a toggle (#92). The campus has a real latitude and longitude, so the sky could follow the actual sun: sunrise, sunset, golden hour, blue hour, moon phase. A player who opens the game at dusk in Linköping sees dusk in Valla. **How it fits.** `BakedWorld::origin` is the campus's lon and lat, and the sky palette already has a day and a night side. A solar position function gives the sun direction and the phase; the server publishes the clock, and clients derive the same sky. The manual day and night toggle stays for events and for players who want noon at midnight. **Scope.** - A solar ephemeris from the campus origin and the real time. - Sky palettes interpolated through dawn, day, dusk and night. - A moon phase and a moonlight intensity. - Server-owned clock with a manual override. - A debug scrubber for testing the transitions. **Related.** #187 (seasons), #188 (night sky), #195 (bells), #92 (day-night fade).
Sign in to join this conversation.
No description provided.