I'm using three.js and dat.gui to build an interface to modify the transparency of some loaded json objects.
I used all the needed options for the material creation:
mesh = new THREE.Mesh(geometry, new THREE.MeshLambertMaterial( {
//map : texture,
opacity:0.95,
color: Math.random() * 0xffffff ,
specular: 0x009900,
shininess: 0.2,
shading: THREE.SmoothShading,
doubleSided:false,
depthWrite:true,
transparent: true,
needsUpdate: true
} ));
I'm able to modify opacity using dat.gui, but one of the object loaded seems to not have real transparency. Instead it leaves black holes on the surface of other objects when I set the opacity to 0.
I'll leave two screenshots.
https://i.stack.imgur.com/lxAZQ.png
https://i.stack.imgur.com/iWzch.png
Could you help me to understand how to resolve this problem?