Skip to content

Observer: sun path and seasonal foliage [LIFE17-Sky-077] - #96

Merged
NeoLorenzo merged 1 commit into
mainfrom
life-observer-seasons-sky
Nov 8, 2026
Merged

NeoLorenzo merged 1 commit into
mainfrom
life-observer-seasons-sky

Conversation

@NeoLorenzo

Copy link
Copy Markdown
Owner

The observer now draws the year. This is observer only: the engine is untouched, and trajectories and fingerprints are unchanged.

Sun

  • The sun follows the solar declination for the day of the year at 52° N.
  • The run starts at the spring equinox.
Noon sun height Daylight
Summer solstice about 61° about 16½ hours
Equinoxes 38° 12 hours
Winter solstice about 15° about 7½ hours
  • The winter sky is paler, and the sky is warmer while the sun is low.

Leaves and grass

  • Bilberry, hazel and birch blend from spring green to autumn yellow and brown, then to bare winter crowns.
  • About half the trees are drawn as birches and half as pines, picked by a hash of the tree's number. The engine has no tree species, so this is the observer's choice.
  • The grass dulls in late autumn and winter.
  • Colours change through shared shader uniforms, recoloured at most every tenth of a day.

Changes

  • New src/valleyView/seasonLook.ts, with 6 unit tests.
  • valleyScene.ts drives the sun, sky and leaves from it.
  • tiledInstances.ts gains per-instance colour and a custom depth material.
  • The fixed-day daylightAt and sunAt are removed from display.ts.
  • Changelog and lab notes entries [LIFE17-Sky-077].

Left for later: people still work from dawnHour to duskHour all year, so in midsummer they sleep in daylight. Making them follow the sun changes trajectories and needs its own step.

Validation: npm run agent:check passes (lint, typecheck, tests and build). The visuals were checked in the browser on the Life 18 branch; this port only changes where the year starts.

Note: Life 18 (life18-seasons, not yet opened as a PR) uses [LIFE18-Seasons-076] and carries these same visuals with its arrival offset. It will rebase over this.

@NeoLorenzo
NeoLorenzo merged commit cc9ed98 into main Nov 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant