obj-json-parser

1.0.0 • Public • Published

obj-parser

This is a NodeJS module that takes OBJ and MTL files (output from Maya, Blender ,etc.) and serializes the data to a JSON file.

The JSON file has the following schema:

{
  "vertices":      [...],
  "normals":       [...],
  "uvs":           [...],
  "specularPower": 96.5,
  "ambient":       [0, 0, 0],
  "diffuse":       [0.5, 0.5, 0.5],
  "specular":      [0.5, 0.5, 0.5],
  "alpha":         1
}

Some values may be missing from the JSON file, depending on what was provided by the OBJ and MTL files.

Readme

Keywords

Package Sidebar

Install

npm i obj-json-parser

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sdroadie