FBXLoader not loading multiple fbx models.
See original GitHub issueTrying 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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15
Top Results From Across the Web
Loading multiple fbx - three.js - Stack Overflow
Fixed by replacing examples/js/loaders/FBXLoader.js to newer version ... Problem was that FBXLoader.js had exact same typing "FBXTree" for ...
Read more >FBX Loader not loading some FBX files - three.js forum
In this case my 3D model was never loaded from the FBX file, yet I am unsure why. I am currently using revision...
Read more >Three.js FBXLoader - 3D Game with Javascript - YouTube
5.3K views 1 year ago. 5,304 views • Aug 18, 2021. How to use FBXLoader in three.js projects using NPM - 3D Games...
Read more >FBX Loader - Three.js Tutorials - sbcode.net
For this exercise, you should download the character model named "Kachujin G Rosales" from Mixamo and save it into your ./dist/client/models folder. Save...
Read more >Loading Models - React Three Fiber Documentation
There are many types of 3D model extensions, in this page we will focus on loading the three most common ones: GLTF ,...
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
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.