dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( '/src/gltf/' ); //copied all the decoders into local src folder
modelsLoader.setDRACOLoader( dracoLoader );
modelsLoader.load(`./assets/fullmodel_COMP.glb`, (glb) => {
man.add(glb.scene);
scene.add(man);
man.position.set(0, 0, 0);
man.scale.set(1, 1, 1);
})#
I have created this model and exported from blender with compression.
It works fine in http://gltf-viewer.donmccurdy.com/ @donmccurdy but it doesn’t render with this code and generated error as:
Please help