FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
0166 — Seafloor dust is unlit billboard sprites, not a turbid volume: no distance attenuation, no lamp backscatter
ID 0166
Class KNOWN-LIMITATION
Severity 2
Status blocked

Models: environment::SeafloorDust (visual helper), used by fhsim_marine_elements Net/NetStructure and Cable/Branched and fhsim_fishery's trawl doors (ToTrawlDoor)

Found: 2026-11-25

Decision needed: whether the dust becomes a turbid volume that the underwater pass integrates (D1 below), or stays a sprite effect with the cheaper fixes (D2), and whether its strength should come from a sediment model (grain size, settling speed) rather than the visual dust function.

Evidence

  • data/resources/ogre/assets/Seafloor/SeafloorDust.particle (plan dust-motion, 2026-11-25): Ogre point billboards, 1 m at birth, Scaler rate 0.2 m/s, Rotator, a small upward LinearForce, a DirectionRandomiser drift, and a ColourInterpolator from grey alpha 0.4 at birth to alpha 0 at the end of life; quota 10000. SeafloorDust (include/fhsim_environment/visual/SeafloorDust.h) makes one system per emitter and sets up to maxEmitters of them from seabed::DustEmissionFor(u): rate 40 u /s, lifetime 240 u s.
  • data/resources/ogre/assets/Seafloor/SeafloorDust.material:8-10: lighting off, scene_blend alpha_blend, depth_write off, colour from the vertex colour. The PBR template, the flashlight and the local lights (core ADRs 0024, 0027) do not see it.
  • data/resources/ogre/assets/Underwater/UnderwaterPass.frag:446-475: the underwater pass reconstructs the point a pixel shows from the depth buffer (texelFetch(depthTex, ...), hit = cameraPos + dir * dist) and applies the light at that depth (L *= exp(-Kd * hitDepth) * caustic) and extinction and in-scatter along dist. The dust writes no depth, so its pixels are treated as the surface behind it (usually the seabed).

Effect

  • The dust is a veil of sprites, not turbid water: objects behind a puff are covered by the sprite's alpha, the same at any distance through the cloud, instead of fading with the optical depth through it. In clear water (inspection, high clarity) the puffs read as distinct white or grey cards with their texture, not as murk.
  • A puff above the bed gets the bed's light attenuation and caustics (the depth behind it), not its own.
  • Lamps do not light it: no backscatter in the ROV light or the flashlight, which is the characteristic look of stirred sediment in front of a camera; at night the dust keeps its constant colour, darkened only by the pass's attenuation of the bed behind it.
  • The cloud does not affect what the water does elsewhere (no local loss of visibility, no shading of the bed below it).

Possible fix

  • D1, a turbid volume (preferred for realism): the helper keeps the puffs as data (centre, radius, concentration, age) and publishes them, for example a small list of Gaussian blobs or a 3D concentration texture around the emitters, through the Environment to the underwater pass. The pass adds the blobs' extra beam attenuation c_dust and scattering along each eye ray (analytic for Gaussians, or a few march steps), lit by the sun light at depth and by the local lights and the flashlight (single scattering with their cone and fall-off), so lamps get backscatter. The surfaces behind lose contrast with the optical depth through the cloud. Optional: shade the bed under a thick cloud. The sprites go, or stay as a faint texture detail drawn with depth-aware soft edges. Cost: a blob loop per pixel (bounded count, screen-space culling), one more shared parameter block.
  • D2, cheaper sprite fixes: soft particles (fade by the depth difference to the scene), lit by the light at their own depth and by the local lights in the vertex or fragment program (a PBR-scheme particle material), and an attenuation of the puff by its own distance. Keeps the card look in very clear water.
  • Either way the dust strength (DustFunction) could come from a settling sediment model (grain size, settling and diffusion), so a cloud thins and sinks rather than only fading.

Test that would prove it

A render test (GUI): a trawl door or net node at speed on the bed in clear water, camera 5 m away, with and without the flashlight. With D1 the contrast of a target behind the cloud falls with the cloud's optical depth, and the flashlight brightens the cloud near the lamp (backscatter); a pure-model test of the blob optical depth along a ray against the analytic Gaussian integral.

Risk

D1 touches the underwater pass of every underwater scene (cost per pixel, must be zero without dust) and adds a shared parameter block; D2 changes only the dust material. Neither changes forces.