Description of the problem
Self-explanatory based on title. This is a fairly dated iOS version at this point, but the FBX example silently fails to load: https://threejs.org/examples/webgl_loader_fbx.html (just doesn’t do anything… no errors reported)
There’s no issue with the OBJ loader, or other examples, though: https://threejs.org/examples/webgl_loader_obj.html
Three.js version
- Dev
- r94
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
- Safari
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS (9.3)
Hardware Requirements (graphics card, VR Device, …)
Tested on iOS Simulator, can also test on a real device as I have an iPhone 4s lying around here somewhere. (but there’s probably no difference)
I happened to have a iPod Touch laying around and I was able to debug this a bit.
This is the line that breaks:
https://github.com/mrdoob/three.js/blob/dev/examples/js/loaders/FBXLoader.js#L3712
Apparently,
Uint8Array
doesn’t haveindexOf()
in Safari 9.