Skip to content

usco/usco-obj-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usco-obj-parser

GitHub version

obj format parser for USCO project

originally based on THREE.js CTM parser, but rather extensively modified. (not dependenant, or using three.js anymore)

Optimized for speed in the browser (webworkers etc)

General information

  • returns raw buffer data wrapped in an RxJs observable (soon to be most.js)
  • useable both on Node.js & client side

Usage

      import parse,  {outputs} from '../lib/obj-parser'

      let data = fs.readFileSync("mesh.obj",'binary')

      let objObs = parse(data) //we get an observable back

      objObs.forEach(function(parsedGeometry){
        //DO what you want with the data wich is something like {vertices,normals,etc}
        console.log(parsedGeometry) 
      })

TODO:

  • full attributes support (normals, uvs)

LICENSE

The MIT License (MIT)


Build Status Dependency Status devDependency Status

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published