Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104941

Rendering issue when using 2D mesh in Scatter3D



    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.15.2, 6.3.1
    • Data Visualization
    • None
    • Windows 10 x64 / Kubuntu 22.04 (X11)
      GPU: AMD Rx480
    • Linux/X11, Windows


      I have noticed an issue when using QAbstract3DSeries::MeshPoint in Scatter3D under both Windows and Linux (Ubuntu/X11). Based on the example here, I have made a minimal working example:

      import QtQuick
      import QtQuick.Window
      import QtDataVisualization
      Window {
          width: 640
          height: 480
          visible: true
          Scatter3D {
              anchors.fill: parent
              Scatter3DSeries {
                  mesh: Abstract3DSeries.MeshPoint // This causes trouble
                  ItemModelScatterDataProxy {
                      itemModel: dataModel
                      // Mapping model roles to scatter series item coordinates.
                      xPosRole: "xPos"
                      yPosRole: "yPos"
                      zPosRole: "zPos"
          ListModel {
              id: dataModel
              ListElement{ xPos: "2.754"; yPos: "1.455"; zPos: "3.362"; }
              ListElement{ xPos: "3.164"; yPos: "2.022"; zPos: "4.348"; }
              ListElement{ xPos: "4.564"; yPos: "1.865"; zPos: "1.346"; }
              ListElement{ xPos: "1.068"; yPos: "1.224"; zPos: "2.983"; }
              ListElement{ xPos: "2.323"; yPos: "2.502"; zPos: "3.133"; }

      You can find screen shots of the results in the attachments. In Windows, the points are interfering with the wall, even when the axes are setting the range automatically. In Linux, the points are rendered as squares (should be circles?). Also they are casting shadows, even though they should not?

      Let me know if this should be filed as separate bugs for Windows and Linux.


      Edit: The screen shots are taken using PySide because it was easier for me to test under different Qt versions. I discovered the issue while using C++ and Qt 6.3.1


        1. GPU.PNG
          113 kB
        2. scattertest.zip
          1.0 kB
        3. Ubuntu PySide2.png
          Ubuntu PySide2.png
          60 kB
        4. Ubuntu PySide6.png
          Ubuntu PySide6.png
          59 kB
        5. Windows PySide2.png
          Windows PySide2.png
          40 kB
        6. Windows version.txt
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            tokorpip Tomi Korpipää
            jirauser60745 user-fdd67 (Inactive)
            0 Vote for this issue
            2 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes