PDA

View Full Version : Animation plugin


mikedee
November 9th, 2006, 11:46 PM
Animation plugin is available directly from the git.compiz.org repos.

To get a fresh copy type this

git clone http://git.compiz.org/compiz/plugins/animation animation

To update type

git pull

Remember to recompile each time you update compiz.

cyberorg
November 18th, 2006, 12:00 PM
This one needs decent defaults, we've changed that some time back on beryl, could you do that on compiz animation too?

Thanks

albright
November 18th, 2006, 07:24 PM
on mandriva 2007 using compiz-0.3.2-4mdv2007.1 and
compiz-extra-0.3.3.0-1mdv2007.1 whenever I turn
on the animation plugin minimizing a window crashes
compiz (leaves me with a single desktop, no decorations,
but I can log out properly). Other animations seem
to work (menu shiver and the like) but it's hard to tell
for sure ...

I see the possible mismatch between compiz version
and compiz-extra version but these are latest packages
from cooker.

any advice welcom

mikedee
November 19th, 2006, 06:27 PM
The packages should match each other, although there should be a 0.3.3.1 version of extra available soon.

Can you try a few things

1. Try downloading and compiling the animation plugin seperatly (just download and unpack then type make install)
2. Make sure you have fade & minimize plugins disabled. Change the wobbly map_effect to None.
3. If you are using KDE, disable all of the KDE effects.
4. Are you sure it is only minimizing? Window shiver is a wobbly function not animation. Check if things like burn work when closing a window. If you do not get crashes for closing etc, then can you try different minimize animations and see if that still crashes (try to use an animation which works with close).

albright
November 21st, 2006, 01:33 AM
Thanks for the suggestions. Still not working though.
The other animations do seem to work (I can set
close to burn etc. with no problem) - only
minimize crashes compiz.

I'd like to try the *compile animation plugin*
suggestion - but I don't even know where to
go to get the tarballs ... maybe you could give
a hint.

thanks

mikedee
November 21st, 2006, 01:49 AM
The tarball is linked at the top, just type make install after extracting it, then restart compiz.

Make sure you load the schema by typing

gconftool-2 --install-schema-file=animation.schema

What happens if you set burn to be the minimize effect?

albright
November 22nd, 2006, 02:45 AM
Setting minimize to burn still crashes compiz - setting
minimize effect to "none" still crashes compiz.

animation compiled fine and appeared to install -- but
still crashes compiz ...

BTW, all the animation stuff works fine in beryl,
it's just that beryl causes frequent but random
X crashes (often taking the whole system).

Compiz does that too but much less frequently

(the joys of pre-beta software ... but it's irresistible to
mess this with stuff :) )

mikedee
November 22nd, 2006, 03:26 AM
Thanks, it sounds like the problem is within the minimize detection code. It isnt quite as simple as you would think. David is currently writing some code which makes this much much easier and much less problematic.

This means that soon after his code is done, either beryl will merge the changes and update the animation plugin which I can then re-port or they will not and I can probably make the changes to my current port.

Either way, these changes are very likely to fix your bug (given what you have described). This means that unless the fix is simple it will probably not be done until after the changes (probably a 0.4 release).

To attempt to fix it I need to get a backtrace from you which really depends on how happy you are with compiling etc.

The first thing you could try is the crash handler plugin, if you can compile and load this then it might give some useful information. Let me know if you need more information on this.

gschoper
November 23rd, 2006, 02:30 AM
I just updated and installed the latest compiz sources via git and am now unable to compile the animation plugin. I've tried the version in compiz-extras from 0.3.3.1 thru 0.3.4.0 as well as the standalone plugin with the same error. Here's what happens:

wget http://www.anykeysoftware.co.uk/compiz/plugins/animation.tar.gz
--21:17:33-- http://www.anykeysoftware.co.uk/compiz/plugins/animation.tar.gz
=> `animation.tar.gz'
Resolving www.anykeysoftware.co.uk... 212.227.64.112
Connecting to www.anykeysoftware.co.uk|212.227.64.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39,851 (39K) [application/x-tar]

100%[====================================>] 39,851 75.15K/s

21:17:34 (74.92 KB/s) - `animation.tar.gz' saved [39851/39851]

