DracoLoader not load texture

Hello,

i have a problem witha GLB file. If a export the file compress with DRACO from Blender with the UV Map, then when i load in threejs the parts with UV do not appear.

Without Draco:

With Draco

con draco

here the code:

var loader = new THREE.GLTFLoader(manager);
THREE.DRACOLoader.setDecoderPath( ‘modelos/draco/gltf/’ )
loader.setDRACOLoader( new THREE.DRACOLoader() );

loader.load(MODEL_PATH_75,

function (gltf) {

theModel_75 = gltf.scene;

txt = new THREE.TextureLoader().load(“textura/madera.png”);
new_mtl = new THREE.MeshBasicMaterial( { map: txt } );

cambiarMaterialBandeja(theModel_75,new_mtl);

scene.add(theModel_ribet_75)

Any Idea?

I believe this was a problem in older versions of Blender, do you know which version you’re using here?

Another option would be to export without compression, then add compression afterward with something like the https://gltf.report/ script editor.

With new version runs ok.

Thanks.

1 Like