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

QGLBuilder.addTriangles limitations: Line element doesn't always work.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 5.7.0
    • 4.7.3
    • Qt3D
    • None

    Description

      Line element from Qt3D.Shapes 1.0 uses QGLBuilder.addTriangles() to create its geometry. Unfortunately there are some limitations according to the documentation of QGLBuilder:
      "The data is broken into groups of 3 vertices, each processed as a triangle."
      "If triangles has less than 3 vertices this function exits without doing anything. Any vertices at the end of the list under a multiple of 3 are ignored."
      "In the case of a degenerate triangle, where the cross-product is null, that triangle is skipped."
      In a word with these limitations, it isn't possible to create a simple line with 2 points, and in many cases the line will not be rendered with the expected behaviour.
      QGLBuilder.addTriangle should have an alternate raw mode to bypass these rules without having to provide normals (actual RAW mode)

      Attachments

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

        Activity

          People

            z35liu Zheng Liu (closed Nokia identity) (Inactive)
            sylv Sylv
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes