Epic: haze redesign -- one participating medium (aerial perspective + height fog + volumetric fog) #1266

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

Problem

With the physical sky, physical night and volumetric fog, haze can take over the whole scene: in some environments (heavy-haze night skies especially) the town disappears into a flat beige/olive wash, even with weather off and fog settings at defaults. Midday Legacy looks fine.

Today three fog layers stack:

  1. WindLight haze: the classic EEP haze (haze_density, density_multiplier, distance_multiplier, max_y, haze colours). Ad-hoc, no cap, not energy-conserving.
  2. Physical sky aerial perspective: distant scenery fades by the physical air's extinction on top of WindLight's haze (llcleanphysskyvk.cpp header: "the haze amount ... stays WindLight's").
  3. Volumetric fog: its own density and in-scatter (ambient / sun scatter / local lights) on top of both.

Goal

One participating medium, applied once, the way current engines do it:

  • Aerial perspective from the physical sky tables (a camera-aligned AP volume; real air is near-clear at SL distances, so it only matters at long range).
  • One exponential height-fog layer for the artistic "haze": density + height falloff derived from the EEP haze values, in-scatter colour from the physical sky (energy-conserving), plus a start distance and a max opacity cap so geometry is never fully erased.
  • Volumetric fog reads the same medium (same density field), adding shafts and local-light glow without adding a second fog.
  • WindLight haze stays only as the physical-sky-off A/B path.

Where the guardrail values come from (precedence)

  1. Saved in the sky / environment, if present (child ticket: EEP keys).
  2. Otherwise derived from the sky's existing haze values (child ticket: derived defaults).
  3. The user's local override always wins when set (child ticket: Photo Studio escape hatch).

First step

A design doc: map every place haze is applied today (surfaces, water, probes, clouds, volumetrics, RT miss, far-clip fade), the EEP mapping, cost per pass, and the migration/A-B plan. Agree before building. Fixed-cost, GPU-driven; no per-object CPU work; VR shares the view-independent tables.

Children

(linked below)

## Problem With the physical sky, physical night and volumetric fog, haze can take over the whole scene: in some environments (heavy-haze night skies especially) the town disappears into a flat beige/olive wash, even with weather off and fog settings at defaults. Midday Legacy looks fine. Today three fog layers stack: 1. **WindLight haze**: the classic EEP haze (`haze_density`, `density_multiplier`, `distance_multiplier`, `max_y`, haze colours). Ad-hoc, no cap, not energy-conserving. 2. **Physical sky aerial perspective**: distant scenery fades by the physical air's extinction *on top of* WindLight's haze (`llcleanphysskyvk.cpp` header: "the haze amount ... stays WindLight's"). 3. **Volumetric fog**: its own density and in-scatter (ambient / sun scatter / local lights) on top of both. ## Goal One participating medium, applied once, the way current engines do it: - **Aerial perspective** from the physical sky tables (a camera-aligned AP volume; real air is near-clear at SL distances, so it only matters at long range). - **One exponential height-fog layer** for the artistic "haze": density + height falloff derived from the EEP haze values, in-scatter colour from the physical sky (energy-conserving), plus a **start distance** and a **max opacity cap** so geometry is never fully erased. - **Volumetric fog reads the same medium** (same density field), adding shafts and local-light glow without adding a second fog. - WindLight haze stays only as the physical-sky-off A/B path. ## Where the guardrail values come from (precedence) 1. Saved in the sky / environment, if present (child ticket: EEP keys). 2. Otherwise derived from the sky's existing haze values (child ticket: derived defaults). 3. The user's local override always wins when set (child ticket: Photo Studio escape hatch). ## First step A design doc: map every place haze is applied today (surfaces, water, probes, clouds, volumetrics, RT miss, far-clip fade), the EEP mapping, cost per pass, and the migration/A-B plan. Agree before building. Fixed-cost, GPU-driven; no per-object CPU work; VR shares the view-independent tables. ## Children (linked below)
sky_line added this to the Slipstream project 2026-10-28 22:47:34 +00:00
Author
Owner

Children: #1267 (derived defaults, core), #1268 (EEP keys, picked up when saved), #1269 (Photo Studio override).

Children: #1267 (derived defaults, core), #1268 (EEP keys, picked up when saved), #1269 (Photo Studio override).
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#1266
No description provided.