Skip to content

cs64188/three-obj-mtl-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

three-obj-mtl-loader

THREE.OBJLoader repackaged as a node module

install

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

usage

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)
  })
})

Sorry guys! This repo will never be updated, please check the newest version of three.js

About

Threejs newest obj&mtl loader with npm dev

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published