OBJLoader2 loadMtl Does Not Accept Array Buffer
See original GitHub issueDescription 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
PR is now available!
@Mugen87 I will take care. I have some other smaller bug fixes available for
OBJLoader2
and will open a combined PR later.