Archived posts from a dozen years ago.

Delicious Transblurency [1]

19 April 2010

The ‘focus‘ word has many meanings, ranging from the optical concept of ‘good convergence of light rays generated by an object’ to the cognitive process of directing the attention to a particular target while ignoring other targets.
Now the interesting part: this concept can be used in computers too, especially in user interfaces, to direct the user to relevant information or to help him through a step-by-step process. How to do that? Since every image you see on screen is ‘on focus’ by default, you can easily unfocus unuseful information.

Blurring is the act of altering images so they appear out of focus. My Maestro[2] and other illustriuos people already talked extensively about this topic here on planet KDE. However you don’t improve the world until a technology becomes available to everybody, right?

Then some days ago I read on notmart‘s blog that plasma and kwin supported blurring the background on windows.. so I rebuilt KDE4 svn, restarted it, and… boy.. does it make a difference! Look at Marco’s blog or at this picture I stole from him! All the popups become instantly more readable, even krunner does, and you immediately get the feeling that the plasma panel and all the systray applets really are above your desktop and they look as they were made of some glass/plastic material.

So: why limiting this just to some plasma applets? Well, I think that the usage of this effect must be wise, however I wanted that for my app too…

…’cause I like eye-candy! 😉

After a quick tour through the beautiful KDE svn I grabbed all the needed source code and loaded Fotowall in creator. Since I already had the structure for the blur-behind on windows in place, adding the KDE4 effect was really easy. Here are some samples of what you can get:

Fotowall using KWin's new Blur effect.

To activate the back blur you need:

  • obviously an application with a transparent background. Qt easily allows to work with transparency on top-level windows.
  • you have to enable the “blur” effect in kwin’s “desktop effects” configuration.
  • a couple of lines of code to ask kwin to activate blurring to your window.

Here is the code that does the magic:

#if defined(Q_WS_X11)
/**
  Blur behind windows (on KDE4.5+)
  Uses a feature done for Plasma 4.5+ for hinting the window manager to draw
  blur behind the window.
*/
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <QX11Info>
static bool kde4EnableBlurBehindWindow(WId window, bool enable, const QRegion &region = QRegion())
{
    Display *dpy = QX11Info::display();
    Atom atom = XInternAtom(dpy, "_KDE_NET_WM_BLUR_BEHIND_REGION", False);

    if (enable) {
        QVector<QRect> rects = region.rects();
        QVector<quint32> data;
        for (int i = 0; i < rects.count(); i++) {
            const QRect r = rects[i];
            data << r.x() << r.y() << r.width() << r.height();
        }

        XChangeProperty(dpy, window, atom, XA_CARDINAL, 32, PropModeReplace,
                        reinterpret_cast<const unsigned char *>(data.constData()), data.size());
    } else {
        XDeleteProperty(dpy, window, atom);
    }
}
#endif

And then you can activate the blur on the caller widget with:

    kde4EnableBlurBehindWindow(winId(), true);

You could add the back blur to your application too, however I advise you that the interface is not standardized, so don’t blame either me or the kwin authors if something changes. Here is another picture, because everybody loves them 😉

Another back-blurred screen in Fotowall.

And now, as a side note, a picture from my new work place: the beautiful city of San Diego, blessed by the sun and by a ton of great programmers that by some chance happen to be co-workers of me 😉 With all the blue sky and long days, I can’t imagine a more inspiring place for making new blog posts and code experiments!

Notes:
[1] obviously the name is completely made up 😉
[2] Italian word meaning “teacher” as in school or life teacher

Comments
5 Comments »
Categories
Computer Graphics
Tags
avanguardia, creativity, fotowall, kde4, planetkde, qt, x.org

Cuteness 4.6

27 September 2009

Seven days after the release of the Tech Preview 1, we released the latest stable Windows build of Fotowall [1] that was based on Qt 4.6. Somebody could argue that this is a bit imprudent. We did that because the benefits of the 4.6 release are worth the risk of the move!

Indirect Benefits, or ‘what you get for free’

  • Improved quality and better speed in the OpenGL QPainter
  • Better speed in the GraphicsView framework

Direct Benefits

  • Animation Framework: this simply r0cks! I don’t know about the whole Kinetic stuff, I just mean the ability to create simple property animations.
    I don’t have a video to show you but just take a look at the Fotowall’s Top-Bar, the tabs appear and disappear with a nice and smooth grow-shrink animation, that make the program look soo 2009-ish! finally!
  • QNetworkReply::isFinished(): thanks to this method I could implement a smart time-saver: when the user starts to drag a flickr picture, Fotowall starts downloading it. It can happen that, upon drop, the content has already been completely downloaded (so it can be placed in the canvas) or partially downloaded (so the used only needs to wait for the missing percent)

Drawbacks

  • There are some graphics glitches when animating the opacity property of a QGaphicsProxyWidget (in OpenGL)
  • Even by setting the QGraphicsItem::ItemSendsGeometryChanges flag, the previous behavior is not perfectly restored (we used itemChange, and the new behavior doesn’t allow Fotowall’s mirrors to sync properly to the objects)

Movie Time!

I’ve tried hard to record a screencast about the Cuteness & Performance of Qt 4.6, but in the end I had to use my camera.

[youtube width=”500″ height=”305″]http://www.youtube.com/watch?v=tVzzF_ft7uc[/youtube]

Thanks Nokia for this great release! 😉

[1] Fotowall is a creative program to mix local and online graphics content and build original work.

Comments
14 Comments »
Categories
Computer Graphics, Interests
Tags
avanguardia, creativity, figosità, fotowall, graphicsview, open source, planetkde, planetqt, qt

Fotowall 0.8

26 September 2009

Fotowall 0.8.2 has just been released and we’re already getting some great feedback 😉

New features in Fotowall 0.8

Cherry picked cherry features from the delicious 0.8 release:

  • Now you’ll be able to deform text changing the shape of its baseline visually (see the “Fotowall” string in the image above and its Bezier control points)
  • Pictures can be cropped to a certain area, for example to select a single person from a group. Also picture’s transparency can be adjusted, to create nice fading effects
  • A lot of work has been put into enabling OpenGL acceleration, really useful if your canvas has 100+ semi-transparent objects 😉
  • You can now work with a transparent window (or blurred, on Vista)
  • The top-bar is now context-sensitive. We’ll move more and more content properties to that instead of the old content configuration window

Plus a lot of user suggestions and fixes have been implemented to make Fotowall always easier and intuitive to use. The 0.8 release now ships in 6 different languages: english, italian, french, german, brazilian, polish. You can even contribute your own translations.

But our favorite news is that Fotowall now has it’s official website 😉

What about next: we’re working hard on the 0.9 release and we already have lots of new features! You’ll be surprised by what you’ll be able to achieve with the next version 😀

A final special thank to Zack Rusin who created the Text on path example that was the basis of our shaped text.

Comments
7 Comments »
Categories
Software
Tags
avanguardia, creativity, figosità, fotowall, graphicsview, open source, planetqt, qt, wallpaper

Fotowall One Hundred Thousand

5 September 2009

Today Fotowall reached the 100’000 downloads mark! It’s a HUGE result, and it’s even more incredible if you consider that we have no homepage, no advertising other than word-of-mouth and those are the downloads of the XP/Vista release only (we have the linux and mac releases too)!
If you haven’t downloaded the latest release, do it now! 😉

To celebrate this result, here is a short teaser for the upcoming version (that will be out in one week):

[youtube=http://www.youtube.com/watch?v=lggxIIQh7-U]

A big thank you to the team: Arnaud Tanguy, Alessandro Portale, Andreas Brech, Georges Dubus, and translators Martin Zimmermann and Marcio Moraes.

Comments
Comments Off on Fotowall One Hundred Thousand
Categories
Senza categoria
Tags
fotowall, qt

Fotowall 0.7

24 July 2009

Fotowall 0.7.1 has been released today! Get it while it’s hot 😉

FotoWall 0.7

New features in Fotowall 0.7. In the top left area you can see the web image selector.

With this release Fotowall integrates with the deep web. You can now search the network with the embedded flickr search pane and add the images to the canvas. This opens up an infinite can of content, all available for your pleasure ;-).

Other relevant features include:

  • support for Qt 4.6 (brings animations and transparencies)
  • usability fixes (rubberband selection, deletion, etc..)
  • cleaner design (new icons, loadable frames, better property dialogs)
  • italian, french and german translation
  • check for updates and web links

Don’t hesitate to ask for missing features and always remember that you can rotate pictures by dragging corners with the right mouse button 😉

Enjoy your Fotowall!! 😀

Comments
9 Comments »
Categories
Senza categoria
Tags
avanguardia, figosità, fotowall, graphicsview, planetqt, qt

Fotowall 0.6

29 April 2009

L’escalation verso la 1.0 continua con una nuova milestone 😉

Nuove caratteristiche presenti in FotoWall 0.6

Nuove caratteristiche presenti in Fotowall 0.6

Se non vi sono bastate le tonnellate di migliorie della 0.5 ecco che arriva una 0.6 che quasi raddoppia la base di codice e introduce una serie di caratteristiche che danno un taglio professionale senza intaccare la facilità di interazione e la libertà di giocare con Fotowall 😉 E ancora non avete letto nulla… Read the rest of this entry »

Comments
5 Comments »
Categories
Senza categoria
Tags
avanguardia, figosità, fotowall, graphicsview, open source, posterazor, qt, qtsoftware

Fotowall 0.5

12 April 2009

Oggi ho rilasciato Fotowall 0.5!

Show off dell'elemento Testo di FotoWall 0.5

Show off dell'elemento Testo di Fotowall 0.5

Tra le migliorie:
– creazione e stampa di CD/DVD (by Tanguy Arnaud)
– elemento Testo (completo di Editor visuale HTML-like 😉 )
– più di 50 fix sull’usabilità!
– effetto GLOW

Puoi scaricare qui i sorgenti se ti piace studiare il codice, oppure scarica direttamente il programma per Windows (2.8MB).

Un rigraziamento SPECIALE all’amico Ilan d’Inca per il supporto, il Beta-Testing e le ideone 😉
Al carissimo Ilan dedico questa release!

Comments
6 Comments »
Categories
Senza categoria
Tags
creativity, figosità, fotowall, qt

Fotowall News

6 April 2008

As many people requested, now Fotowall has become really Open Source (GPLv2) and is publicly hosted on the net!!

Its new home is http://www.enricoros.com/opensource/fotowall, and for celebration 0.21 was released, with a new Icon, WinXP+ binary file and the full-res version of tutorial video I put on YouTube.

Suggestions are more than appreciated,
Thank you all for your support and drive 😉

Comments
Comments Off on Fotowall News
Categories
Senza categoria
Tags
creativity, fotowall, open source

Fotowall – Photo Collection Wallpaperizer!

8 December 2007

update: this article is really outdated, we have a website now!
see the new cool stuff @ www.enricoros.com/opensource/fotowall 😎

You always wanted to create quick graphics composition from a bunch of photos you have.. and now your dream came true! With Fotowall you can drag some pictures in the canvas, place them as you like, put a title on them, change the colors and the gradients the way you like and finally render a poster-sized graphical composition of them!

Take a look a this quick video tour. In less than 2 minutes you will see the whole process, from installation to the rendering of a wallpaper.

[youtube=http://www.youtube.com/watch?v=mmzMY0mfRnc]

You can find the source code on the website. The program runs on every Linux or Windows (XP, Vista) out there! (So even Ilan will be able to do a “two hands saw” in his awesome OS!! :-))

Thanks goes to David Eccher for his suggestions!
You rock man 😉

Comments
3 Comments »
Categories
Senza categoria
Tags
fotowall, graphicsview, wallpaper

Blogroll

  • Ariya Hidayat's Blog
  • Davide La Rosa
  • PlanetKDE
  • Pollycoke
  • Qt Labs
  • Yanko Design
  • Zack Rusin's Blog

Recent Posts

  • How to recognize a revolution
  • KDE 3 on “The Social Network” movie
  • Delicious Transblurency [1]
  • Grab one, it’s free!
  • Gift a cool idea!

Tags

amarok Android avanguardia cheating colorpicker creativity curriculum figosità fotowall future graphicsview heroes kde3 kde4 life M31 multi-touch nokia open source planetkde planetqt posterazor qt qtsoftware statistics summer of code wallpaper x.org

Archives

  • April 2011 (1)
  • September 2010 (1)
  • April 2010 (1)
  • January 2010 (1)
  • December 2009 (3)
  • October 2009 (1)
  • September 2009 (4)
  • August 2009 (1)
  • July 2009 (3)
  • June 2009 (3)
  • May 2009 (2)
  • April 2009 (3)
  • March 2009 (1)
  • January 2009 (2)
  • May 2008 (1)
  • April 2008 (1)
  • January 2008 (2)
  • December 2007 (1)
  • November 2007 (1)
  • September 2007 (3)