question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OBJLoader2 loadMtl Does Not Accept Array Buffer

See original GitHub issue
Description of the problem

OBJLoader2 .loadMtl docs state content is text or array buffer, however array buffer is not supported. _loadMtl function in OBJLoader2 calls the following:

processMaterials(Validator.isValid(resource.content) ? mtlLoader.parse(resource.content) : null);

mtlLoader.parse doesn’t take an array buffer, just text.

Three.js version

r92

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kaisalmencommented, May 10, 2018

PR is now available!

1reaction
kaisalmencommented, May 7, 2018

@Mugen87 I will take care. I have some other smaller bug fixes available for OBJLoader2 and will open a combined PR later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WWOBJLoader/CHANGELOG.md at main - GitHub
OBJLoader2Parallel is no longer using WorkerTaskDirector , but only using the generic ... OBJLoader2.parse method accepts arraybuffer or string as input.
Read more >
Three.js + TypeScript + MTL + OBJ + MTL + WTF
It describes a problem, which is that all of the Loader classes use BufferGeometry, which does not allow for the changes we need...
Read more >
Cannot get the value of an ArrayBuffer Object in Javascript
I have an ArrayBuffer object that I need to be able to convert to String to JSON , but I can't get the...
Read more >
ArrayBuffer - JavaScript - MDN Web Docs
Chrome Edge ArrayBuffer Full support. Chrome7. Toggle history Full support. Edge12. Tog... @@species Full support. Chrome51. Toggle history Full support. Edge13. Tog... ArrayBuffer() constructor Full support....
Read more >
Three.js Loading a .OBJ File
OBJ file we create an instance of OBJLoader2 , pass it the URL of our .OBJ file, and pass ... If not it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found