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. Ideas to display animation with transparency atop video

Ideas to display animation with transparency atop video

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 641 Views
  • 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.
  • C Offline
    C Offline
    ChrisTof
    wrote on last edited by
    #1

    I am looking for ideas on how to display animations atop video - the video is running fullscreen in the background and I display some small animations (that have a transparent background) atop of it.
    To achieve that I can use GIFs but the limited colours range decreases the quality of the animation.
    I hoped to use Lottie, but it is not fully supported yet.

    What are the other options?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kkuzawska
      wrote on last edited by
      #4

      Maybe try using AnimatedSprite https://doc.qt.io/qt-5/qml-qtquick-animatedsprite.html
      If the animations are simple (limited number of frames) and looped it's a good option. You just need to export your frames to one merged .png file . I dont' know what size of the animation you want. How much pixels of width and height?
      Just keep in mind, that merged file cannot be too wide for qt animation engine - so the best option is to merge it to square . For example: instead of making 1x20 frames .png file , make 4x5 frames .png file.

      1 Reply Last reply
      1
      • GrecKoG Offline
        GrecKoG Offline
        GrecKo
        Qt Champions 2018
        wrote on last edited by
        #2

        What kind of animations?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisTof
          wrote on last edited by
          #3

          Simple animations, e.g.: https://lottiefiles.com/11352-bookmark-favourite-button

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kkuzawska
            wrote on last edited by
            #4

            Maybe try using AnimatedSprite https://doc.qt.io/qt-5/qml-qtquick-animatedsprite.html
            If the animations are simple (limited number of frames) and looped it's a good option. You just need to export your frames to one merged .png file . I dont' know what size of the animation you want. How much pixels of width and height?
            Just keep in mind, that merged file cannot be too wide for qt animation engine - so the best option is to merge it to square . For example: instead of making 1x20 frames .png file , make 4x5 frames .png file.

            1 Reply Last reply
            1

            • Login

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