Releases: frenchtoast747/webgl-obj-loader
Releases · frenchtoast747/webgl-obj-loader
Fix UMD/AMD mismatch.
Provider better support for requireJS/AMD imports.
Fix triangulation bug.
The triangulation of n-gons was not functionion properly (see #69).
Fix support for node.js
Webpack 4's UMD output would, for some reason, dump window
as the global object by default. This updates the webpack config to dump a check instead of blindly using window
.
Ensure material map filenames are normalized
Simple bump to update dependencies with security issues and to ensure that filenames are normalized.
Add initial support for N-gons
Provides support for N-gons using an elementary triangulate method. Any help for a more advanced triangulate method would be greatly appreciated!
Convert to TypeScript!
2.0.2
- Updated to TypeScript
- Breaking change: the Mesh option
indicesPerMaterial
has been removed in favor of always providing the indices per material.- Instead of
mesh.indices
holding an array of arrays of numbers,mesh.indicesPerMaterial
will now hold the indices where the top
level array index is the index of the material and the inner arrays are the indices for that material.
- Instead of
- Breaking change: the Layout class has changed from directly applying attributes to the Layout instance to creating an attributeMap
Added MTL parsing support
Added MTL parsing support
- Modularized all of the source files into ES6 modules.
-
- The Mesh, MaterialLibrary, and Material classes are now
actual ES6 classes.
- The Mesh, MaterialLibrary, and Material classes are now
- Added tests for each of the classes
-
- Found a bug in the Mesh class. Vertex normals would not appear
if the face declaration used the shorthand variant; e.g.f 1/1
- Found a bug in the Mesh class. Vertex normals would not appear
- Provided Initial MTL file parsing support.
-
- Still requires Documentation. For now, have a look at the tests in the
test directory for examples of use.
- Still requires Documentation. For now, have a look at the tests in the
-
- Use the new downloadModels() function in order to download the OBJ meshes
complete with their MTL files attached. If the MTL files reference images,
by default, those images will be downloaded and attached.
- Use the new downloadModels() function in order to download the OBJ meshes
- The downloading functions now use the new
fetch()
API which utilizes
promises.