# @calvinscofield/three-loaders

> Threejs loaders plugin, ES6.

Latest version **1.0.5** (published 2018-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @calvinscofield/three-loaders
pnpm add @calvinscofield/three-loaders
yarn add @calvinscofield/three-loaders
bun add @calvinscofield/three-loaders
```

## 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.5 |
| Published | 2018-08-31 |
| First published | 2018-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 33.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | calvinscofield@gmail.com |
| Maintainers | calvinscofield |
| Keywords | three, loaders |

## Links

- npm: https://www.npmjs.com/package/@calvinscofield/three-loaders
- Repository: https://github.com/calvinscofield/three-loaders
- Homepage: https://github.com/calvinscofield/three-loaders#readme
- Issues: https://github.com/calvinscofield/three-loaders/issues
- npm.io page: https://npm.io/package/@calvinscofield/three-loaders

## Dependencies (1)

- [three](https://npm.io/package/three.md) ^0.94.0

## Recent versions

- 1.0.5 (latest) — 2018-08-31
- 1.0.4 — 2018-08-31
- 1.0.3 — 2018-08-31
- 1.0.2 — 2018-08-31

## README

### Usage

```js
npm i @calvinscofield/three-loader -S
import { OBJLoader, MTLLoader } from '@calvinscofield/three-loaders'
new OBJLoader()
  .load('model/penlin.obj', (object) => {},
  (xhr) => {
    console.log((xhr.loaded / xhr.total * 100) + '% loaded')
  },
  (error) => {
	  console.log(error, 'An error happened')
  })

new THREE.MTLLoader()
  .setPath('models/obj/male02/')
  .load('lqfy.mtl', function (materials) {
    materials.preload()
    new THREE.OBJLoader()
      .setMaterials(materials)
      .setPath('models/obj/male02/')
      .load('lqfy.obj', (object) => { scene.add( object )},
      (xhr) => { console.log((xhr.loaded / xhr.total * 100) + '% loaded') },
      (error) => { console.log(error, 'An error happened') })
  })
```

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