Rise
The Vieneo Province
Loading...
Searching...
No Matches
Cloud Volume tests

Checks cloud density, weather input, lightning and reference volume rendering.

Subsystem: Weather, clouds, lightning and atmospheric visibility
Fixture/harness: cloudvolumetests
Setup: Explicit setup symbols: RegionalWeatherFixture. The standalone CloudVolumeTests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/CloudVolumeTests.vcxproj; declared configurations: Debug|Win32, Release|Win32.

CloudLightningTests.h

Source: Tests/CloudLightningTests.h

Cloud Lightning Tests

Fixture: Cloud Volume tests
Case symbol: CloudLightningTests
Source: Tests/CloudLightningTests.h:3

Test
Cloud Lightning Tests: no lightning before convection arrives; calm stratus does not generate lightning; lightning follows the blended weather, not a newly uploaded endpoint.
Source check messages (including original failure wording)

  • no lightning before convection arrives
  • calm stratus does not generate lightning
  • lightning follows the blended weather, not a newly uploaded endpoint
  • global Poisson schedule averages 100 flashes per second
  • event schedule is independent of frame rate
  • finite bounded flash pulses
  • scheduled cloud flash ignored shared timing constants
  • scheduled cloud flash diverged from the ground-bolt envelope
  • cloud flash age or brightness depends on frame rate
  • active cloud-chain source left its local occupied cloud layer
  • disconnect clears active lightning
  • resume skips a long backlog instead of replaying an hour of lightning
  • organic placement changed event identity, birth timing or strength
  • organic shape preserves lightning event schedule
  • organic/legacy scheduling comparison did not exercise enough event births
  • organic flash is embedded in moisture
  • organic placement diverged from the shared chain timing
  • organic lightning placement exercised active strikes
  • weather resolution does not change global distribution mass
  • spherical samples lie on the unit sphere
  • area weighting avoids equirectangular polar bias
  • visible flash fraction follows the shrinking horizon cap
  • strongest convection receives the cubic-weighted share of flashes
  • cloud and ground timing selection differs
  • cloud and ground peaks differ for the same strike seed
  • cloud return-stroke gap lost the shared afterglow
  • cloud flash outlived the shared duration
  • cloud mean duration diverged from shared tuning
  • cloud mean stroke count diverged from shared tuning

CloudVolumeCpuTests.h

Source: Tests/CloudVolumeCpuTests.h

Cpu Tests

Fixture: Cloud Volume tests
Case symbol: CpuTests
Source: Tests/CloudVolumeCpuTests.h:6

Test
Cpu Tests: stationary density is deterministic; continuous density across spatial samples; calm in-cloud density still varies with structure.
Source check messages (including original failure wording)

  • bounded density
  • stationary density is deterministic
  • continuous density across spatial samples
  • calm in-cloud density still varies with structure
  • active clusters rise within the marching shell
  • moderate convection develops between calm and strong profiles
  • weather blending grows formations continuously
  • weather transitions change the underside smoothly
  • weak convection keeps shallow billows within a gently undulating stratus sheet
  • active convection forms broad raised clusters above the 10 km core
  • maximum convection supports 20-22 km storm peaks
  • midrange live convection creates substantial growth too
  • nominal 10 km level remains inside the stratus core
  • direct illumination cannot jump at the 10 km flight-mode boundary
  • scattered illumination stays continuous at the 10 km flight-mode boundary
  • at 12 km the aircraft can enter and leave moderate convective clusters
  • at 18 km strong convection has both towers and clear gaps
  • strong convection develops billows rather than only lifting a flat sheet
  • weak-convection bases have less undulation than storm bases
  • convection keeps mean base height centered on local ceiling
  • wind offset wrapping cannot move weather clusters or billows
  • server convection towers stay inside marching shell
  • local wind cannot drift global weather twice
  • clear below layer
  • clear above all towers
  • seed changes formation
  • active weather raises tops
  • minimum stratus thickness remains inside the marching shell
  • TCP cube-edge continuity
  • surface atmosphere retains weather visibility
  • visibility clears smoothly during ascent
  • visibility has no 10 km jump
  • clear atmosphere above the nominal deck
  • 14.5 km uses the legacy clear-air override rather than the 42.16 km fallback
  • elevated surface retains its visibility
  • volume replaces uniform tint while legacy keeps it
  • explicit screen override is retained
  • sun glare follows cloud transmission without a local-top switch
  • simulator retains legacy sun glare gating
  • daylight suppresses airglow even in the darkest cloud pockets
  • airglow appears at night and is extinguished after sunrise
  • twilight airglow fades continuously with solar elevation
  • green cloud emission falls off with altitude
  • dense pockets retain a faint 20 m wing outline while thin pockets reveal it
  • the optically dense pockets also carry stronger rain
  • 20 m silhouettes survive the densest pockets at every convection level
  • flight visibility varies within a second without frame-scale flicker
  • sunlight brightens toward exposed cloud tops
  • solar column integration has no major darkening step during ascent
  • volume transmits a nearby lamp but hides distant lamps in the same cloud
  • clear observer and clear segment have no cloud extinction
  • cloud between two clear endpoints blocks the line of sight
  • sunlight is extinguished by the cloud depth above an interior point
  • convection develops over minutes, not seconds
  • upper-air observations cannot reshape or accelerate the deck during ascent
  • wind drift independent of frame rate
  • wind direction and cloud altitude speed multiplier
  • stationary observer encounters advected density
  • calm wind does not move formations
  • city light U matches cloud grid on all faces
  • city light V matches cloud grid on all faces

CloudVolumeTests.cpp

Source: Tests/CloudVolumeTests.cpp

Entry-point checks

Fixture: Cloud Volume tests
Case symbol: main
Source: Tests/CloudVolumeTests.cpp:31

Test
Entry-point checks: precompiled cloud initialization avoids the long startup stall; restore caller depth write state; migration reference weather complete.
Source check messages (including original failure wording)

  • create hidden test window
  • create D3D9
  • adapter name
  • create HAL device
  • initialize cloud resources
  • volume supported
  • precompiled cloud initialization avoids the long startup stall
  • create test target
  • get depth
  • create readback
  • bind test target
  • target description
  • create resolve
  • resolve MSAA frame
  • read frame
  • lock readback
  • unlock readback
  • save sun query state
  • begin sun visibility query
  • query sun geometry
  • end sun visibility query
  • restore sun query state
  • clear frame
  • foreground depth
  • cockpit stencil
  • begin cloud frame
  • create opaque sun query
  • create legacy sun query
  • render volume
  • end cloud frame
  • read restored state
  • restore caller depth write state
  • read restored target
  • restore caller render target
  • save preview
  • capture target description
  • migration reference weather complete
  • headlight visibly scatters in cloud
  • cloud outside the narrow beam keeps its lighting
  • stationary beam and density pockets remain stable
  • a rear-facing beam cannot light cloud ahead
  • cloud between the source and receiving pocket extinguishes the beam
  • foreground geometry occludes illuminated cloud
  • headlight scattering preserves the cockpit stencil
  • nearby ship's beam is visible off the camera axis
  • side-on beam has no isolated march discs
  • close beam stays smooth at planet-sized coordinates
  • sunlit clouds reduce visible headlight scattering smoothly
  • headlight off clears the previous frame's light
  • no luminous cone is painted into empty air
  • light optical depth exists
  • read light depth surface
  • create optical depth readback
  • copy optical depth
  • lock optical depth
  • headlight extinction agrees with independent density integration
  • unlock optical depth
  • read bounded headlight count
  • headlights respect the fixed eight-light budget
  • read orbital light count
  • orbital headlights skip the scattering prepass when they cannot reach cloud
  • top preview uses the complete weather map
  • orbital preview uses the complete weather map
  • weak-top fixture weather uploaded
  • weak-convection cloud tops retain visible relief under overhead sun
  • shallow billows retain a bright soft stratus appearance
  • geometry-only sun query stays stable while leaving cloud wisps
  • cloud compositing leaves sun occlusion to integrated transmission, not opaque depth
  • average cloud-base RGB matches fog including the shared airglow and depth attenuation
  • cloud interiors brighten toward the overhead-lit tops
  • overhead-lit tops are bright without clipping to white
  • clouds remain visible inside the outer search shell with client clip planes
  • nearby geometry occludes the actual cloud surface on both sides of 14 km, including zoom
  • cloud extinction never covers cockpit stencil
  • scene geometry receives integrated cloud only between the eye and its actual depth
  • clear nearby object remains visible above the layer
  • clear observer cannot see an object through the deck
  • nearby geometry stays faintly visible in dense pockets and becomes clear in thin mist
  • create rain extinction fixture
  • lock rain fixture
  • unlock rain fixture
  • clear rain fixture
  • begin rain fixture
  • render cloud-attenuated rain
  • end rain fixture
  • rain streaks respect near visibility and attenuate by their cloud path
  • descent cannot switch off the visible deck at 14 or 10 km
  • read cloud pixel footprint
  • cloud resolution stays at half the screen throughout ascent and orbit
  • zero convection retains an opaque stratus deck
  • convection changes base contrast without shifting the horizon baseline
  • calm bases keep subtle structure rather than a featureless plane
  • convection comparison map reaches GPU
  • translucent wisps do not expose dark interior sampling bands
  • live convection increases visible underside relief
  • active cloud bases retain restrained diffuse contrast
  • GPU starts with black global convection
  • staged upload publishes the complete map
  • GPU publication starts at previous-map appearance
  • weather transitions gradually over one minute
  • server map affects rendered cloud formations
  • read first visible flash count
  • scheduled local storm produces a visible flash
  • embedded lightning visibly illuminates orbital cloud tops at night
  • orbital flash remains localized around its storm
  • rendering does not advance the event clock
  • upper storm emission is extinguished through the opaque lower deck
  • foreground geometry occludes lightning with its clouds
  • lightning preserves the cockpit stencil
  • simulator disable immediately removes active ACL illumination
  • simulator disable prevents new ACL flashes
  • leaving simulator does not replay old flashes
  • ordinary flight resumes fresh volumetric lightning
  • zero-alpha local strike illuminates the base and interior below 10 km
  • cloud flash retains the bolt's supplied animation brightness
  • light emission does not depend on color alpha
  • zero RGB brightness removes the local flash regardless of alpha
  • read inactive local flash count
  • zero-brightness local flash does not consume a shader light slot
  • local cloud flash preserves foreground depth
  • local cloud flash preserves cockpit stencil
  • simulator disable removes local cloud illumination
  • simulator exit cannot replay a local flash
  • stationary render has no random flicker
  • distant cloud color converges to the existing horizon haze
  • horizon blending preserves nearby cloud detail
  • exposed sub-cloud horizon matches atmospheric haze
  • fixture exposes the blue horizon gap before correction
  • horizon correction preserves foreground
  • horizon correction preserves cockpit
  • background changes continuously through the cloud deck
  • orbital clear color retains the existing zenith
  • dim cloud bases retain visible structure
  • base detail modulates brightness without shifting horizon hue
  • base detail is centered on neutral horizon brightness
  • base detail both brightens and darkens the horizon color
  • diffuse lighting preserves subtle underside relief
  • diffuse cloud recesses retain scattered light without extreme contrast
  • above and below volumes differ
  • clear tops have no duplicate atmosphere or uniform cloud tint
  • inside volume produces distinct extinction
  • no green airglow in a deeply shadowed daytime cloud
  • airglow reaches bases even without sunlight
  • airglow keeps exomoon blue-green color
  • city light is spatially localized on the bases
  • wind visibly advects the volume at a stationary camera
  • orbital detail is stable for subpixel camera motion
  • thick stratus hides background during ascent
  • small altitude changes do not rapidly reshape visible cloud tops
  • near-side cloud detail stays stable for subpixel movement at 117 km
  • moving game camera retains the same cloud minification as the test camera
  • orbital tops show large-scale weather structure beyond fine noise
  • overhead-lit weather regions avoid excessive broad light/dark contrast
  • weather patterns remain visible at 117 km across multiple regions
  • cloud-top brightness follows local depth rather than absolute tower height
  • daylit cloud tops remain bright
  • night-side tops stay dark even when the observer ambient is bright
  • faint exomoon airglow remains visible on the night side
  • admin darkness matches the unlit hemisphere
  • admin daylight matches the overhead sun across the cloud hemisphere
  • sunset has both lit and dark cloud regions in one frame
  • load actual atmosphere ramp
  • create orbital atmosphere geometry
  • create atmosphere cloud mask
  • create atmosphere cloud distance
  • lock atmosphere cloud distance
  • unlock atmosphere cloud distance
  • lock atmosphere geometry
  • unlock atmosphere geometry
  • begin atmosphere frame
  • set controlled premultiplied cloud background
  • lock atmosphere cloud mask
  • unlock atmosphere cloud mask
  • draw controlled cloud occlusion
  • draw atmosphere after volume
  • end atmosphere frame
  • atmosphere restores caller state
  • atmosphere protects foreground and cockpit
  • opaque clouds hide the sky backdrop even beyond 52.5 km
  • nearby opaque clouds extinguish the skyring
  • unlit ring cannot paint bright haze onto the night side
  • atmosphere ramp remains visible without a foreground cloud
  • unobstructed orbital atmosphere preserves the original ramp within 8-bit rounding
  • atmosphere retains directional sunlight response
  • 1000 km haze follows the sun angle and preserves a dark hemisphere with a twilight rim
  • cloud haze fixture contains formations at both distances
  • air builds with cloud distance without a projected ring stripe
  • thin cloud transmits a reduced sky backdrop
  • ring behind a translucent cloud preserves its premultiplied radiance without an outline
  • foreground preserved
  • cockpit preserved
  • GPU regression fixture contains a tower above 20 km
  • begin density probe
  • begin probe effect
  • begin probe shader
  • draw density probe
  • end probe pass
  • end probe effect
  • end density probe
  • CPU and GPU sample the same cloud structure
  • CPU lights and GPU geometry share dense-pocket extinction
  • create MSAA target
  • create MSAA depth
  • detach old depth
  • bind MSAA target
  • bind MSAA depth
  • MSAA foreground preserved
  • MSAA cockpit preserved
  • MSAA cloud visible
  • MSAA depth clips integration at nearby objects and obscures distant objects
  • headlight prepass and composite work with MSAA
  • MSAA headlight preserves opaque foreground and cockpit
  • reset device after releasing cloud resources
  • recreate clouds after reset
  • clouds ready after reset
  • create post-reset target
  • bind post-reset target
  • render after a real device reset
  • headlight attenuation resources recreate after device reset
  • legacy rollback switch

