The OBJ data path
Parse familiar text into a portable mesh shape.
OBJ keeps the source easy to inspect and edit, while the loader resolves its separate attribute streams and face references into data that renderers and Arrow-based tools can consume.
Geometry
Vertices, normals, UVs, colors, and faces
Materials
Optional MTL references are recognized at the loader boundary
Output
Mesh objects or Mesh Arrow tables
Write
Encode compatible mesh data as OBJ text
Detailed guide
OBJ structure and APIs
The reference below covers the file layout, loaders, writers, mesh output, materials, and implementation limits.
Loaders and Writers
| Characteristic | Value |
|---|---|
| File Format | Wavefront OBJ |
| Data Format | Mesh, Mesh Arrow table |
| File Extension | .obj |
| MIME Type | Not standardized |
| File Type | Text |
| Loader Decoder Type | Synchronous |
| Loader Worker Thread | ✅ Yes |
| Loader Streaming | ❌ No |
| Writer File Type | Text |
| Writer APIs | encode, encodeSync, encodeTextSync |
Mesh Data
OBJ files describe mesh geometry through vertex positions, texture coordinates, normals, and face indices. OBJLoader returns Mesh Arrow tables by default, or legacy Mesh objects when obj.shape: 'mesh' is selected.
Materials
OBJ files are commonly paired with MTL files for material definitions. loaders.gl's OBJ support focuses on geometry data.