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

QSGGeometry with GL_POINTS are not drawn with OpenGL ES

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.4.2
    • Fix Version/s: None
    • Component/s: Quick: SceneGraph
    • Labels:
      None
    • Environment:
      boot2qt image for BOundary Devices i.MX6

      Description

      A QSGNode with a QSGGeometry using GL_POINTS , and setting lineWidth() is rendered correctly with OpenGL Desktop, but does not render anything when running with OpenGL ES. Replacing GL_POINTS with GL_LINE_STRIP fixes the issue (but obviously changes behavior):

      
      

      This seems to be because OpenGL ES does not support glPointSize. E.g.

      http://stackoverflow.com/questions/9671021/gldrawarraysgl-points-0-4-does-not-draw-points-in-ios-5-0-and-opengl-es-2-0

      indicates that one should rather set gl_PointSize in the shader, instead, but the Scene Graph Renderer does not seem to support this.

      Ideally QSGRendererNode would handle this, or at least the documentation should be updated to mention this limitation.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sletta Gunnar Sletta
            Reporter:
            kkohne Kai Köhne
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes