# three-obj-mtl-loader

> Threejs newest obj&mtl loader with npm dev

Latest version **1.0.3** (published 2018-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install three-obj-mtl-loader
pnpm add three-obj-mtl-loader
yarn add three-obj-mtl-loader
bun add three-obj-mtl-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-05-30 |
| First published | 2018-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | tomyl |
| Maintainers | tomyl |
| Keywords | objloader, mtlloader, three-objloader, threejs, three.js |

## Links

- npm: https://www.npmjs.com/package/three-obj-mtl-loader
- Repository: https://github.com/cs64188/three-obj-mtl-loader
- Issues: https://github.com/cs64188/three-obj-mtl-loader/issues
- npm.io page: https://npm.io/package/three-obj-mtl-loader

## Recent versions

- 1.0.3 (latest) — 2018-05-30
- 1.0.2 — 2018-05-30
- 1.0.1 — 2018-05-30
- 1.0.0 — 2018-05-30

## README

## three-obj-mtl-loader

[THREE.OBJLoader](https://threejs.org/examples/js/loaders/OBJLoader.js) repackaged as a node module

## install

`npm i --save three-obj-mtl-loader`

## usage

```js

import * as THREE from 'three'
import {MTLLoader, OBJLoader} from 'three-obj-mtl-loader'

let scene = new THREE.Scene()

let mtlLoader = new MTLLoader();

let objLoader = new OBJLoader();

mtlLoader.load('./test.mtl', (materials) => {
  materials.preload()
  objLoader.setMaterials(materials)
  objLoader.load('./test.obj', (object) => {
    scene.add(object)
  })
})

```

---
_Source: https://npm.io/package/three-obj-mtl-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
