lwo-parser

1.1.3 • Public • Published

lwo-parser Build Status Coverage Status

LWO parser is simple parser for Lightwave Object files originally intended to support models used in LEGO Rock Raiders (LRR). LWO parser does only one thing: parse binary LWO files. It does not do anything with the data other than constructing a much simpler to use JavaScript object.

Installation

npm install --save lwo-parser

Usage

LWO parser is written for Node.js using Buffer but can easily be adapted to work for web by bundling it with webpack along with feross/buffer.

// When bundling for web include Buffer in the global scope.
window.Buffer = require('buffer/').Buffer;
const lwo = require('lwo-parser');
 
// Retreive a buffer for a file ...
 
const object = lwo.parseBuffer(buffer);

References

LightWave 3D Object File Format

Package Sidebar

Install

npm i lwo-parser

Weekly Downloads

0

Version

1.1.3

License

MIT

Last publish

Collaborators

  • marcbizal