three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Issue with OBJMTLLoader

Open jeum opened this issue 13 years ago • 3 comments

Hi

First I would have a novice's question (sorry ...) : I have projects that were loading a previous version (58), and 3 monthes later I realize that they don't work anymore (Error creating WebGL context.) although the page's code has not been changed ...

Do you recommand to continualy update the scripts with their last version ? (the problem with Github is that it doesn't always work, so I should host the scripts somewhere else)

Now the issue concerns the latest version (61) : OBJMTLLoader.js doesn't supports onLoad (TypeError: onLoad is not a function - line 46), that is the message I get with this demo : http://jeum.github.io/booklab/Sab&Dav&coHouse_old.html

Thanks in advance

jeum avatar Oct 03 '13 12:10 jeum

As stated in the guidelines, help requests should be directed to stackoverflow. This board is for bugs and feature requests.

Tip: Look at the three.js example for the proper loader signature.

WestLangley avatar Oct 03 '13 13:10 WestLangley

Just check out the three.js examples for the loader. The load()-call has changed and you will have to adopt your code to the required structure.

GuyGood avatar Oct 03 '13 14:10 GuyGood

Ok, I had not imagined that the load()-call had changed (it's simpler now), thanks a lot.

jeum avatar Oct 03 '13 14:10 jeum