question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FBXLoader not loading multiple fbx models.

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

1reaction
looeeecommented, Aug 23, 2018

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.

1reaction
looeeecommented, Aug 23, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found