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

Support particle colorTable and alphaTable

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.1
    • 6.1
    • Quick: 3D
    • None
    • 3
    • ce7f72328878a63d0d6e6304aaffad3e6d7e5ce1 91c05bbad14c7aa3ea84c2c4c51fcb19265f2c44
    • Qt Quick 3D - 2021 - Weeks 5/6, Qt Quick 3D - 2021 - Weeks 7/8

      Add colorTable and alphaTable properties into SpriteParticle. These would be 1D or 2D textures defining the color of the particle during its lifetime. When 2D, y is selected pseudorandomly so e.g. with 2x256 colorTable you can make half of them black->yellow->white and half black->red->white gradients. Making alphaTable separately allows e.g. "flickery" particles (alphaTable quite random) while colorTable remains smooth gradients.

      QDS might at some point offer UI to modify colors &alpha in timeline and store that into into PNG used for these. Also should allow selecting existing PNGs.

      Particle colorVariation should probably be applied to these colors? If both color and colorTable are set, colorTable is used?

      Attached some sample textures which might make lively fire/magic effect.

        1. alphaTable1.png
          7 kB
          Kaj Grönholm
        2. alphaTable2.png
          2 kB
          Kaj Grönholm
        3. colorTable2.png
          2 kB
          Kaj Grönholm
        4. colorTable1.png
          10 kB
          Kaj Grönholm
        For Gerrit Dashboard: QTBUG-90796
        # Subject Branch Project Status CR V

            tuliniemi Jere Tuliniemi
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes