Hello,
I recently changed the three.js version from 124 to 131 and suddenly the fbx models do not show their usual textures like cloths.
May anyone tell me if what might have changed?
Thanks in advance.
This is a regression in r131
. It will be fixed with the next release. Here is the respective issue for more details:
opened 03:32PM - 06 Aug 21 UTC
closed 10:36AM - 07 Aug 21 UTC
Loaders
FBXLoader doesn't load textures,
I tried swapping out the threejs lib in the no… de modules to an older one (a month old) and it works,
so some update happened which either broke it or changed the way it works?
Import:
`import { FBXLoader } from "three/examples/jsm/loaders/FBXLoader";`
Code:
```
loadFBXModel(path, modelFile, pos = [0, 0, 0], size = 0.1) {
const loader = new FBXLoader();
loader.setPath(path);
loader.load(modelFile, (fbx) => {
fbx.scale.setScalar(size);
fbx.traverse((c) => {
c.castShadow = true;
});
fbx.position.copy(new THREE.Vector3(...pos));
this._scene.add(fbx);
});
}
```
how it is with older version:
<img width="136" alt="image" src="https://user-images.githubusercontent.com/54670936/128532439-b4fb84f5-c87a-445b-8d34-d33086cbc46e.png">
how it is in the current version:
<img width="125" alt="image" src="https://user-images.githubusercontent.com/54670936/128532623-39c0a5d0-a785-4dec-a204-7f5f788dabe3.png">
1 Like
Thanks Mugen,
I switched to r130 and the textures are where they belong.