Checks weather-grid sampling, packet handling, spatial fog and turbulence publication.
Subsystem: Weather, clouds, lightning and atmospheric visibility
Fixture/harness: terrainweathertests
Setup: Explicit setup symbols: FixtureBus. The standalone TerrainWeatherTests harness owns the inputs, local helpers and assertion sink used by the case files below. Fixture is scoped to this harness; similarly named fixtures in other executables are independent.
Build/entry point: Tests/TerrainWeatherTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Release|x64.
LightningThunderTests.h
Source: Tests/LightningThunderTests.h
Lightning Thunder Tests
Fixture: Terrain Weather tests
Case symbol: LightningThunderTests
Source: Tests/LightningThunderTests.h:48
- Test
- Checks thunder count, distance category and scheduling against connected strike segments, onset offsets and propagation travel time.
Source check messages (including original failure wording)
-
thunder count does not match connected path
-
wrong thunder distance category
-
thunder did not include segment onset and actual travel time
-
chain has disconnected endpoints
-
cloud hop incorrectly contacts ground
-
electrical crack did not follow its section onset
-
packet ground column moved
-
shared packet produced observer-dependent geometry/timing
-
return-stroke timing changed
-
diagnostic strike caused weapon damage
-
natural/wire event lost a connected section
-
three-section sequence did not last three complete bolts
-
chain moved during flash
-
real flight discarded active lightning
-
real flight discarded cloud history
-
simulator entry retained cloud history
-
simulator entry retained connected geometry or afterimage
-
simulator strike produced visual/audio/gameplay effects
-
simulator exit restored stale cloud history
-
simulator exit replayed a chain
-
real flight did not resume connected lightning
-
real flight discarded queued lightning audio
-
simulator retained thunder/electrical cracks or discarded unrelated audio
-
simulator exit replayed lightning audio
LocalCloudBaseLifecycleTests.h
Source: Tests/LocalCloudBaseLifecycleTests.h
Check Local Cloud Base Lifecycle
Fixture: Terrain Weather tests
Case symbol: CheckLocalCloudBaseLifecycle
Source: Tests/LocalCloudBaseLifecycleTests.h:1
- Test
- Checks cloud-field activation, grid orientation, terrain joins and scalar units; missing terrain must not invent a cloud base.
Source check messages (including original failure wording)
-
base fixture full grid
-
local cloud field not activated
-
cloud grid transposed, wrong terrain join, or wrong scalar units
-
missing terrain supplied invented cloud base
-
unchanged grid republished every frame
-
terrain-only refresh snapped or ignored cloud base
-
terrain revision did not reach cloud field
-
VIS diagnostic incorrectly disabled cloud bases
-
BCL override retained regional controls
-
BCL exit failed fresh coverage fade
-
simulator entry retained cloud state
-
simulator exit replayed stale field
-
ascent observer handoff wrong
-
upper cloud transition retained local weight
-
orbit retained local cloud state
-
descent accepted stale pending grid
-
descent failed to rearm valid weather
-
reposition retained regional cloud bases
-
reconnect retained regional cloud bases
PrecipitationAudioTests.h
Source: Tests/PrecipitationAudioTests.h
Update
Fixture: Terrain Weather tests
Case symbol: Update
Source: Tests/PrecipitationAudioTests.h:23
- Test
- Support check: verifies each updated precipitation mix has valid gain.
Source check messages (including original failure wording)
-
rain mix produced invalid gain
Precipitation Audio Tests
Fixture: Terrain Weather tests
Case symbol: PrecipitationAudioTests
Source: Tests/PrecipitationAudioTests.h:37
- Test
- Checks activation at heavy rain, silence at/below the dry threshold and smooth gain changes over the precipitation range.
Source check messages (including original failure wording)
-
heavy rain did not activate audio
-
rain audio continued at or below 3
-
3-to-16 rain gain did not increase smoothly
-
maximum rain gain changed
-
rain sample crossfade did not move to the 3-to-16 range
-
normal dry weather generated a precipitation warning
-
rain audio failed outside simulator
-
simulator entry retained rain loops
-
diagnostic rain override activated simulator audio
-
simulator exit replayed stale rain audio
-
current rain did not resume after simulator exit
SpatialFogWeatherTests.h
Source: Tests/SpatialFogWeatherTests.h
Check Spatial Fog Transport
Fixture: Terrain Weather tests
Case symbol: CheckSpatialFogTransport
Source: Tests/SpatialFogWeatherTests.h:3
- Test
- Check Spatial Fog Transport: fog must move downwind by 600 meters in 60 seconds at 10 m/s on every face; spatial fog stayed fixed between packets; fog drift depends on frame rate.
Source check messages (including original failure wording)
-
fog must move downwind by 600 meters in 60 seconds at 10 m/s on every face
-
spatial fog stayed fixed between packets
-
fog drift depends on frame rate
-
calm or invalid time/wind changed fog displacement
-
reversed wind has wrong sign
-
full snapshot snapped fog
-
full snapshot correction midpoint
-
frequent full snapshots restarted from an invisible endpoint
-
full snapshot correction did not converge
-
strip update reset weather age or shifted geography
-
drift did not continue across a strip update
-
opposite hemisphere reused local fog
-
fog reset retained a prediction
-
cube seam disrupted fog transport
-
uncovered upwind weather was extrapolated
Check Spatial Fog Lifecycle
Fixture: Terrain Weather tests
Case symbol: CheckSpatialFogLifecycle
Source: Tests/SpatialFogWeatherTests.h:89
- Test
- Checks packed wind controls fog drift and GPU refresh without moving terrain or cloud-base heights.
Source check messages (including original failure wording)
-
production fog packing did not use Weather1 direction/speed at 1x
-
fog advection moved terrain or cloud-base heights
-
fog drift did not refresh GPU grid
-
same-frame fog uploaded twice
-
packet receiver snapped rendered fog
-
rendered fog reconciliation midpoint
-
rendered fog reconciliation completion
-
simulator kept fog displacement/transition
-
simulator received weather started fog prediction
-
simulator exit replayed old fog
-
orbital coast retained fog prediction
-
descending hysteresis band reactivated fog
-
descent accepted stale token fog
-
fresh descent failed to restore spatial fog
-
teleport/reset retained fog motion
-
reconnect retained fog motion
TerrainWeatherTests.cpp
Source: Tests/TerrainWeatherTests.cpp
Send To Server
Fixture: Terrain Weather tests
Case symbol: SendToServer
Source: Tests/TerrainWeatherTests.cpp:124
- Test
- Support check: validates weather/lightning request framing, field order, reliability, token, channel and padding.
Source check messages (including original failure wording)
-
request framing/reliability changed
-
lightning wire fields/order changed
-
weather request token/channel/padding changed
-
terrain ordering changed
Check Sample
Fixture: Terrain Weather tests
Case symbol: CheckSample
Source: Tests/TerrainWeatherTests.cpp:255
- Test
- Support check: validates sample availability and that sampled weather belongs to the intended plot.
Source check messages (including original failure wording)
-
expected a valid located weather sample
-
weather shifted onto the wrong plot
Check Store
Fixture: Terrain Weather tests
Case symbol: CheckStore
Source: Tests/TerrainWeatherTests.cpp:278
- Test
- Checks weather packet layout and rejects malformed lengths or incompatible full/strip encodings.
Source check messages (including original failure wording)
-
managed server header golden bytes changed
-
malformed weather length accepted
-
null weather payload accepted
-
invalid cube accepted
-
full packet with strip side accepted
-
zero revision accepted
-
full packet with base accepted
-
full weather grid rejected
-
weather sampling escaped face/token/bounds
-
valid weather strip rejected
-
duplicate/delayed packet overwrote a newer grid
-
missing strip base failed to request repair or mutated storage
-
invalid strip displacement accepted
-
cross-face strip accepted
-
unrequested token accepted
-
repair full rejected
-
row established an empty grid
-
large initial revision rejected
-
revision wrap broke a valid strip
-
request token zero/wrap rejected
-
connection reset retained revision watermark
-
invalid sample was treated as valid weather
-
twelve-byte server golden cell or little-endian units changed
-
independent surface fields or reserved byte affected another quantity
-
byte endpoints lost independent fields
-
visibility limits changed
-
ceiling validity changed
-
missing weather invented surface values
Check Interpolation
Fixture: Terrain Weather tests
Case symbol: CheckInterpolation
Source: Tests/TerrainWeatherTests.cpp:390
- Test
- Checks bilinear targets against four controls and continuous interpolation across control boundaries and grid shifts.
Source check messages (including original failure wording)
-
fractional bilinear targets do not match the four control samples
-
local weather target jumped across a control-point boundary
-
shifting the grid changed local interpolation in the retained footprint
-
exact edge samples needed a nonexistent neighbor
-
interpolation crossed coverage, face or token
-
snow/water interpolation lost independent depth units
-
age-zero snow and surface water must coexist
-
aged snow lost simultaneous surface water
-
missing neighbor blended zeroes, changed the output, or invalidated an exact good point
-
nonfinite interpolation coordinates accepted
Check Surface Wind
Fixture: Terrain Weather tests
Case symbol: CheckSurfaceWind
Source: Tests/TerrainWeatherTests.cpp:463
- Test
- Checks server wind/surface units, shortest-path direction interpolation and vector cancellation of opposite winds.
Source check messages (including original failure wording)
-
server golden wind/surface units differ
-
wind blend fixture unavailable
-
wind direction took the long route across north
-
opposing surface winds did not cancel as vectors
-
calm cell bearing rotated the active surface wind
-
calm wind has nonfinite or stale direction/speed
-
surface wind upper byte endpoint changed units
-
surface wind used different bilinear weights
-
missing weather changed retained surface wind
Check Coordinates
Fixture: Terrain Weather tests
Case symbol: CheckCoordinates
Source: Tests/TerrainWeatherTests.cpp:515
- Test
- Checks weather projection against production ground geometry, negative-face alignment and altitude invariance.
Source check messages (including original failure wording)
-
fractional weather projection differs from production ground geometry
-
fractional projection lost negative-face alignment
-
altitude changed fractional weather coordinates
-
invalid weather projection accepted
Initial Terrain
Fixture: Terrain Weather tests
Case symbol: InitialTerrain
Source: Tests/TerrainWeatherTests.cpp:556
- Test
- Support check: verifies the legacy full-terrain fixture remains accepted.
Source check messages (including original failure wording)
-
legacy terrain full stopped working
Terrain Unchanged
Fixture: Terrain Weather tests
Case symbol: TerrainUnchanged
Source: Tests/TerrainWeatherTests.cpp:573
- Test
- Support check: verifies weather packets leave ground/building storage unchanged.
Source check messages (including original failure wording)
-
weather packet mutated ground/building storage
Check Integration
Fixture: Terrain Weather tests
Case symbol: CheckIntegration
Source: Tests/TerrainWeatherTests.cpp:576
- Test
- Checks startup requests current weather-grid data and retired weather paths cannot initialize or change live precipitation.
Source check messages (including original failure wording)
-
deprecated Weather1 array changed precipitation before grid detection
-
retired Weather2 initialized weather before grid arrival
-
startup did not request grid weather before receiving any weather packet
-
initial push bypassed causal request
-
initial weather request missing
-
old token consumed initial reset
-
initial weather coordinate failed
-
independent full did not initialize local weather
-
grid precipitation did not feed/snap the local target
-
surface wind replaced altitude-specific Weather1 values during grid application
-
modern Weather1 changed precipitation or lost wind/temperature fields
-
Weather2 overwrote independent weather
-
weather strip rebuilt mesh or reset smoothers
-
weather envelope collided with existing messages
-
W0 did not request a new weather token
-
delayed same-position full consumed W0 reset
-
off-location full consumed reset
-
missing weather consumed reset
-
destination full did not consume reset once
-
gap recovery incorrectly armed a local reset
-
missing base did not request repair
-
transport repair reset weather smoothers
-
ascent retained grid or sent a request
-
above-cloud packet applied weather/W0
-
descent did not replace the deferred W0 token
-
in-flight full crossed descent token
-
weather without terrain consumed deferred W0
-
deferred W0 did not snap after terrain arrived
-
request token did not wrap as ushort
-
wrapped token full failed
-
ordinary full weather advance bypassed temporal smoothing
-
connection reset failed to queue a fresh modern grid
-
retired Weather2 consumed a reconnect reset
-
connection reset restored deprecated Weather1 precipitation decoding
Check Lightning Integration
Fixture: Terrain Weather tests
Case symbol: CheckLightningIntegration
Source: Tests/TerrainWeatherTests.cpp:712
- Test
- Checks regional lightning rates are independent of local rain/wet-sector count and sources remain in the actual storm direction.
Source check messages (including original failure wording)
-
storm direction fixture is not locally clear
-
regional storm rate multiplied by wet-sector count or depended on local rain
-
lightning spawned in the dry/wrong direction
-
strike did not use selected cell elevation, ceiling and actual observer distance
-
lightning generated/rendered at or above 10 km
-
simulator generated lightning
-
pending W0 used the old storm footprint
-
malformed lightning packet reached renderer
-
seam fixture left EP
-
rotated cube-seam lightning lost its geographic position
-
lightning geometry cache did not use the accepted weather revision
-
disconnect retained lightning or accepted a strike without current weather
-
retired terrain-only lightning path accepted a strike without weather
-
legacy-server lightning escaped simulator suppression
-
leaving simulator replayed a discarded strike
-
simulator exit restored retired lightning fallback
Check Weather Commands
Fixture: Terrain Weather tests
Case symbol: CheckWeatherCommands
Source: Tests/TerrainWeatherTests.cpp:802
- Test
- Checks diagnostic weather commands stay isolated from live weather, smoothing and regional storm generation.
Source check messages (including original failure wording)
-
dry BOLT fixture failed synchronization
-
RAIN changed live weather or contaminated its smoother
-
RAIN manufactured a regional storm
-
BOLT failed to trigger its local diagnostic in dry weather at the cube seam
-
BOLT requested an unsupported chain count
-
BOLT was not 1 km along the camera bearing
-
BOLT was behind/beside the active camera
-
BOLT did not attach to terrain/cloud base
-
BOLT broadcast a random replacement/echo
-
BOLT ignored the cloud ceiling override
-
RAIN leaked into live weather
-
RAIN reset did not resume current live rain
-
live weather initialization inherited RAIN
-
reposition retained cloud image history
-
BOLT used stale weather after W0
-
connection-reset fixture did not arm its orbital lightning diagnostic
-
connection reset retained cloud image history
-
connection reset retained orbital lightning diagnostic
-
BOLT used a retired fallback without weather
-
simulator accepted a diagnostic bolt
-
BOLT manufactured missing terrain
Check Altitude Lifecycle
Fixture: Terrain Weather tests
Case symbol: CheckAltitudeLifecycle
Source: Tests/TerrainWeatherTests.cpp:889
- Test
- Checks weather/lightning/request state is discarded on ascent and is correctly initialized/rearmed across altitude transitions.
Source check messages (including original failure wording)
-
altitude fixture not initialized
-
altitude fixture has no lightning cells
-
ascent failed to discard weather/lightning/unsent request state
-
above-cloud grid traffic changed weather or produced a request
-
volume atmosphere retained ground fog above cloud tops
-
above-cloud Weather1 fields or reserved byte regressed
-
RAIN override leaked into above-cloud weather
-
legacy renderer lost above-cloud clear-air visibility
-
above-cloud gate masked explicit VIS test
-
9.5-to-10 km hysteresis band resumed local grid/lightning too early
-
descent did not reject stale token before application
-
descent did not send exactly one causal full-grid request
-
fresh descent full did not replace local targets
-
ordinary descent snapped local smoothers
-
descent repeatedly requested full grids
-
above-cloud simulator startup sent/applied local grid
-
first descent failed to request its initial full
-
initial descent consumed unsolicited full
-
initial descent lost its one-time reset
Check Terrain Alignment
Fixture: Terrain Weather tests
Case symbol: CheckTerrainAlignment
Source: Tests/TerrainWeatherTests.cpp:989
- Test
- Checks weather elevations follow geographic terrain coordinates across center shifts/cube wrapping and missing terrain stays unavailable.
Source check messages (including original failure wording)
-
terrain/weather centers or cube wrapping misaligned elevation
-
terrain elevation came from matching array indices
-
missing terrain published a replacement elevation
-
cross-face overlap could not resolve a wrapped terrain control point
-
unrelated old face supplied elevation
-
aligned fixture failed to initialize
-
terrain-only point failed to refresh local weather, rain or lightning
-
fractional terrain observer
-
terrain bilinear interpolation lost fractional continuity
-
missing terrain corner injected sea level or retained a strike
-
valid negative terrain elevation was rejected
-
valid sea-level terrain was mistaken for missing data
-
terrain strip fixture did not shift east
-
cleared strip retained its former location's elevation
-
unreceived strip rendered a rain/lightning column
-
terrain-only strip did not refresh weather consumers
-
terrain shift changed retained plot elevation
-
terrain-only full retained old weather heights
-
weather first used a fabricated terrain surface
-
wrong-location terrain consumed weather reset
-
unchanged weather did not initialize after matching terrain arrived
-
terrain-driven local base jumped across a plot boundary
-
slope before terrain recenter
-
terrain recenter changed the same geographical surface
-
terrain exact-edge validity changed
Check Radar Surface
Fixture: Terrain Weather tests
Case symbol: CheckRadarSurface
Source: Tests/TerrainWeatherTests.cpp:1122
- Test
- Check Radar Surface: radar surface preserves elevation and land classification; radar coastline interpolates supplied water vertices above MSL; inactive secondary water landform does not turn land into water.
Source check messages (including original failure wording)
-
radar surface preserves elevation and land classification
-
radar coastline interpolates supplied water vertices above MSL
-
inactive secondary water landform does not turn land into water
-
active coastal landform refreshes cached radar material
-
missing terrain corner cannot be filled with invented water or land
Benchmark Terrain Join
Fixture: Terrain Weather tests
Case symbol: BenchmarkTerrainJoin
Source: Tests/TerrainWeatherTests.cpp:1143
- Test
- Benchmark Terrain Join: benchmark terrain lookup.
Source check messages (including original failure wording)
Check Snow
Fixture: Terrain Weather tests
Case symbol: CheckSnow
Source: Tests/TerrainWeatherTests.cpp:1175
- Test
- Checks snow/water alignment, overlap across plot seams and continuity when weather recenters.
Source check messages (including original failure wording)
-
snow full rejected
-
canonical snow/water alignment failed
-
snow seam fixture lacks overlap
-
snow recenter rejected
-
weather recenter snapped retained snow
-
three-second surface smoothing incorrect
-
snow cell lost coexisting surface water
-
aged full snow tint
-
snow cumulatively modified terrain storage
-
surface cache unbounded
-
surface properties missing from weather interpolation
-
missing snow fixture
-
missing cell erased known terrain snow
-
surface transition full rejected
-
surface transition snapped smoothing
-
surface transition retained the inactive quantity
-
polar visual coverage
-
physical snow color or coverage
-
polar policy changed physical amounts
-
legacy/reconnect snow lifecycle
Entry-point checks
Fixture: Terrain Weather tests
Case symbol: main
Source: Tests/TerrainWeatherTests.cpp:1267
- Test
- Checks rain-grid orientation and units, command isolation, upload deduplication and simulator clearing of spatial fog.
Source check messages (including original failure wording)
-
rain fixture full grid
-
valid grid enables spatial fog
-
rain grid is transposed or has incorrect units/surface plus ceiling
-
RAIN command changed spatial weather or unchanged grid uploaded again
-
simulator entry retained spatial fog
-
simulator weather update fixture
-
valid weather grid reactivated simulator fog
-
simulator exit must republish current weather instead of retaining a GPU fog generation
-
VIS must retain uniform diagnostic fog
-
enclosed/windowless view enabled spatial fog
-
above-cloud state retained rain
-
stale generation enabled rain
-
unavailable grid enabled rain
-
reconnect fixture active
-
reconnect retained a GPU generation with reusable token/revision
TurbulenceGridTests.h
Source: Tests/TurbulenceGridTests.h
Check Grid Turbulence
Fixture: Terrain Weather tests
Case symbol: CheckGridTurbulence
Source: Tests/TurbulenceGridTests.h:3
- Test
- Checks byte normalization, unequal bilinear weights, zero/full endpoints and vehicle-local sampling of turbulence.
Source check messages (including original failure wording)
-
turbulence byte normalization or unequal bilinear weights changed
-
zero/full turbulence endpoints are not preserved
-
vehicle did not sample local turbulence
-
turbulence incorrectly requires loaded terrain
-
camera displaced flight turbulence
-
speed/reference suppressed weather sampling
-
deprecated Weather1 f_y replaced grid turbulence
-
vehicle movement retained old turbulence
-
global fallback displaced valid local weather
-
turbulence source ignored the 9.5 km MSL boundary
-
missing local corner substituted coarse global weather
-
stale local token supplied turbulence
-
out-of-footprint weather substituted global turbulence
-
ascent lost turbulence with suspended local grid
-
atmospheric/suborbital/orbital/re-entry turbulence envelope changed
-
space retained gust energy for re-entry
-
descent wait substituted global weather below 9.5 km
-
fresh descent fixture rejected current request token
-
fresh descent grid did not restore local turbulence
-
simulator retained turbulence or gust memory
-
simulator exit replayed gust memory or failed to resume current weather
-
reposition retained gust memory or old local generation
-
global turbulence has wrong hemisphere or orientation
-
invalid position reached global sampler
-
invalid altitude enabled turbulence
-
missing grids manufactured turbulence