feat(flights): aircraft draw life-size fleet models chosen by type

Flights, Military Flights and Local ADS-B draw each aircraft with the fleet
model its ICAO type, class or emitter category selects, scaled to the type's
length, built from the up-front loaded bytes. The eight third-party aircraft
models and their attribution are removed; every shipped model is now the
project's own.
This commit is contained in:
Sameh Khamis committed 2026-11-13 07:16:25 -08:00
1 parent f6760ad96c
commit fcc44d0eaf
45 files changed
+970 -1371

No files matched your search

+15 -4
View File
@@ -12,6 +12,15 @@ import {
localAdsbReceiverLine,
localAdsbStatus,
} from './index.js';
import { loadFleetModelSet } from '../../data/fleetModels.js';
import { aircraftLayerModelSpec } from '../flights/modelSpec.js';
import { fetchPublicFile } from '../../testSupport/fleetGlb.mjs';
// The layer draws models only once the fleet model set has loaded; load it from disk.
const realInfo = console.info;
console.info = () => {};
await loadFleetModelSet({ fetchImpl: fetchPublicFile });
console.info = realInfo;
function fakeReceiver(initial = {}) {
const state = {
@@ -529,12 +538,14 @@ test('the DISPLAY 3D toggle gives local aircraft magenta class models', async (t
await layer.update();
assert.equal(loads.length, 1);
const [model] = loads;
const spec = aircraftLayerModelSpec({ category: 'A7' });
assert.equal(
model.url,
'/models/bell206.glb',
'the Flights helicopter model',
model.basePath,
'/models/fleet/helicopters/generic_heli.glb',
'the Flights rotorcraft model',
);
assert.equal(model.scale, 1);
assert.ok(model.gltf instanceof Uint8Array, 'built from the loaded set');
assert.equal(model.scale, spec.scale, 'drawn life size');
assert.equal(model.id, 'local-adsb:a0b702');
assert.ok(
Cesium.Color.equals(