desktop:~/src (626)$> utgz animation.tar.gz
drwxr-xr-x mike/users 0 2006-11-13 06:58 animation/
-rw-r--r-- mike/users 6774 2006-11-08 19:04 animation/Makefile
-rw-r--r-- mike/users 16407 2006-11-08 19:04 animation/animation_tex.h
-rw-r--r-- mike/users 116631 2006-11-08 19:04 animation/animation.schema
-rw-r--r-- mike/users 200289 2006-11-13 06:58 animation/animation.c
desktop:~/src (627)$> cd animation/
desktop:~/src/animation (628)$> make
compiling : animation.c -> build/libanimation.loanimation.c: In function 'animSetWindowScale':
animation.c:5768: error: 'CompScreen' has no member named 'setWindowScale'
animation.c:5769: error: 'CompScreen' has no member named 'setWindowScale'
animation.c:5770: error: 'CompScreen' has no member named 'setWindowScale'
animation.c:5770: error: 'CompScreen' has no member named 'setWindowScale'
animation.c: In function 'animInitScreen':
animation.c:5895: error: 'CompScreen' has no member named 'setWindowScale'
animation.c:5895: error: 'CompScreen' has no member named 'setWindowScale'
animation.c: In function 'animFiniScreen':
animation.c:5930: error: 'CompScreen' has no member named 'setWindowScale'
make: *** [build/libanimation.lo] Error 1
desktop:~/src/animation (629)$>


All other plugins compile and install without issue.

Thanks,

gschoper

teeach
November 23rd, 2006, 12:39 PM
hi im using kde with compiz and trying to use the animation plugin but it wont install.

my cube etc works

i download it ok etc but when it gets to make command i just get

]
inux-qyuh:/home/teeach/animation # make
compiling : animation.c -> build/libanimation.lo/bin/sh: pkg-config: command not found
animation.c:43:23: error: X11/Xatom.h: No such file or directory
animation.c:44:24: error: X11/Xproto.h: No such file or directory
animation.c:46:20: error: compiz.h: No such file or directory
animation.c:107: error: expected specifier-qualifier-list before 'Bool'
animation.c:304: warning: implicit declaration of function 'N_'
animation.c:304: error: initializer element is not constant
animation.c:304: error: (near initialization for 'animDirectionName[0]')
animation.c:305: error: initializer element is not constant
animation.c:305: error: (near initialization for 'animDirectionName[1]')
animation.c:306: error: initializer element is not constant
animation.c:306: error: (near initialization for 'animDirectionName[2]')
animation.c:307: error: initializer element is not constant
animation.c:307: error: (near initialization for 'animDirectionName[3]')
animation.c:309: error: initializer element is not constant
animation.c:309: error: (near initialization for 'animDirectionName[4]')
animation.c:321: error: initializer element is not constant
animation.c:321: error: (near initialization for 'ppDisablingName[0]')
animation.c:322: error: initializer element is not constant
animation.c:322: error: (near initialization for 'ppDisablingName[1]')
animation.c:324: error: initializer element is not constant
animation.c:324: error: (near initialization for 'ppDisablingName[2]')
animation.c:361: error: expected specifier-qualifier-list before 'GLuint'
animation.c: In function 'initParticles':
animation.c:373: error: 'ParticleSystem' has no member named 'tex'
animation.c:373: warning: statement with no effect
animation.c:376: error: 'ParticleSystem' has no member named 'active'
animation.c:376: error: 'FALSE' undeclared (first use in this function)
animation.c:376: error: (Each undeclared identifier is reported only once
animation.c:376: error: for each function it appears in.)
animation.c:376: warning: statement with no effect
animation.c: At top level:
animation.c:386: error: expected ')' before '*' token
animation.c: In function 'updateParticles':
animation.c:553: warning: implicit declaration of function 'MAX'
animation.c:554: error: 'ParticleSystem' has no member named 'active'
animation.c:554: error: 'FALSE' undeclared (first use in this function)
animation.c:554: warning: statement with no effect
animation.c:573: error: 'ParticleSystem' has no member named 'active'
animation.c:573: error: 'TRUE' undeclared (first use in this function)
animation.c:573: warning: statement with no effect
animation.c: At top level:
animation.c:607: error: initializer element is not constant
animation.c:607: error: (near initialization for 'allEffectName[0]')
animation.c:608: error: initializer element is not constant
animation.c:608: error: (near initialization for 'allEffectName[1]')
animation.c:609: error: initializer element is not constant
animation.c:609: error: (near initialization for 'allEffectName[2]')
animation.c:610: error: initializer element is not constant
animation.c:610: error: (near initialization for 'allEffectName[3]')
animation.c:611: error: initializer element is not constant
animation.c:611: error: (near initialization for 'allEffectName[4]')
animation.c:612: error: initializer element is not constant
animation.c:612: error: (near initialization for 'allEffectName[5]')
animation.c:613: error: initializer element is not constant
animation.c:613: error: (near initialization for 'allEffectName[6]')

