Rise
The Vieneo Province
Loading...
Searching...
No Matches
Ship Surface Lighting11 tests

Checks ship light selection, flashing sequences and local surface illumination.

Subsystem: Rendering, shaders, textures and lighting
Fixture/harness: shipsurfacelighting11tests
Setup: The standalone ShipSurfaceLighting11Tests harness owns the inputs, local helpers and assertion sink used by the case files below. Graphics setup uses NativeUiTest11.

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

SceneShipLighting11Tests.h

Source: Tests/SceneShipLighting11Tests.h

Scene Ship Lighting Checks

Fixture: Ship Surface Lighting11 tests
Case symbol: SceneShipLightingChecks
Source: Tests/SceneShipLighting11Tests.h:4

Test
Scene Ship Lighting Checks: every bit in the 32-step sequence filters both nav and strobe lamps; sequence bit selects the matching source before transforms; nearby scene surfaces receive active lamps.
Source check messages (including original failure wording)

  • every bit in the 32-step sequence filters both nav and strobe lamps
  • sequence bit selects the matching source before transforms
  • nearby scene surfaces receive active lamps
  • distant scene batches reject all lamps on the CPU
  • 20 m nav range rejects a surface still inside 60 m strobe range
  • selection follows translated world bounds rather than model origin
  • rotated and translated bounds retain intersecting lights
  • unknown bounds conservatively retain local lights
  • off-phase lights never enter scene selection
  • only the four strongest relevant lamps reach a scene batch, including slot 31
  • bounds culling respects the exact finite lamp range
  • unlit terrain/building/paving stays dark
  • active nav light illuminates nearby scene geometry
  • scene illumination retains local range and authored color
  • scene surfaces flash with the active strobe phase
  • scene bulbs and strobes emit equally in every direction
  • strobe off phase immediately restores the nav-only scene
  • finite range prevents distant scene illumination
  • reverse-facing scene surfaces reject direct illumination
  • clearing the scene selection removes stale lights
  • activating a lamp never dims existing bright illumination on a shared scene batch
  • scene-light GPU timestamps are valid

ShipSurfaceLighting11Tests.cpp

Source: Tests/ShipSurfaceLighting11Tests.cpp

Entry-point checks

Fixture: Ship Surface Lighting11 tests
Case symbol: main
Source: Tests/ShipSurfaceLighting11Tests.cpp:23

Test
Entry-point checks: flash masks enable the correct emitters and exclude landing beams; power, ownship enable and sequence independently disable local lights; local lamp intensity follows electrical power.
Source check messages (including original failure wording)

  • flash masks enable the correct emitters and exclude landing beams
  • power, ownship enable and sequence independently disable local lights
  • local lamp intensity follows electrical power
  • omnidirectional bulbs do not require an emission axis
  • ownship sprites face the real camera and stay finite at zero distance
  • lamps retain their exterior pose and mounting offset
  • authored emitter count cannot overrun shader arrays
  • all hull-light pixels match the frozen native shaders exactly
  • vacuum without active lights stays dark
  • positioned nav light illuminates nearby hull in clear air and space
  • nav illumination is local and keeps the authored red color
  • strobe on-phase creates a visible localized flash
  • bulb and strobe surface illumination ignores the emitter axis
  • strobe off-phase immediately removes its hull illumination
  • back-facing hull surfaces receive no direct lamp light
  • bulbs and strobes illuminate receiving surfaces behind their mounting axis
  • light range rejects distant surfaces
  • clearing the lamp count prevents lighting leaking into later draws
  • all 32 light slots contribute without overrunning the dedicated buffer
  • reducing the light count removes stale array entries
  • both intact headlight lenses glow
  • destroyed lens loses its emission while the opposite lens remains lit
  • damaged lens receives half-brightness electrical output
  • flicker off uses the same lens pixels as a broken circuit
  • repair immediately restores headlight lens emission
  • remote and simulator materials preserve baseline emission
  • headlight damage cannot dim unrelated brakelight materials