Haze: optional start distance / max opacity keys in EEP skies (picked up when saved) #1268

Closed
opened 2026-10-28 22:47:34 +00:00 by sky_line · 1 comment
Owner

Part of #1266.

Let sky creators set the haze guardrails exactly, stored in the sky itself.

  • New optional sky keys, prefixed so they can't collide with future upstream keys (names to decide, e.g. sl_haze_start_distance, sl_haze_max_opacity).
  • Add validators for them in LLSettingsSky so our viewer keeps them: today LLSettingsBase::settingValidation (llsettingsbase.cpp ~556) strips unknown keys, so without validators they'd be dropped on load.
  • Environment editor: two fields in the sky editor's atmosphere tab, with "derive automatically" as the default (key absent).
  • Precedence: if a sky carries the keys, use them; otherwise derive (sibling ticket); the user's override wins over both.

Known limits to verify and document:

  • Other viewers that edit and re-save the sky strip the keys; the sky then falls back to derived values (harmless).
  • Region / parcel environments pass through the simulator (ExtEnvironment). Whether it preserves unknown keys is unknown: test the round trip on an alt's parcel and region before relying on it; if it strips them, these keys work for inventory/personal skies only, and the parcel case needs another carrier.
  • Same check for day cycles that embed skies.

No server-side or inventory risk beyond a normal settings save (no new message types).

Part of #1266. Let sky creators set the haze guardrails exactly, stored in the sky itself. - New optional sky keys, prefixed so they can't collide with future upstream keys (names to decide, e.g. `sl_haze_start_distance`, `sl_haze_max_opacity`). - Add validators for them in `LLSettingsSky` so our viewer keeps them: today `LLSettingsBase::settingValidation` (`llsettingsbase.cpp` ~556) **strips unknown keys**, so without validators they'd be dropped on load. - Environment editor: two fields in the sky editor's atmosphere tab, with "derive automatically" as the default (key absent). - Precedence: if a sky carries the keys, use them; otherwise derive (sibling ticket); the user's override wins over both. Known limits to verify and document: - Other viewers that edit and re-save the sky strip the keys; the sky then falls back to derived values (harmless). - **Region / parcel environments pass through the simulator** (ExtEnvironment). Whether it preserves unknown keys is unknown: test the round trip on an alt's parcel and region before relying on it; if it strips them, these keys work for inventory/personal skies only, and the parcel case needs another carrier. - Same check for day cycles that embed skies. No server-side or inventory risk beyond a normal settings save (no new message types).
sky_line added this to the Slipstream project 2026-10-28 22:47:34 +00:00
Author
Owner

Shipped in 1.5.0 Beta 5 (2026-10-29).

Shipped in **1.5.0 Beta 5** (2026-10-29).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1268
No description provided.