|
FhSim
3.1.0
Marine systems simulation
|
| 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.
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).DustFunction) could come from a settling sediment model (grain size, settling and diffusion), so a cloud thins and sinks rather than only fading.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.
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.