animation.c:3984: warning: statement with no effect
animation.c:3985: error: request for member 'rest' in something not a structure or union
animation.c:3985: error: request for member 'f' in something not a structure or union
animation.c:3985: error: request for member 'precision' in something not a structure or union
animation.c:3985: warning: statement with no effect
animation.c: At top level:
animation.c:3989: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
animation.c: In function 'modelInitObjects':
animation.c:4038: error: 'Model' has no member named 'forWindowEvent'
animation.c:4038: warning: comparison between pointer and integer
animation.c:4039: error: 'Model' has no member named 'forWindowEvent'
animation.c:4039: warning: comparison between pointer and integer
animation.c:4045: error: 'Model' has no member named 'topHeight'
animation.c:4045: error: invalid operands to binary -
animation.c:4045: error: 'Model' has no member named 'bottomHeight'
animation.c:4062: error: 'Model' has no member named 'topHeight'
animation.c:4062: error: invalid operands to binary +
animation.c:4062: error: incompatible types in initialization
animation.c: At top level:
animation.c:4123: error: expected ')' before '*' token
animation.c:4176: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animEnsureModel'
animation.c:4221: error: expected ')' before '*' token
animation.c:4277: error: expected ')' before '*' token
animation.c:4379: error: expected ')' before '*' token
animation.c:4392: error: expected ')' before '*' token
animation.c:4870: error: expected ')' before '*' token
animation.c:4926: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animPaintWindow'
animation.c:4980: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animGetWindowIconGeometry'
animation.c:5017: error: expected ')' before '*' token
animation.c:5430: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animDamageWindowRect'
animation.c:5674: error: expected ')' before '*' token
animation.c:5699: error: expected ')' before '*' token
animation.c:5736: error: expected ')' before '*' token
animation.c:5750: error: expected ')' before '*' token
animation.c:5763: error: expected ')' before '*' token
animation.c:5795: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animPaintScreen'
animation.c:5814: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animInitDisplay'
animation.c:5841: error: expected ')' before '*' token
animation.c:5853: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animInitScreen'
animation.c:5903: error: expected ')' before '*' token
animation.c:5936: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animInitWindow'
animation.c:5979: error: expected ')' before '*' token
animation.c:6003: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animInit'
animation.c:6013: error: expected ')' before '*' token
animation.c:6020: error: expected ')' before '*' token
animation.c:6026: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animDeps'
animation.c:6036: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'animVTable'
animation.c:6059: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
make: *** [build/libanimation.lo] Error 1


also im new to this need basic instructions although i am a tech

im using the desktop effects settings utility to configure it should i be using anything else?>

any ideas anyone

mikedee
November 23rd, 2006, 01:12 PM
I have posted a version of animation here which works with the latest git. If you are using a 0.3.4 release then the old one will work.

http://www.anykeysoftware.co.uk/compiz/plugins/animation-git.c

gandalfn
November 23rd, 2006, 07:34 PM
I have posted a version of animation here which works with the latest git. If you are using a 0.3.4 release then the old one will work.

http://www.anykeysoftware.co.uk/compiz/plugins/animation-git.c

i also made a patch for it use latest compiz modification
animation.c.git.patch (http://gandalfn.club.fr/ubuntu/compiz-extra/patches/animation.c.git.patch)

i made another patch which include Magic Lamp base options :
animation.c.base-option.patch (http://gandalfn.club.fr/ubuntu/compiz-extra/patches/animation.c.base-option.patch)

what think about them ?

gandalfn

gschoper
November 24th, 2006, 02:01 AM
I have posted a version of animation here which works with the latest git. If you are using a 0.3.4 release then the old one will work.

http://www.anykeysoftware.co.uk/compiz/plugins/animation-git.c

Worked great. Thanks.

gschoper

tjb
November 30th, 2006, 07:30 PM
I compiled and installed the animations plugin on Fedora Rawhide (compiz 0.3.4). Some of the animations are not the same as on my FC6/Beryl setup though. I have burn set as a close animation and when I close a window, the window disappears and then fire animation goes down where the window used to be instead of the fire going down and destroying the window as it moves. The magic lamp animations for minimize and unminimize don't do the curvy animation and the curved fold animation doesn't seem to to anything different. Are these known problems or is there something missing from my build?

mikedee
November 30th, 2006, 07:36 PM
I do not see any of those problems here, could you try adjusting the settings, maybe they are slightly different between beryl and compiz.

tjb
December 1st, 2006, 03:44 PM
Could you dump your settings? Something like this:

gconftool-2 --dump /apps/compiz/plugins/animation > file

and post the file here.

Thanks

mikedee
December 3rd, 2006, 04:28 PM
Could you dump your settings? Something like this:

gconftool-2 --dump /apps/compiz/plugins/animation > file

and post the file here.

Here you go :)

http://www.anykeysoftware.co.uk/compiz/plugins/my-animation.schema

The settings are fairly standard though... My second thoughts are that maybe there is a race condition inside animation and because beryl is running slightly slower it may not be noticable. What hardware do you have?

mikedee
December 3rd, 2006, 04:34 PM
I have updated this plugin with gandalfn's patches and re-ported it from the current beryl svn.

I have also fixed the bug with Firefox and Open Office menus appearing as Normal instead of Unknown.

iznogood
December 3rd, 2006, 09:22 PM
How about the switcher window appearing as normal
Can anything be done with it??

I do not really want magic lamp animations on the switcher window(this is what i use for normal windows, i use fade for anything else).

If you know anything about it please say...

mikedee
December 4th, 2006, 12:55 AM
I agree, the animation on the switcher window is really annoying

The problem is that animation thinks that the switcher window is minimizing not being created or destroyed. The window is actually being shown and hidden which animation does not account for.

I will have a look to see if there is anything quick I can do to stop it. gnumdk's patches to hide the window switcher were to hide this exact problem, hopefully they will be in head soon.

mikedee
December 4th, 2006, 01:12 AM
The fix was easier than I thought :)

