I donot want model be wireframe:
here is my glb model:
here is the code:
basicsA = new THREE.Mesh(new THREE.PlaneBufferGeometry(0.1, 0.1),new THREE.MeshBasicMaterial({ wireframe: true,transparent: true, opacity:0.0,color:0xffffff }));
basicsA.position.set(0,0,0);
scene.add(basicsA);
loader.load( model_path, function ( gltf ) {
thismodel = gltf.scene;
thismodel.scale.set(1,1,1)
thismodel.position.set(0,0,0)
thismodel.traverse((node) => {
if (!node.isMesh) return;
**node.material.wireframe = false;**
node.material.needsUpdate = true;
});
basicsA.add( thismodel );
});
GLTFLoader
does not set wireframe
to true
. So setting the property to false
will obviously not fix this issue.
Do you mind sharing the glTF asset in this topic?
Not sure how the model was created (probably a scan) but your issue is not fixable with three.js
or any 3D engine in general.
The problem is that the model’s geometry has no continuous surface. Instead the triangles seem connected in a loose fashion.
It’s best to fix this issue during design time meaning before you export to glTF.
would you please to show me how see model in your way to see every face?i am a noob,show me a link or some code? thanks!
I’ve imported the model into https://gltf-viewer.donmccurdy.com/ and then just zoomed in.
thanks very much. i have solved this issue:)