Registered Member
|
The bouncing icon animation that is displayed near the cursor when an application is starting is just wrong.
This looks like a bad-looking back and forth linear animation with a useless area-conversating, cartoonesque squashing deformation when it hits an imaginary ground. The correct equation is y= h-k*t*t (free fall equation, t=time, h=initial height, k=some constant), with t mapped between [ -f(h,k), f(h,k)]; Possibly with an exponential decay if you want to make it a bit realistic. Can you tell me exactly where the computation takes place ? You can see a correct implementation of this effect in the Mac OS X Dock: http://www.youtube.com/watch?v=phnpSzjzVzw
Last edited by alecail on Fri Mar 30, 2012 7:04 pm, edited 1 time in total.
|
Registered Member
|
I took the time to implement a proof of concept, as a moving QLabel inside a MainWindow. This uses the Qt Animation Framework:
|
Administrator
|
Cool! Do you think you can record a video of that?
I suggest that you post it somewhere where developers can see it. It would be awesome if you submit a patch to ReviewBoard (Git); I guess the animation is somewhere in workspace but I'm not sure.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
Here is a link to a video I did: http://www.youtube.com/watch?v=fbkaDb_TU4U I think everything is in the link you gave me; but is this place a good place to post stuffs like I just did ? |
Administrator
|
ReviewBoard is for patches that are to be committed. Since you have a proof of concept, it may be better to contact the developers first and see what they think about it. Not sure where this belongs though, you could try the plasma-devel mailing list and see if their redirect you somewhere else.
Regarding the animation, I personally find the transition from "down" to "up" a bit too fast, which gives it a "choppy" feel. In Mac OS X it looks like the icon "jumps" up when it wants attention if I remember correctly.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
OK, I'm going to subscribe to this mailing list. Here is a variation of the animation. This one can be played in loop. http://youtu.be/svGpqqvoPwE |
Administrator
|
Awesome!
This looks much better, great work. I hope you'll get help to implement it in KDE Workspaces. (Personally I've never been a fan of the bouncing icon and always disable it, but yours looks more "professional" in my opinion.)
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Administrator
|
The relevant code in question will be located inside KWin, not sure where however.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I've found exactly where: kde-workspace-4.8.1/kwin/effects/startupfeedback/startupfeedback.cpp
The FRAME_TO_BOUNCE_YOFFSET[] is in fact physically correct, which means that it respects the free-fall equation. What makes the animation looks bad is the BOUNCE_SIZES[], which specifies how much the icon is resized, according to the current frame. I've made a video showing the animation without the squashing effect, and another variation (initial vertical impulse + bounce). It can be removed here:
See results at: http://www.youtube.com/watch?v=tL8MhPun ... e=youtu.be |
Administrator
|
Moved to KWin, hopefully the developers will take a look.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Administrator
|
If you have a patch to improve the bouncing code in KWin to look more realistic, I would recommend opening a Review Request against KWin (repository kde-workspace) on git.reviewboard.kde.org.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Evergrowing, Google [Bot]