I have uploaded a new version that excludes the switcher window. The window just shows and hides.

http://www.anykeysoftware.co.uk/compiz/plugins/animation.tar.gz

iznogood
December 4th, 2006, 07:49 AM
ok thanks,

i will try it asap

Sorcerer
December 4th, 2006, 02:02 PM
Crashes after the window switcher closes.
Using Compiz 0.3.4, Ubuntu Edgy and i915.

mikedee
December 4th, 2006, 02:48 PM
Sorry the version linked is only for 0.3.5 (ie. current git).

There is a good chance it will crash on 0.3.4. Ill try to backport those fixes to a 0.3.4 version and then re-release a compiz-extra package.

mikedee
December 4th, 2006, 04:44 PM
Here is a version copied from the current compiz-extra package with the fixes for Mozilla/OpenOffice menus and to stop the switcher using the minimize effect.

http://www.anykeysoftware.co.uk/compiz/plugins/animation-0.3.4.tar.gz

tjb
December 5th, 2006, 06:21 PM
I installed the updated 0.3.4 plugin and used your gconf settings and it's much the same. Like I said before, I'm using fedora rawhide with aiglx and the binary nvidia driver so I don't know if there are know problems there. Everything mostly works except for Magic Lamp 1 for minimize is very fast and not curvy (while unminimize seems perfect), the burn problem I talked about, and shading and unshading doesn't seem to be Curved Fold.

mikedee
December 5th, 2006, 06:43 PM
You shouldnt be using AIGLX and nvidia beta drivers, if you have the 9*** series driver then it can run on xorg 7.1 without using the AIGLX option. I am using nvidia 9742 and everything works ok.

Also if you are getting a regular crash then you can try to get a backtrace with gdb to see where it is crashing.


Quick instructions for backtrace

Install gdb

$ gdb compiz
(gdb) run --replace gconf

blah...blah...

Then crash it, swich to another terminal and restart metacity.

Program received SIGSEV blah blah
(gdb) bt

Copy and paste this output

stjepan
December 24th, 2006, 08:22 AM
Please can you update this plugin?

mikedee
December 26th, 2006, 03:19 PM
Please can you update this plugin?

Is there an urgent bug fix that you need for this plugin? As far as I can see there are very few differences which will affect us (if any).

If there is nothing urgent I am holding small updates until we have proper source control.

stjepan
December 26th, 2006, 06:14 PM
Yes, we need an update.
Current Magic Lamps don't support genie-like effects (1 wave). Minimum waves is 3.

mikedee
December 26th, 2006, 06:19 PM
Yes, we need an update.
Current Magic Lamps don't support genie-like effects (1 wave). Minimum waves is 3.

