three.js: FBXLoader not loading multiple fbx models.
Trying to load multiple fbx in a function, i try different ways to do that in same function, separate functions, same loader, different loaders, etc. but nothing seems to work and the result is same it only loads the first .fbx. This is the code that i have:
function loadModels(){
//model1
var loader1 = new THREE.FBXLoader();
loader1.load( 'models/model1.fbx', function ( model1 ) {
scene.add( model1 );
} );
//model2
var loader2 = new THREE.FBXLoader();
loader2.load( 'models/model2.fbx', function ( model2 ) {
scene.add( model2 );
} );
animate();
}
i’d made a post on stackoverflow and after some answers, i realize that its a problem on the last version released, because on the r93 and r94 i can load more than one object. This is a problem for me cause i need the animation too and in older version is not included.
Three.js version
- r95
Browser
- Chrome
OS
- macOS
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 15
Make a post on the forum and we can discuss this there: https://discourse.threejs.org
I’m closing this issue now since the original problem was solved.
@turkoz14 there’s nothing except for a camera in that file. As I already mentioned, the camera is unlikely to be an issue here. Please share a model that illustrates the bug.
Seems unlikely, since the cameras are not used by default. How about you make a version of the file with just one pipe or boiler, verify that it still has the problem, and share that?