Chevron Down
Table of Contents
Chevron DownAPI Reference

OBJLoader

The OBJLoader parses the OBJ half of the classic Wavefront OBJ/MTL format.

LoaderCharacteristic
File Extension.obj
File TypeText
File FormatWavefront OBJ file
Data FormatMesh
Decoder TypeSynchronous
Worker Thread SupportYes
Streaming SupportNo

Usage

import {OBJLoader, OBJWorkerLoader} from '@loaders.gl/obj';
import {load} from '@loaders.gl/core';

// Decode on main thread
const data = await load(url, OBJLoader, options);
// Decode on worker thread
const data = await load(url, OBJWorkerLoader, options);

Options

OptionTypeDefaultDescription