3

What is the difference between ColladaLoader.js and ColladaLoader2.js given by Mr.Doob in examples/ folder of GitHub?

Does one have an advantage over the other?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250

1 Answers1

4

I suppose you are referring to mrdoob three.js JavaScript 3D library.

Its examples/js/loaders folder do include a ColladaLoader.js and a ColladaLoader2.js file.

Note that there was an issue with the first one (see issue 7388): use the one from the dev branch: dev/examples/js/loaders/ColladaLoader.js

As mentioned in issue 7256:

the current ColladaLoader is out of control.
I've started a new ColladaLoader2 from scratch in the dev branch.

So the 2 is a re-implementation of the first one.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    So that means the second is actually the one to go with? Why didn't they fix the first one instead? @VonC – LinusGeffarth Sep 04 '17 at 18:07
  • 1
    @LinusGeffarth Yes, and it is still actively maintained: https://github.com/mrdoob/three.js/commit/291ab8808a2f79f894c3330998dd4ef2188da5ac – VonC Sep 04 '17 at 19:15