I used npm to download the node_modules of three.js and I am referencing the folders I want to use in my HTML file like this -
<script src="node_modules\three\build\three.min.js"></script>
<script src="node_modules\three\build\three.cjs"></script>
<script src="node_modules\three\build\three.module.js"></script>
<script src= "node_modules\three\examples\js\loaders\GLTFLoader.js"></script>
<script src = "node_modules\three\examples\js\controls\OrbitControls.js" > </script>
<script src = "node_modules\three\examples\jsm\loaders\FBXLoader.js"> </script>
In my javascript file, I am trying to load a model I downloaded from Mixamo like this
let FBX_Loader = new THREE.FBXLoader();
FBX_Loader.load('test.fbx', function(model){
model.position.y = 0;
model.position.x = 0;
model.position.z = 2.8;
model.scale.set(300,300,300);
scene.add(model);
animate();
});
This is not working for me. My GLTF.Loader works fine in loading my models in my Javascript file.
It’s just the FBX loader that isn’t working and I am not sure why that is the case. I tried decreasing or increasing the scale or changing the position values but that didn’t work. Could it be that I am referencing the wrong folder for the FBX loader? Could somebody here be able to give me directions on what else I can do to troubleshoot? Thanks!