Compiz is a tool to create various Desktop effects in various Linux distros. Desktop cube, Water effect, Wobbly windows are some of the effects. It uses OpenGl library as an interface to the graphics hardware.
Open your terminal(ctrl+alt+t in Ubuntu) and type in the following command -
sudo apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-plugins
Configuring CompizConfig settings manager
Open CompizConfig settings manager by searching for ccsm on Dash.
Scroll down to Desktop section. Click on Ubuntu Unity Plugin.
Note : If you are not able to launch ConpizConfig Settings Manager from Dash you can simply type ccsm in terminal to open it.
Next click on the Ubuntu Unity Plugin. Inside it make sure Enable Ubuntu Unity Plugin check-box is ticked.
Click Back to go to the main menu. Now you can choose which ever effects and plugins you wish to enable/Disable.
Enabling Desktop Cube
By default you will have Desktop Wall enabled. In your CompizConfig Settings manager tick the Desktop Cube and Rotate Cube options under Desktop section.
Now go to General section and click General Options.
In it go to Desktop Size Tab and select what sizes you prefer. By default a cube will have 4 vertical side, you can change it to the value you want.
Now go back to main menu by clicking Back button. You are now all set for Desktop Cube now. Check it's working by clicking combination ctrl+alt+left/right. You can also use ctrl+alt and rotate using mouse.
Following is a screen shot from my Ubuntu 12.04.
Enabling Wobbly Windows Effect
This is again very simple. In the main menu go to Effects section. Here tick the Wobbly Windows check box and you are all set.
Drag some windows to see the effect. Following is again a screen shot of Wobbly Windows effect.
Note : You may get some notifications to disable some features while enabling some. As i mentioned previously for example you wish to enable Desktop Cube Compiz will ask you to Disable Desktop Wall first. So act accordingly.