OK, Ill have a look at it later (its quite low on the list at the mo :().

BTW, wasn't this cause of a great load of fuss over the Apple patent? Have they changed their mind about violating the patent? Last I heard there was no way on this earth that they would allow 1 wave.

If this is all you are missing you should be able to easily modify the source to support a different minimum.

stjepan
December 26th, 2006, 06:42 PM
Yes, it's patented. Maybe it's better to keep anim plugin as is?

stjepan
December 27th, 2006, 06:20 PM
Please update this plugin.

iznogood
March 26th, 2007, 12:05 AM
Hi cornelius,

i hope you read this...

I really like the new animation plugin (after the porting i mean) its fantastic

Only one remark... I saw that the minimize-unminimize default speed is set at 0.2 which is way to fast for most animations. Magic Lamp does not look very nice if it runs too fast. I tried with 0.7 and it runs great.

Do you think that you should change the default value ??? I believe it happened for beryl but its better to have the animations run a bit slower, they look better.

Also i read in a post that you might put the effects in a separate lib and animation plugin will only manage the animations without containing the actual drawing code. Is there any discussion about it??

If it happens we might enhance showdesktop plugin with some new effects like glide and also we could use domino on desktop window to switch viewports instead of rotating cube.

Its just a though but i would really like to hear your opinion on this.
If this actually happens would it be possible for external applications to use these effects ???

Thanks
iz

Amaranth
March 26th, 2007, 03:38 AM
He was talking about library plugins for each animation. Evil stuff, you don't want it. :)

FunkyM
March 26th, 2007, 04:25 AM
He was talking about library plugins for each animation. Evil stuff, you don't want it. :)

You are right, I rather want a general effects API shared library that any application can use and link to.

iznogood
March 26th, 2007, 09:04 AM
He was talking about library plugins for each animation. Evil stuff, you don't want it. :)

You are right, I rather want a general effects API shared library that any application can use and link to.

hey, i do not really care about the actual format of the library as long as one exists and can be used :wink:

bijoux
March 26th, 2007, 06:58 PM
ive been waiting for this plugin; thanks for this 8)
small problem with fade effect while creating/closing windows. sometimes menus dont get drawn properly and i get flashing black artifacts before the menu is drawn. (a la metisse & menus, if youre familiar with that). i cant really reproduce it at will as it happens randomly. and i cant give you a screenshot for the same reason.

have you any ideas?

iznogood
March 26th, 2007, 08:13 PM
ive been waiting for this plugin; thanks for this 8)
small problem with fade effect while creating/closing windows. sometimes menus dont get drawn properly and i get flashing black artifacts before the menu is drawn. (a la metisse & menus, if youre familiar with that). i cant really reproduce it at will as it happens randomly. and i cant give you a screenshot for the same reason.

have you any ideas?

This probably happens because animation fade effect and fade plugin work
at the same time. Personally i overcome this by disabling fade in animation and using the fade effect from fade plugin

cornelius
March 27th, 2007, 04:02 AM
Hi cornelius,

i hope you read this...

I really like the new animation plugin (after the porting i mean) its fantastic

Only one remark... I saw that the minimize-unminimize default speed is set at 0.2 which is way to fast for most animations. Magic Lamp does not look very nice if it runs too fast. I tried with 0.7 and it runs great.

Do you think that you should change the default value ??? I believe it happened for beryl but its better to have the animations run a bit slower, they look better.

Yeah, 0.2 is really low, but 0.7 is probably too high for a default. I was thinking something like 0.3 or 0.4.

Also i read in a post that you might put the effects in a separate lib and animation plugin will only manage the animations without containing the actual drawing code. Is there any discussion about it??

Not discussed a lot yet. Because animation plugin was getting bigger and bigger, I was initially just thinking of splitting animation.c into smaller pieces (so that only the chosen animations would be loaded at any time), reducing memory consumption, compiz/beryl startup time, and code complexity (for the ones who want to write new effects).

If it happens we might enhance showdesktop plugin with some new effects like glide and also we could use domino on desktop window to switch viewports instead of rotating cube.

The problem with that is that the cube faces are not rendered onto textures. Therefore drawing such little pieces would require, transforming, redrawing the whole screen (by drawing individual windows), and clipping to the desired polygon. So it could be slower than acceptable. You can avoid it by allocating a large texture to render the screens onto (and using that texture to render anything you want), at the cost of some texture memory of course.

Its just a though but i would really like to hear your opinion on this.
If this actually happens would it be possible for external applications to use these effects ???

After some initial discussion, making it possible also for other plugins (or applications) to animate windows seemed like a better direction. And I think it would be easier (and would make more sense) to expose this functionality to applications through dbus instead of linking.

cornelius
March 27th, 2007, 04:09 AM
This probably happens because animation fade effect and fade plugin work
at the same time. Personally i overcome this by disabling fade in animation and using the fade effect from fade plugin
Yeah compiz's Fade plugin conflicts with Animation. We can consider the changes in beryl's Fade plugin to remedy those issues. I want Fade to only gradually desaturate nonresponding apps and do gradual transitions for Switcher for example. We should have a way of disabling everything else it provides (fade on minimize, open/close, etc.)

bijoux
March 27th, 2007, 04:32 AM
Apparently so.. fade and animation don't play nice. Anyway, animation plugin recognizes firefox's menus as normal windows. Do you guys have a fix for this? Its quite annoying.

cornelius
March 27th, 2007, 05:20 AM
Apparently so.. fade and animation don't play nice. Anyway, animation plugin recognizes firefox's menus as normal windows. Do you guys have a fix for this? Its quite annoying.
I'm quite annoyed by that myself. Beryl handles that with a few additional lines of code to change some windows' types. I'll provide a patch when I get time if the author of the fix doesn't (I don't know who).

bijoux
March 27th, 2007, 07:02 AM
thanks cornelius :D

maniac
March 27th, 2007, 07:50 AM
Apparently so.. fade and animation don't play nice. Anyway, animation plugin recognizes firefox's menus as normal windows. Do you guys have a fix for this? Its quite annoying.
I'm quite annoyed by that myself. Beryl handles that with a few additional lines of code to change some windows' types. I'll provide a patch when I get time if the author of the fix doesn't (I don't know who).
Problem with that is one thing: The broken part is firefox, not Compiz and/or Beryl. That's why David refuses to put it in the core as he says the app needs to be fixed, not Compiz. While he's right to a certain extent, we have a bad situation until FIrefox is fixed.
The workaround of mikedee has been to put this fix in each plugin separately, but I think this isn't optimal, too ... perhaps we could have some sort of "broken app compatibility" layer plugin which could take care of such workarounds?

iznogood
March 27th, 2007, 09:24 AM
Apparently so.. fade and animation don't play nice. Anyway, animation plugin recognizes firefox's menus as normal windows. Do you guys have a fix for this? Its quite annoying.
I'm quite annoyed by that myself. Beryl handles that with a few additional lines of code to change some windows' types. I'll provide a patch when I get time if the author of the fix doesn't (I don't know who).
Problem with that is one thing: The broken part is firefox, not Compiz and/or Beryl. That's why David refuses to put it in the core as he says the app needs to be fixed, not Compiz. While he's right to a certain extent, we have a bad situation until FIrefox is fixed.
The workaround of mikedee has been to put this fix in each plugin separately, but I think this isn't optimal, too ... perhaps we could have some sort of "broken app compatibility" layer plugin which could take care of such workarounds?

This is a better solution but someone must discuss this with David, he might have something to suggest on writing such a plugin

iznogood
March 27th, 2007, 09:31 AM
This probably happens because animation fade effect and fade plugin work
at the same time. Personally i overcome this by disabling fade in animation and using the fade effect from fade plugin
Yeah compiz's Fade plugin conflicts with Animation. We can consider the changes in beryl's Fade plugin to remedy those issues. I want Fade to only gradually desaturate nonresponding apps and do gradual transitions for Switcher for example. We should have a way of disabling everything else it provides (fade on minimize, open/close, etc.)

Hmm, after seen the demo on BrainShare its obvious why he refuses to accept mass changes on the core plugins... he is using them as demos - tests for the bigger changes in compiz core and X server. It was not so obvious to me at first, but if the core plugins change a lot it would be more difficult for david to put his changes in (like what he did on scale with input transfomation).

I am not sure if the changes you propose are big though, so he might have no problem with them ...

cornelius
March 27th, 2007, 02:35 PM
Problem with that is one thing: The broken part is firefox, not Compiz and/or Beryl. That's why David refuses to put it in the core as he says the app needs to be fixed, not Compiz. While he's right to a certain extent, we have a bad situation until FIrefox is fixed.
The workaround of mikedee has been to put this fix in each plugin separately, but I think this isn't optimal, too ... perhaps we could have some sort of "broken app compatibility" layer plugin which could take care of such workarounds?

This is a better solution but someone must discuss this with David, he might have something to suggest on writing such a plugin
I agree. That would be a better solution. When is David coming back btw? :)

cornelius
March 27th, 2007, 02:38 PM
Yeah compiz's Fade plugin conflicts with Animation. We can consider the changes in beryl's Fade plugin to remedy those issues. I want Fade to only gradually desaturate nonresponding apps and do gradual transitions for Switcher for example. We should have a way of disabling everything else it provides (fade on minimize, open/close, etc.)

Hmm, after seen the demo on BrainShare its obvious why he refuses to accept mass changes on the core plugins... he is using them as demos - tests for the bigger changes in compiz core and X server. It was not so obvious to me at first, but if the core plugins change a lot it would be more difficult for david to put his changes in (like what he did on scale with input transfomation).

I am not sure if the changes you propose are big though, so he might have no problem with them ...
The changes I was talking about should be small. Besides Fade shouldn't have anything to do with input transformations in particular.

imnotpc
March 27th, 2007, 03:20 PM
I agree. That would be a better solution. When is David coming back btw?
He's starting to answer mail now, but he's probably got about 10,000 posts in his box so it may be awhile longer before we hear much.

cornelius
March 29th, 2007, 04:20 AM
I posted the latest animation.tar.gz to the ML:
http://lists.freedesktop.org/archives/compiz/2007-March/001750.html
Let me know if you see any bugs.

cornelius
March 29th, 2007, 05:13 PM
Fixed schema file (http://lists.freedesktop.org/archives/compiz/2007-March/001758.html).

cornelius
March 31st, 2007, 01:05 AM
The animation plugin will reside on git from now on. You can obtain a copy like this:
git clone http://git.compiz.org/compiz/plugins/animation animation

Later, you can update it to the latest version like this (in animation folder):
git pull

If you want to see the commit log, do this:
git log

RYX
March 31st, 2007, 03:21 AM
Works well - just compiled and tested ...

Thanks, cornelius :)

gnumdk
April 2nd, 2007, 01:13 PM
Last version is buggy...

Just open two window at differents place on screen, minimize this windows, and then unminimize/minimize windows one by one... When unminimizing, you will see previous window on screen appears for few seconds...

mikedee
April 2nd, 2007, 04:51 PM
Just open two window at differents place on screen, minimize this windows, and then unminimize/minimize windows one by one... When unminimizing, you will see previous window on screen appears for few seconds...

I think once all the notification stuff is changed in core, problems like this will hopefully not happen. It will also be easier to tell the difference between events so it should make for a leaner animation plugin.

cornelius
April 2nd, 2007, 06:58 PM
Just open two window at differents place on screen, minimize this windows, and then unminimize/minimize windows one by one... When unminimizing, you will see previous window on screen appears for few seconds...

I think once all the notification stuff is changed in core, problems like this will hopefully not happen. It will also be easier to tell the difference between events so it should make for a leaner animation plugin.
Yeah, I'm looking forward to that. Is there any info on when that will be available?

mikedee
April 2nd, 2007, 08:37 PM
Just open two window at differents place on screen, minimize this windows, and then unminimize/minimize windows one by one... When unminimizing, you will see previous window on screen appears for few seconds...

I think once all the notification stuff is changed in core, problems like this will hopefully not happen. It will also be easier to tell the difference between events so it should make for a leaner animation plugin.
Yeah, I'm looking forward to that. Is there any info on when that will be available?

No idea, its been on the cards for a while. David will get back into development mode soon so hopefully it will not be that long. You should discuss any requirements you have with him for animation on the mailing list.

As far as I know these changes were inspired by the animation plugin so I think he would be interested in any features you need.

madchicken
April 14th, 2007, 08:06 AM
Hi guys, the git repo is now empty. What appened?

thanks,
Pierpaolo

cornelius
April 14th, 2007, 08:20 AM
Hi guys, the git repo is now empty. What appened?
thanks,
Pierpaolo
You can clone (and pull) it from
git://git.beryl-project.org/compiz/plugins/animation
and see it on web at
http://gitweb.beryl-project.org/?p=compiz/plugins/animation;a=summary

The latest version will be there until things settle.

madchicken
April 14th, 2007, 08:36 AM
Hi guys, the git repo is now empty. What appened?
thanks,
Pierpaolo
You can clone (and pull) it from
git://git.beryl-project.org/compiz/plugins/animation
and see it on web at
http://gitweb.beryl-project.org/?p=compiz/plugins/animation;a=summary

The latest version will be there until things settle.

Thanks Cornelius.
Now I have another question: is there a way to use the Vacuum effect for minimize/unminimize windows?

Thanks,
Pierpaolo

cornelius
April 14th, 2007, 08:45 AM
Thanks Cornelius.
Now I have another question: is there a way to use the Vacuum effect for minimize/unminimize windows?
You can always edit the source code and make it do anything you want.

madchicken
April 14th, 2007, 09:18 AM
Thanks Cornelius.
Now I have another question: is there a way to use the Vacuum effect for minimize/unminimize windows?
You can always edit the source code and make it do anything you want.

Ok, I though it was already possible. Here is a patch to allow it:

http://madchicken.altervista.org/allow-vacuum-for-(un)minimize.patch

Bye,
Pierpaolo

Marex
April 14th, 2007, 02:15 PM
Correct me if I'm wrong but wasn't that patch illegal because Apple has an patent on this effect? :?
At least its illegal in the US, not in Europe (afaik we don't have software patents yet).

Spillaz
April 14th, 2007, 03:11 PM
Correct me if I'm wrong but wasn't that patch illegal because Apple has an patent on this effect? :?
At least its illegal in the US, not in Europe (afaik we don't have software patents yet).

Software patents are gay. I cant believe that our path is stepped in the way be software patents. I say just post *maybe* violations and see if apple tries to eat you. I dont think they've heard of XGL/AIGLX and Compiz

Marex
April 14th, 2007, 03:52 PM
Correct me if I'm wrong but wasn't that patch illegal because Apple has an patent on this effect? :?
At least its illegal in the US, not in Europe (afaik we don't have software patents yet).

Software patents are gay. I cant believe that our path is stepped in the way be software patents. I say just post *maybe* violations and see if apple tries to eat you. I dont think they've heard of XGL/AIGLX and Compiz

Sorry but I wouldn't want to risk that we get forced to remove a plugin or anything. There are laws, and even if we don't like it, we have to get around with them. Sure it's stupid that something like this can be patented but well.. theoretically we could include this patch into a repository in Europe and only make it aviable for them, but that would be rather complicated.

madchicken
April 14th, 2007, 05:15 PM
Sorry but I wouldn't want to risk that we get forced to remove a plugin or anything. There are laws, and even if we don't like it, we have to get around with them. Sure it's stupid that something like this can be patented but well.. theoretically we could include this patch into a repository in Europe and only make it aviable for them, but that would be rather complicated.

Sorry, I didn't know anything about that. I'll remove the patch from the server.

thanks,
Pierpaolo

defer
April 16th, 2007, 05:48 PM
Would it be possible, from a theoretical point of view, for modal dialogs to appear as a result of an effect over the parent window? Yes, I mean something like OSX's options panes. I was wondering since it's we know it's a modal and know it's parent it can't be that hard right?

cornelius
April 17th, 2007, 09:14 PM
Would it be possible, from a theoretical point of view, for modal dialogs to appear as a result of an effect over the parent window? Yes, I mean something like OSX's options panes. I was wondering since it's we know it's a modal and know it's parent it can't be that hard right?
The last time I checked (was in beryl I guess) every window's ".parent" was the root window and therefore is useless for that purpose. This was on Xgl, but it should be the same on aiglx. If somebody kindly shows me a way to get the real parent of a modal dialog, I'll eventually implement this feature :)

defer
April 17th, 2007, 10:55 PM
Unless I'm mistaken which is likely because I barely skimmed through the code, w->transientFor would be the one to check, it should contain the modal's master.
It's likely that I'm mistaken though, please correct me if so.

riderforever
April 22nd, 2007, 08:36 AM
Hello,
I'm a very newbie linux user and some days ago I downloaded Ubuntu Feisty. After some tricks I was able to enable compiz with my ATI using the open drivers, and I downloaded the compiz-extra only to try the animation plugin. What a surprise, running gconf-editor I can find the animation section but it's empty and I've not found yet a way to activate it! :(
Could you please tell me which is the simpliest way to get the animation plugin working, using Ubuntu Feisty + Compiz 0.36?

Big thanks in advance
:wink:

cornelius
April 22nd, 2007, 05:38 PM
Hello,
I'm a very newbie linux user and some days ago I downloaded Ubuntu Feisty. After some tricks I was able to enable compiz with my ATI using the open drivers, and I downloaded the compiz-extra only to try the animation plugin. What a surprise, running gconf-editor I can find the animation section but it's empty and I've not found yet a way to activate it! :(
Could you please tell me which is the simpliest way to get the animation plugin working, using Ubuntu Feisty + Compiz 0.36?

Big thanks in advance
:wink:
Hmm, apparently that package doesn't contain the animation plugin, even though it says so. You'll need to compile the sources for compiz 0.5 (http://www.compiz.org/Home/Start) (instructions can be found here (http://www.compiz.org/Compiling)) and extra-plugins (for compiz 0.5) (http://forum.compiz.org/viewtopic.php?t=726).

madchicken
April 25th, 2007, 09:54 AM
I noticed that the new version of animation plugin now uses the compiz matching windows system: is there a way to match menu and other windows created by application such Firefox that are all of type Normal? It's really annoying to have affects like BeamUp for menus or combo boxes...

thank you very much.
Pierpaolo

P.S.- I know it's a firefox bug, I'm only trying to find a clean workaround, waiting for the bug to be fixed...

mikedee
April 25th, 2007, 11:17 AM
I noticed that the new version of animation plugin now uses the compiz matching windows system: is there a way to match menu and other windows created by application such Firefox that are all of type Normal? It's really annoying to have affects like BeamUp for menus or combo boxes...

I plan to add a override_redirect match (unless someone beats me to it). This will allow you to exclude firefox menus with a match like this (type=normal & override_redirect=1)

madchicken
April 25th, 2007, 12:24 PM
Thank you mikedee, you're doing a great work for compiz.
I'll wait for you patch.

Pierpaolo

cornelius
May 2nd, 2007, 01:18 AM
I just sent a patch to the ML for override_redirect matching:
http://lists.freedesktop.org/archives/compiz/2007-May/002102.html

With this patch and the latest animation.c and animation.schema from git, i.e.
git clone git://git.opencompositing.org/compcomm/plugins/animation
the problem should be gone.