Recently, compizfusion has been installed in Ubuntu, and the 3D effect is really ideal. I feel that the best thing is to switch the number window (Flip and Cover) and the similar effect of Apple's magic lamp. However, the effect on the lamp is always too fancy, not as smooth as Apple, which is not easy to understand. Compiz settings show that this is mainly caused by one of the parameters. In CompizConfig-& gt; Effects-& gt; Animations-& gt; EffectSettings
Recently, compiz fusion has been installed in Ubuntu. The 3D effect is really ideal. I feel like the best thing to do is switch the number window (Flip and Cover) and the effect similar to Apple's magic lamp. However, the effect on the lamp is always too fancy, not as smooth as Apple, which is not easy to understand. Compiz settings show that this is mainly caused by one of the parameters. In CompizConfig-> Effects-> Animations-> Effect Settings-> Magic Lamp, the default value of Magic Lamp Max Waves is 3, which directly leads to the fancy Effect of the Magic Lamp, now, you need to modify it and change it to 0 to the Apple effect.
This is because Magic Lamp works like Genie effect in Apple MacOSX, and Apple has obtained a patent for Genie Effect, to avoid infringement of Apple's intellectual property rights, Magic Lamp was artificially limited by developers to prevent users from using Magic Lamp to produce "the same" Effect as Genie Effect. So how can we make the magic lamp settings work normally with apple?
Because of the open source code of linux and various GNU software, we have the opportunity to modify the magic lamp Effect of compiz fusion to make it smoother. After several hours of research, the problem was finally solved. The specific process is as follows:
1. Download the source code. The magic lamp effect in the animation to be modified is in the compiz-fusion-plugins-main package. I use 0.5.2. You need to download the source code and spec file of the Package first. You can go: http://devel.foss.org.my /~ Find in kagesenshi/repo/pub/, download the compiz-fusion-plugins-main.spec and compiz-fusion-plugins-main/plugin or .tar.bz2 in SPEC ). This package needs to be modified and repackaged. Taking fc7 as an example, you can put the two files in SPECS/and SRPMS/in/usr/src/RedHat/respectively, and the source code can be put in SOURCES.
2. modify. Install the source code package of. src. rpm first, and do not use the source code. Install src. rpm:
# Rpm-ivh compiz-fusion-plugins-main-0.5.2-0.2.fc7.src.rpm
After installation, the source code of .tar.bz2 is generated in SOURCES. After decompression, modify the file "animation. c" in "src/animation. Search for magic_lamp_max_waves. 3 To 0. After the change, save it and re-package it as the original .tar.bz2 file.
3. Delete the package from the original system. The dependency will delete the other three packages: compiz-all and compiz-fusion... extra/unsupported. Wait until the modified package is installed.
4. repackage the new compiz-fusion-plugins-main. Run in the SPECS/directory
# Rpmbuild -- ba compiz-fusion-plugins-main.spec
At this time, re-compile and package the package. After the package is completed, three packages are generated in RPMS/i386/. We just need to install the rpm package, install the required package with yum. After compiz-fusion-plugins-main is installed, you can continue to use yum to install the three packages deleted due to dependency.
5. Final settings. After the configuration file is installed, you can modify the configuration file directly in/usr/share/compiz/. xml. Search magic_lamp_max_waves 3 Change 3 to 0.
After the change, you can feel Apple's "Genie effect ......