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

Support particle shape from data

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3.0 Feature Freeze
    • Component/s: Quick: 3D
    • Labels:
      None
    • Story Points:
      5
    • Commits:
      b8f90232b38413a13718644aa3ef45f2ee225e29
    • Sprint:
      Qt Quick 3D - 2021 Week 15/16, Qt Quick 3D - 2021 Week 17/18, Qt Quick 3D - 2021 Week 31/32

      Description

      Consider supporting ParticleShape3D class with positions defined in data file. So something like:

       

      ...
      shape: ModelShape3D {
       source: "my_torus.cbor"
       random: false
      }
      ... 
      

      Some thoughts:

      • Format could be CBOR similar to timeline binary keyframes. Just a set of QVector3D positions or something more (sizes, colors etc.)?
      • Have "bool random" property which defines if positions are used randomly or in order of appearance. Supporting in-order gives possibility to sort the data so that emitting happens e.g. from top to bottom, from outside-in etc.
      • What kind of helper app could we provide for generating the data? It could allow generating n amount of points from current shapes or a model mesh. Then as a second step it could allow ordering the data based on some direction & smoothing.
      • Emitting from this kind of shape would be very fast compared to live calculation of positions from more complicated shape/model.

       

        Attachments

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

          Activity

            People

            Assignee:
            kagro Kaj Grönholm
            Reporter:
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes