Its all in the detail

Compare the two screenshots:

Continuous Dim
With Vignetting
Vignetted dim

The latter uses cairo to render a vignette, which dims windows more around the edges than in the center. It does this by rendering a simple vignette texture and then compositing it on to the window itself. The vignette hooks in seamlessly with all of the other compiz effects since it renders it’s texture through glAddGeometry and glDrawGeometry ()*. Then it fades in and out accordingly with the existing window brightness.

I think it looks pretty. You can grab the source here.

* It is also nice that I perfected this technique since it is applicable to a few other ideas I had, like per-window annotations.

3 thoughts on “Its all in the detail

  1. i write this idea here because ubuntu brainstorm site its not the right place. but imagine a 3d desktop and inside ur` compiz cube are “living” the icons… icons with depht… i hope i write this well and .. i am not a developer so i can`t help u. but i can see it. when i turn the cube, the icons are alive. in its transparency… just imagine that as a plug in. noroc🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s