Skip to main content

Text mesh format

Move simple geometry into a shared mesh path.

The OBJ module reads Wavefront geometry and writes it back as text, exposing positions, normals, texture coordinates, and faces in the mesh shapes used by loaders.gl applications.

The mesh path

Parse text. Reuse the geometry.

OBJ is intentionally straightforward: the module focuses on the geometry payload and returns a mesh representation that can feed rendering, conversion, or Arrow-based processing.

Read

Vertices, normals, texture coordinates, and faces

Shape

Mesh objects or Mesh Arrow tables

Write

Compatible mesh data back to OBJ text

Boundary

MTL material workflows remain a separate concern

The @loaders.gl/scene/obj module handles the Wavefront OBJ format, a simple ASCII format that defines 3D geometries as vertices, normals and faces.

Detailed guide

OBJ module reference

The sections below cover installation, loader and writer entry points, and the source attribution for the parser.

Installation​

npm install @loaders.gl/scene
npm install @loaders.gl/core

Loaders and Writers​

Loader or WriterDescription
OBJLoaderLoads OBJ meshes as Mesh objects or Mesh Arrow tables.
OBJWriterWrites Mesh or Mesh Arrow table data as OBJ text.
MTLLoaderReads Wavefront material libraries referenced by OBJ files.

Attribution​

OBJLoader is a port of three.js's OBJLoader under MIT License.

Sources and credits​

See the package source and license inventory and the project-wide Attributions and Credits.