CloudWeatherTests.h

Source: Tests/CloudWeatherTests.h

Cloud Weather Tests

Fixture: Cloud Volume tests
Case symbol: CloudWeatherTests
Source: Tests/CloudWeatherTests.h:50

Test
Cloud Weather Tests: startup convection is zero worldwide; longitude wraps across dateline; incomplete global image never publishes.
Source check messages (including original failure wording)

  • IEEE CRC32 known vector
  • startup convection is zero worldwide
  • prime meridian geography
  • east longitude orientation
  • north pole orientation
  • south pole orientation
  • longitude wraps across dateline
  • latitude clamps at polar row
  • incomplete global image never publishes
  • duplicate chunks do not republish
  • raw snapshot exact round trip
  • complete mip chain generated off thread
  • truncated header rejected
  • unsupported or malformed header rejected
  • RLE efficiently represents full-resolution uniform map
  • 4096x2048 RLE snapshot round trip
  • stale revision cannot replace latest
  • corrupt compressed snapshot cannot publish
  • initial map blends from black
  • receiver starts empty
  • worker publishes complete decoded image
  • reconnect discards previous server data
  • old worker job cannot publish after reset
  • C# interoperability fixture is present
  • split server snapshot stays unpublished
  • C# metadata decodes in C++
  • C# RLE cross-chunk fixture has exact expected convection pixels

