Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.9.0
-
Emscripten 3.1.70, Mozilla Firefox 137.0, Windows 10 22H2
-
-
e10413a7e (dev), 4fb3e601c (6.9)
Description
In the code below, panning the camera around causes depth-fighting in WASM but not in Windows. Uncommenting the code in SceneEnvironment causes the same phenomenon on Windows as expected.
Code
import QtQuick import QtQuick3D import QtQuick3D.Helpers Window { id: root width: 640 height: 480 visible: true View3D { id: view3D anchors.fill: parent camera: PerspectiveCamera { id: perspectiveCamera position: Qt.vector3d(0, 10, 200) eulerRotation: Qt.vector3d(0, 0, 0) } environment: SceneEnvironment { oitMethod: SceneEnvironment.OITWeightedBlended // <-- Has no effect in WASM } OrbitCameraController { anchors.fill: parent origin: rootNode camera: perspectiveCamera } DirectionalLight { color: "white" eulerRotation: perspectiveCamera.eulerRotation } Node { id: rootNode Repeater3D { id: meshRepeater model: [ { mesh: "#Sphere", color: Qt.rgba(255/255,100/255,100/255, 1.0), position: Qt.vector3d(-20, 0, 0), depth: 10}, { mesh: "#Sphere", color: Qt.rgba(100/255,255/255,100/255, 1.0), position: Qt.vector3d(0, 0, 20), depth: 20}, { mesh: "#Sphere", color: Qt.rgba(100/255,100/255,255/255, 1.0), position: Qt.vector3d(20, 0, 0), depth: 30}, ] delegate: Model { source: modelData.mesh scale: Qt.vector3d(1, 1, 1) position: modelData.position materials: [ DefaultMaterial { diffuseColor: modelData.color opacity: 0.5 } ] } } } } }