Having an issue on my M1 Mac with Chrome, where my scene appears like https://i.sstatic.net/tWckT.png. However, it looks fine in Safari or Firefox https://i.sstatic.net/9TJvQ.png
The problem seems to be related to the rendering of walls. Here is my code:
const wallMaterial = new THREE.MeshStandardMaterial({
color: color,
side: THREE.DoubleSide,
precision: "highp",
});
And here is the code for rendering materials:
if (item3d instanceof THREE.Mesh) {
item3d.material.opacity = item.opacity;
item3d.material.transparent = true;
item3d.material.polygonOffset = false;
item3d.material.polygonOffsetFactor = 5.0;
item3d.material.polygonOffsetUnits = 5.0;
item3d.material.side = THREE.DoubleSide;
item3d.material.precision = "highp";
item3d.userData.initColor = item3d.material.color?.getHex();
}
If I include transparent: true
in MeshStandardMaterial
, the rendering of walls improves but object interaction suffer as shown in this image https://i.sstatic.net/nqYWF.png