Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Get "motion blur" in animations
Forum Updated to NodeBB v4.3 + New Features

Get "motion blur" in animations

Scheduled Pinned Locked Moved Game Development
2 Posts 2 Posters 2.3k 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.
  • B Offline
    B Offline
    bossman
    wrote on last edited by
    #1

    Im using animation framework to move my items on scene. These my class for item
    @class Pixmap : public QObject, public QGraphicsPixmapItem
    {
    Q_OBJECT
    Q_PROPERTY(QPointF pos READ pos WRITE setPos)
    public:
    Pixmap(const QPixmap &pix,int num)
    : QObject(), QGraphicsPixmapItem(pix),number(num)
    {
    setCacheMode(DeviceCoordinateCache);
    }

    Pixmap()
        : QObject(), QGraphicsPixmapItem()
    {
        setCacheMode(DeviceCoordinateCache);
    }
    
    int number;
    

    };@
    Everything works fine, but without "motion blur" effect on moving. How can I get motion blur effect? Should I change animation mechanism? Or its better to create class that inherits QGraphicsEffect and set my custom effect on my items before animation starts(I dont have any ideas for this custom class)?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      minimoog77
      wrote on last edited by
      #2

      For motion blur you need to blur the item in the vector which item moves. I hope you understood me.

      If item moves in x coordinates then you need to do blur only on x axis.

      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