obj-json-parser
v1.0.0
Published
A parser that takes OBJ and MTL files, and produces a JSON file with the data.
Downloads
1
Readme
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.