Hey dear guys,
since you urged + forced me (me, just a innocent threejs user), see #12903
I bravely followed you to use GLTF, and tried …
It looks, as if GLTFLoader.setPath() doesn’nt work …
The default “Blender Cube” should appear like this:
Compare to current “90dev” state:
Console.log: Failed to load resource: the server responded with a status of 404 (Not Found)
To verify the loading path, I’ve put in an additionally FileLoader request (which succeeds).
The fix could be, in GLTFLoader.js,
line 27, after
var path = this.path !== undefined ? this.path : THREE.LoaderUtils.extractUrlBase( url );
if ( this.path !== undefined ) url = this.path + url;
If you verify the fault, should I do a PR, or the author of GLTFLoader.js ?
BTW: Additionally I tried JSONLoader.setPath() which fails (member method not available) …
- maybe all loaders should behave accordingly in the same manner … ?
90dev, Chrome, Windows