Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt 5.13 Particles on Android

Qt 5.13 Particles on Android

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 1 Posters 313 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Galbarad
    wrote on last edited by
    #1

    Hi friends!
    Someone trying Particles on Android?
    is possible to change color in onEmitParticles??
    something like this
    following code not work with Qt 5.6 + Android
    is something change with Qt 5.13?
    thanks

    for (var i = 0, Ln = particles.length; i < Ln; ++i) {
                particles[i].x = arrCoord[i].x;
                particles[i].y = arrCoord[i].y;
                particles[i].red = arrCoord[i].red;
                particles[i].green = arrCoord[i].green;
                particles[i].blue = arrCoord[i].blue;
            }
        }
    

    P.S. I will try to check tonight and publish result, but maybe someone already know)?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Galbarad
      wrote on last edited by Galbarad
      #2

      tonight was today)
      Samsung S6 Android 7.0 - working
      Samsung S9 Android 9.0 - working

      64 apk in case some wanna test on their phone
      please post your result
      thanks

      https://drive.google.com/file/d/1CMREf_z46FynCz6vM3Xw3f3MQPgJMuCp/view?usp=sharing

      soon will be on google play
      https://play.google.com/store/apps/details?id=ua.in.visk.games.MagicBattlePvP

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Galbarad
        wrote on last edited by
        #3

        @Galbarad said in Qt 5.13 Particles on Android:

        for (var i = 0, Ln = particles.length; i < Ln; ++i) {
        particles[i].x = arrCoord[i].x;
        particles[i].y = arrCoord[i].y;
        particles[i].red = arrCoord[i].red;
        particles[i].green = arrCoord[i].green;
        particles[i].blue = arrCoord[i].blue;
        }
        }

        !!!!
        red, green, blue should be between 0.0 and 1.0

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved