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. [Solved]How to create a live blur effect?
Forum Updated to NodeBB v4.3 + New Features

[Solved]How to create a live blur effect?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 2.0k Views 1 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.
  • ealioneE Offline
    ealioneE Offline
    ealione
    wrote on last edited by
    #1

    I am in the process of trying the graphical effects module, and I had an idea while playing with the gaussian blur effect. Unfortunately I am not sure how to go about implementing it.

    What I thought is having an image in the background and rectangle or circle that is able to follow the mouse. What you will be able to see through the rectangle is a blurred version of whatever is behind it. Something like a magnifying glass if you will, but instead of magnifying it will blur whatever is behind it.

    Has anyone any idea on how a similar effect can be done?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      It's already available in QtQuick, no need to reinvent the wheel: "link":http://doc.qt.io/qt-5/graphicaleffects.html.

      (Z(:^

      1 Reply Last reply
      0
      • ealioneE Offline
        ealioneE Offline
        ealione
        wrote on last edited by
        #3

        Thanks sierdzio, I should have finished reading about all effects before posting.

        Let me also add "this":https://github.com/capisce/motionblur, seems quite an interesting implementation of almost what I wanted.

        By the way I spent a good portion of the last 2 hours studying your code on CCF, I came across it while browsing the forums. Can't run it but quite interesting nonetheless, keep up.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Thanks, I have not tried to compile this for a long time, maybe it's time to undust it a little bit. But I think it should compile (just turn off shadow building).

          (Z(:^

          1 Reply Last reply
          0
          • ealioneE Offline
            ealioneE Offline
            ealione
            wrote on last edited by
            #5

            Using mac it compiled just fine, but it kept crushing without ever displaying anything. I'll try it later on another system under Windows or Linux.

            What was particularly interesting for me was the qml c++ communication, I'll have to take a more careful look at it later if I hope to learn anything.

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Please do. I'm happy to know people learn from my code, just as I have learn a lot when I wrote it (that project has seen several heavy refactorings).

              (Z(:^

              1 Reply Last reply
              0

              • Login

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