Having difficulty implementing the Fbx loader example code

Hi there,

I’m having difficulty implementing my own version of the FBXLoader included in the examples folder. I’ve pretty much copy-pasted the code provided here: three.js/webgl_loader_fbx.html at d4aa9e00ea29808534a3e082f602c544e5f2419c · mrdoob/three.js · GitHub

minus the stats code and I get the following error when I try to load the (provided in the example) model:
THREE.Object3D.add: object not an instance of THREE.Object3D.

Here is the code:

I would appreciate any help.

Thanks in advance,

Kind regards,

Erica.

for starters, check how you are loading the libraries.
If you are using jsm modules then use the three.module.js.
Also make sure you are loading the same versions.
In your example you are mixing r77 with r128

1 Like

Thank you, using the same versisons of three fixed it!

1 Like