From Maya ASCII to a single GLB file
A .ma file is Maya's text scene format: a long script of node and attribute commands that only
Maya replays. GLB, the binary form of glTF 2.0, is its opposite: one self-contained file with
the meshes, materials and pictures that web viewers, three.js, Babylon.js, Godot, Unity and Blender
load directly. The conversion here reads the .ma text as data (nothing in it is run), rebuilds
the scene and writes the GLB.
What ends up in the GLB
- Meshes in metres, as glTF requires, with normals that keep Maya's hard edges, up to two UV sets and vertex colours.
- Materials in glTF's metal and roughness model: Standard Surface and Arnold materials map across directly; Lambert, Blinn and Phong get their colour, opacity and a roughness worked out from their specular settings. Transparent materials use alpha blending, emission over full brightness uses the emissive strength extension.
- Textures: colour, emission and tangent-space normal maps, packed into the file when you
upload the scene together with its pictures in a
.zip. JPEG and PNG pictures go in as they are; TGA, TIFF, PSD, BMP and DDS are converted to PNG. - Cameras and lights (point, spot and directional, via the KHR_lights_punctual extension).
- Skins and animation: joints with the four strongest weights per vertex, and keyframes of objects and joints sampled once per frame.
ASCII scenes and construction history
ASCII files written by scripts or test suites often hold a mesh only as its history: a
polySphere or polyCube node feeding the shape. Those primitives are rebuilt with Maya's own
vertex order, so tweaks saved on top of them land on the right points. Combines, transform
steps, smoothing, deleted faces and soft or hard edge steps are replayed too. Extrusions, splits
and bevels are not: the result page names each step it had to skip, and the shape comes out as
it was before that step.
Checking the result
Drop the GLB into any online glTF viewer to look at it before using it. If textures are missing, the result page lists the file names the scene expects; add them to the ZIP and convert again.
More about what this tool reads and writes: Maya Scene Converter (MB and MA to FBX, GLB, OBJ, STL).