File: OBJLoader.md | Updated: 11/15/2025
A loader for the OBJ format.
The OBJ format is a simple data-format that represents 3D geometry in a human readable format as the position of each vertex, the UV position of each texture coordinate vertex, vertex normals, and the faces that make each polygon defined as a list of vertices, and texture vertices.
const loader = new OBJLoader();
const object = await loader.loadAsync( 'models/monster.obj' );
scene.add( object );
OBJLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { OBJLoader } from 'three/addons/loaders/OBJLoader.js';
Constructs a new OBJ loader.
manager | The loading manager.
---|---
A reference to a material creator.
Default is null.
Starts loading from the given URL and passes the loaded OBJ asset to the onLoad() callback.
url | The path/URL of the file to be loaded. This can also be a data URI.
---|---
onLoad | Executed when the loading process has been finished.
onProgress | Executed while the loading is in progress.
onError | Executed when errors occur.
Overrides: Loader#load
Parses the given OBJ data and returns the resulting group.
text | The raw OBJ data as a string.
---|---
Overrides: Loader#parse
Returns: The parsed OBJ.
Sets the material creator for this OBJ. This object is loaded via MTLLoader.
materials | An object that creates the materials for this OBJ.
---|---
Returns: A reference to this loader.