After fusion, only div will be displayed and translucent, so what should I do to hide plane
When do you want to hide the plane? If you want to hide it when it’s facing away from the camera you can use the CSS rule: backface-visibility: hidden;
https://developer.mozilla.org/en-US/docs/Web/CSS/backface-visibility
You can also hide it with
-
opacity: 0;
or -
display: none;
or -
transform: scale(0);
…
I mean, there are tons of ways of hiding things.
I mean hide the plane, but I can adjust the div translucent effect through css style
Can you see the four white corners of the plane.
mesh code is
var boardGeometry = new THREE.PlaneGeometry(120, 50);
var boardMaterial = new THREE.MeshBasicMaterial({
color: 0x000000,
opacity: 0.0,
transparent:true,
blending:THREE.NoBlending,
side: THREE.DoubleSide
});
var board = new THREE.Mesh(boardGeometry, boardMaterial);
board.name = "信息提示框"
board.position.x = position.x;
board.position.y = position.y;
board.position.z = position.z;
board.rotation.x = rotation.x;
board.rotation.y = rotation.y;
board.rotation.z = rotation.z;
board.uuid = device_data["wdId"]
board.castShadow = true;
board.receiveShadow = true;