# Airbus A320-214 (CFM56-5B4) Web Assets

Converted from the open-source FlightGear **A320-family** aircraft project under **GNU General Public License v2.0 (GPL-2.0)**.

## Upstream Provenance

- **Repository**: https://github.com/legoboyvdlp/A320-family
- **Branch / Commit**: `dev` @ `14194db43132ccf774083945007072a80a6b1adb`
- **Authors**: Josh Davidson (Octal450), Jonathan Redpath (legoboyvdlp), merspieler, Matthew Maring, Thorsten Herrmann, Semir Gebran, Nia, and FlightGear A320-family contributors
- **License**: [LICENSE-GPL-2.0.txt](./LICENSE-GPL-2.0.txt)

## Included Files & Modifications

- `a320.glb` — Classic A320-214 exterior (`A320-216.ac` + `CFM56.ac`) with wingtip fences (Sharklets and static ground elements excluded), clean SWISS (`SWR`) 2K/4K livery textures converted to WebP (`max 2048 px`), PBR metallic/roughness tuning, transparent cockpit windshield (`Windsheild`) and light lenses, meshopt-compressed. Coordinates transformed to Three.js Y-up, nose toward `-Z`, origin at JSBSim CG (`-2.4335, 0, -0.934` m).
- `a320-flightdeck.glb` — Complete 3D Airbus A320 flight deck (`fd_complete.ac` + `PFD1/PFD2/ND/ND_R/Upper-ECAM/Lower-ECAM/IESI` screen quads) aligned in the same CG aircraft frame, with helper `.axis` lines and HUD-plug geometry removed, WebP textures capped at `1024–2048 px`, dedicated screen materials (`Screen_*`), and meshopt compression.
- `a320-animations.json` — All exterior (`fuselage.xml`, `a320.cfm.xml`) and flightdeck (`a320.flightdeck.xml`) animations converted to the Three.js CG frame with resolved `.axis` vectors, interpolation tables, and condition trees.
- `a320-controls.json` — Cockpit pickable/knob controls, screen UV rectangles and world centers, FCU `<text>` positions, and Captain / First Officer / pedestal / overhead viewpoints converted to Three.js CG coordinates.

## Regenerating Assets

From the repository root:

```powershell
python tools/blender/a320_fetch.py
& 'C:/Program Files/Blender Foundation/Blender 5.2/blender.exe' -b -t 4 --python-exit-code 1 -P tools/blender/a320_flightgear.py
```
