Three.js: 3MFLoader: Add support for (embedded) textures.

Created on 21 Oct 2019  路  3Comments  路  Source: mrdoob/three.js

i load 3mf file

var loader2 = new ThreeMFLoader();
                console.log(loader2);
                loader2.load('./Pile.3mf', function (object) {
                    console.log(object.traverse);
                    object.quaternion.setFromEuler(new THREE.Euler(-Math.PI / 2, 0, 0));
                    //object.position.x = 0;
                    //object.position.y = -250;
                    //object.position.z = 0;
                    scene.add(object);
                    render();

                });

don't show 3md color and image

Enhancement Loaders

All 3 comments

Please use the the forum or stackoverflow for help request. If you can demonstrate a bug in the loader, we can reopen the issue.

Please ensure to share your 3MF model when you create a topic/thread at on of the recommended sites.

Some discussion in the forum revealed this is actually a valid feature request. 3MFLoader does currently not support textures which are embedded in the 3MF file. Here is an example:

Pile.3mf.zip

Diffuse textures are now supported by 3MFLoader. The support for specular textures is currently not doable since three.js interprets them differently than 3MF. More information here: https://github.com/mrdoob/three.js/pull/17806#issue-331934255

Was this page helpful?
0 / 5 - 0 ratings