lwo-parser
v1.1.3
Published
A simple parser for LWOB files
Downloads
5
Maintainers
Readme
lwo-parser
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);