NvidiaDepthCopyTests.h

Source: Tests/NvidiaDepthCopyTests.h

Run

Fixture: Cloud Volume tests
Case symbol: Run
Source: Tests/NvidiaDepthCopyTests.h:29

Test
Run: NVAPI lifetime test destination; NVAPI lifetime test replacement; steady frames do not register depth repeatedly.
Source check messages (including original failure wording)

  • NVAPI lifetime test source
  • NVAPI lifetime test destination
  • NVAPI lifetime test replacement
  • register and copy NVIDIA depth
  • reuse registered NVIDIA depth
  • steady frames do not register depth repeatedly
  • replace depth resources after resize
  • resize releases old NVIDIA registrations
  • device loss unregisters all NVIDIA resources
  • failed destination registration rolls back source
  • registration failure does not attempt a depth copy
  • driver copy failure is propagated
  • retry after driver failure
  • destruction unregisters resources before releasing them

SunPositionOverrideTests.h

Source: Tests/SunPositionOverrideTests.h

Sun Position Override Tests

Fixture: Cloud Volume tests
Case symbol: SunPositionOverrideTests
Source: Tests/SunPositionOverrideTests.h:4

Test
Sun Position Override Tests: SUN-1 preserves the current orbital matrix and light exactly; override retains solar distance; override retains solar disc size at both poles and opposite directions.
Source check messages (including original failure wording)

  • SUN-1 preserves the current orbital matrix and light exactly
  • override retains solar distance
  • override retains solar disc size at both poles and opposite directions
  • solar disc continues facing the observer after repositioning
  • SUN1 is overhead and SUN0 is below the planet at every location
  • visible sun and scene light agree on direction