nurbs999
nurbs999

Reputation: 87

ThreeJS GLTFExporter doesn't export PBR material maps

I have a simple Cube with a PBR Material. Used maps are color, metalness, roughness, bump. When I export the scene via this code, the exported glb is missing all maps but the color. Is this a bug in ThreeJS?

e = new THREE.GLTFExporter();

e.parse(STAGE.scene.mesh, (glb) => {
   let blob = new Blob([glb], { type: "application/octet-stream" });
   let d = document.createElement('a');
       d.href = window.URL.createObjectURL(blob);
       d.download = "orbis.glb"
       document.body.appendChild(d);
       d.click();
       document.body.removeChild(d);
}, {binary: true});

Upvotes: 0

Views: 993

Answers (1)

Sebastian Baltes
Sebastian Baltes

Reputation: 108

You should use different textures. The reason for this is the gltf specification:

Upvotes: 2

Related Questions