# The glTF pipeline for Microsoft Flight Simulator

[![Microsoft Flight Simulator: aircraft over landscapes from around the world](https://pierabellaluca.com/assets/img/flight-simulator/msfs-hero-1440.jpg)](https://pierabellaluca.com/assets/img/flight-simulator/msfs-hero-full.jpg)

Microsoft Flight Simulator (2020). Image: Microsoft / Asobo Studio

Microsoft Flight Simulator came with an SDK, so third-party developers could add aircraft, airports and missions. Asobo Studio chose glTF, an open JSON format, to move 3D data between tools and its own engine. I worked on it as Senior Technical Artist, from 2019 to 2022.

Taking the job meant leaving my comfort zone: from Unity to a custom engine, from Maya to 3ds Max, from C# to Python and C++, from shaders to tools. My job was to watch how artists worked and remove what slowed them down.

![Schematic: 3ds Max scenes with containers and XRef go through the open source BabylonJS exporter to glTF with extensions, then into the Flight Simulator engine and SDK; MaxToolUpdater keeps every artist's exporter up to date](https://pierabellaluca.com/assets/img/flight-simulator/flight-simulator-gltf-pipeline.svg)

3ds Max to glTF to the engine and the SDK. Schematic.

What I built:

- support for 3ds Max Containers and XRef in the exporter, so large scenes could be split and reused, and animations exported separately from the model;
- tools for animations and LODs;
- a Python SDK for 3ds Max tools, with the UI separated from the logic, instead of the usual MaxScript: easier to maintain over years;
- MaxToolUpdater, a 3ds Max plugin with Perforce integration that updated exporters and scripts on every desktop. Before, updates were daily and manual;
- documentation, and more than 10 glTF extensions published in the SDK with their JSON schemas.

Along the way, 100+ commits went back to the open source BabylonJS exporter.

[Original project notes (2019)](https://pierabellaluca.com/work/archive/microsoft-flight-simulator)

## Problem

A flight simulator with a marketplace: internal teams and third-party developers all had to get aircraft, airports and scenery from 3ds Max into a custom engine, through one open format.

## What I did

Extended the open source BabylonJS glTF exporter (100+ commits), built the 3ds Max tools as a Python SDK, and a tool that kept every artist's exporters and scripts up to date.

## Result

The pipeline shipped with the 2020 game and its SDK, with more than 10 glTF extensions published with JSON schemas.

[![Microsoft Flight Simulator: a glider over Alpine meadows](https://pierabellaluca.com/assets/img/flight-simulator/msfs-glider-1440.jpg)](https://pierabellaluca.com/assets/img/flight-simulator/msfs-glider-full.jpg)[![Microsoft Flight Simulator: a small plane over Monument Valley at sunset](https://pierabellaluca.com/assets/img/flight-simulator/msfs-monument-valley-1440.jpg)](https://pierabellaluca.com/assets/img/flight-simulator/msfs-monument-valley-full.jpg)[![Microsoft Flight Simulator: an airliner cockpit above the clouds](https://pierabellaluca.com/assets/img/flight-simulator/msfs-cockpit-1440.jpg)](https://pierabellaluca.com/assets/img/flight-simulator/msfs-cockpit-full.jpg)

What the pipeline fed: the shipped game. Images: Microsoft / Asobo Studio

[Next case HoloLens for industry](https://pierabellaluca.com/work/hololens) [Book a call](https://cal.com/luca-pierabella/quick-chat)

## Let's talk.

Tell me about the pipeline, the workflow, the system, or the game. I answer every message myself.

- [hello@nephelos.com](mailto:hello@nephelos.com)
- [Book a call](https://cal.com/luca-pierabella/quick-chat)
- [LinkedIn](https://www.linkedin.com/in/luca-pierabella-93308413/)
- [GitHub](https://github.com/elpie89)

Luca Pierabella · Bordeaux, France

Writing: [Hectiq Devlog](https://hectiqgames.substack.com/)
