Repository navigation
Which 3D formats Mission Analyzer reads, and why #18
Mission-analyzer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
To place your own object on the scene (an aircraft on a stand, a vehicle, a monument, a mast), you need a 3D model. There are many formats, and almost every one comes with its own history, limits and pitfalls. Here is a short overview of the main formats and why the program works the way it does.
Formats by year
A note on X-Plane: its
.objis Laminar Research's own format and has nothing in common with Wavefront OBJ except the file extension. The program does not read X-Plane models.What we chose
The main format is GLB (glTF 2.0). One file holds the geometry, materials and textures. Units and axes are unambiguous: the model lands on the scene at the right size and doesn't lie on its side. The format is open, so there is no risk of a licence change or a closed SDK. Blender, SketchUp, 3ds Max and almost everything else export GLB. Microsoft Flight Simulator models live in glTF too.
OBJ is supported for compatibility. It is the most common format in free model libraries, so the program reads it: together with the .mtl and textures, with a choice of units (mm, cm, m or any multiplier such as ×10) and up axis (Y or Z). But if you have the choice, use GLB.
FBX, STL, 3DS, COLLADA and USD are not read. FBX is closed, STL has no colour or textures, and the rest are outdated or overkill. Any of them converts to GLB in Blender in a minute: File → Import, then File → Export → glTF 2.0 (.glb).
What the program does itself — our own layer on top of the standard
We did not invent our own 3D format: models stay in GLB or OBJ, and any editor can open them. What is ours is what the program does with them.
.name.tag.npzfile). Parsing a large OBJ in Python takes up to a minute; from the cache the model loads instantly. If the model file changes, the cache is rebuilt by itself.mission-analyzer-3dpackage: an ordinary .zip with anaddon.jsonfile, holding the models and their placement (coordinates, azimuth, scale). It works like scenery packages in Flight Simulator: one file, and another user gets the same objects on their scene as you have.In short
Making a model yourself — export to GLB, in metres. Downloaded an OBJ — it will work too, just set the units and the axis. FBX and STL — convert them to GLB in Blender first.
(c) Serhii Horbachevskyi, s.gorbi@gmail.com
All reactions