Skip to content

Releases: frenchtoast747/webgl-obj-loader

Fix UMD/AMD mismatch.

23 Apr 20:58
Compare
Choose a tag to compare

Provider better support for requireJS/AMD imports.

Fix triangulation bug.

01 Nov 15:16
Compare
Choose a tag to compare

The triangulation of n-gons was not functionion properly (see #69).

Fix support for node.js

26 Oct 02:33
Compare
Choose a tag to compare

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

26 Oct 01:03
Compare
Choose a tag to compare

Simple bump to update dependencies with security issues and to ensure that filenames are normalized.

Add initial support for N-gons

17 Jan 05:55
Compare
Choose a tag to compare

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!

05 Dec 04:39
Compare
Choose a tag to compare

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.
  • Breaking change: the Layout class has changed from directly applying attributes to the Layout instance to creating an attributeMap

Added MTL parsing support

24 Nov 05:03
Compare
Choose a tag to compare

Added MTL parsing support

  • Modularized all of the source files into ES6 modules.
    • The Mesh, MaterialLibrary, and Material classes are now
      actual ES6 classes.
  • 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
  • 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.
    • 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.
  • The downloading functions now use the new fetch() API which utilizes
    promises.