Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Graphics Software

Fast Alpha-Blending In Your GUI 592

visnu writes: "I've been waiting for this for 2 years now -- a REAL glass-like windowing system. And yes, it's Microsoft to do it. Ever since W2k came out, and they included alpha-blending in the GDI, I was tempted to write a little tool to turn on any window's transparency, but of course I'm way too lazy to do that. These guys weren't though: glass2k runs in the systray and handles turning on any window's transparency. yes, here's a screenshot. I'm not too sure about the speed in W2k, but in XP w/ the newest Nvidia drivers and a somewhat recent video card, it's hardware accelerated, and yes, you should be drooling." Update: 11/26 19:00 GMT by T : Links updated, so hopefully you'll be able to actually get to the content again :)
This discussion has been archived. No new comments can be posted.

Fast Alpha-Blending In Your GUI

Comments Filter:
  • Evas (Score:2, Interesting)

    by vandan ( 151516 ) on Monday November 26, 2001 @06:38AM (#2612565) Homepage
    Check out http://www.enlightenment.org/pages/evas.html (sorry I can't figure out linking in Slashdot. I think my account is broken) Evas from the new Enlightenment does this sort of thing (hardware alpha-bending, anti-aliased text, etc). There is a neat little demo included in Evas which shows off the features. I'm not sure about transparency (which I suppose this article is about). I think I remember reading some threads on the E developers list where Rasterman said that there are some very dirty ways of achieving this (transparency) with a BIG performance hit, but he wasn't interested in supporting it seriously until X offered some better tools. Or something. Anyway, if you're interested, check out the mailing list archives.
  • by Sludge ( 1234 ) <[gro.dessot] [ta] [todhsals]> on Monday November 26, 2001 @06:42AM (#2612574) Homepage

    If this was bound to a key that was togglable on my keyboard, it would be nice. I could hit the key, and see where each window lies. Perhaps making the windows transparent and alt-tabbing through them while putting a red border on each one instead of having them pop up would be nice.

    Whatever the case, it looks kind of hokey. I would like to see something like this where the widget graphics have alpha channels. Right now everything is one level of transparency. One step at a time, right?

  • Re:Drool? Hardly. (Score:2, Interesting)

    by gazbo ( 517111 ) on Monday November 26, 2001 @06:44AM (#2612584)
    Clearly to some extent this is mainly a neat toy rather than a useful tool.
    However, I can think of many times when it would be useful, such as when I have many windows open from different apps, and I need to cross reference the data and enter it into a final window (which always seems to be an ssh client - strange) Currently if there are too many windows, it becomes impractical to shrink them all down so I can see them at once. Hopefully this should allow a lot more text to be seen through overlapping windows; whilst overlapping text would get confusing, it could recover a lot of space lost due to excessive window chrome.

    But to reiterate my first point, it is just really neat.
  • by Osty ( 16825 ) on Monday November 26, 2001 @06:45AM (#2612588)

    Applying alpha blending to all windows is not really an interesting problem. There are some hoops to jump through, and you have to be realistic about what you expect, but otherwise it's a simple, straightforward process (don't believe me? This article [microsoft.com] gives you 90% of what you need to write such a tool. The other 10% is bookkeeping.)


    More interesting is applying alpha blending to specific applications. This lets you be much more creative by doing something that complements an application. A translucent Internet Explorer is not interesting or useful (in fact, it's likely a drag on your system, and hard to read). A translucent Winamp [daishar.com], on the other hand, is a match made in heaven. What I'd really like to see is more application developers taking the time to add layered windows to their applications where it's appropriate, rather than taking this one-size-fits-all type of approach. But then, I've been playing with layered windows for a year and a half now, so maybe I'm just not getting the "wow" experience anymore.

  • by ramseys ( 531979 ) on Monday November 26, 2001 @06:47AM (#2612592)
    For what it's worth, OS X has the capacity to do this as well (and with WindowShade, you can phase any window on the screen). I haven't found the feature incredibly useful, yet, but it sure does look cool.
  • by Osty ( 16825 ) on Monday November 26, 2001 @06:51AM (#2612601)

    I'd like to alpha blend a few things though: winamp comes to mind, ...

    Lucidamp [daishar.com] to the rescue (yes, shameless pimpage. but I don't care!). Lucidamp has been applying alpha blending to Winamp for the better part of a year and a half (okay, so the first version sucked). There are others out there that will do this, both in Winamp plugin form (such as Lucidamp) and one-size-fits-all form like Glass2K, but I believe (and I'm biased here) that Lucidamp is the best when dealing only with Winamp.

  • Re:Been There... (Score:2, Interesting)

    by class_A ( 324713 ) on Monday November 26, 2001 @08:05AM (#2612728)
    It's good to see that transparency is now accelerated through the Windows nVidia drivers. Hopefully this will further improve Mac OS X window performance if similar changes are integrated into the Mac nVidia drivers.
  • Re:OS bloat (Score:3, Interesting)

    by dhopton ( 252883 ) on Monday November 26, 2001 @08:32AM (#2612769)
    B1 (or maybe one of the interims between this a b2) of Win2K had this. B1 was released in september 1999. It's been sitting under the hood in GDI for bloody ages. I remember somone wrote an app during the beta that allowed you to do JUST was glass 2k does. So even that app is old.

    Yes, maybe XFree has it a year ago, but that puts it to mid-2000ish. Still after Win2K.

    Who cares which came first? What matters is how it's used. And on one or two windows, and in other places, it works VERY well. But for your whole desktop... no way.
  • by Bander ( 2001 ) on Monday November 26, 2001 @08:47AM (#2612799) Homepage
    I'm using fake transparency with tint on my Eterms, and it's a lot better looking than that screenshot. Mainly because the top terminal is actually readable (only the background shows through, not other windows) -- the screenshot for the win32 Glass thing is a muddled mess.

    Bander

  • Cute toy (Score:3, Interesting)

    by Quila ( 201335 ) on Monday November 26, 2001 @09:11AM (#2612859)

    It looks like one of those things you install for a couple of minutes for the gee-whiz factor, and then delete. Worthy of a front-page story? Maybe on a slow day -- it is cute -- but:

    I've been waiting for this for 2 years now -- a REAL glass-like windowing system. And yes, it's Microsoft to do it.

    Seriously, where has 'visnu' been, and why isn't Timothy editing? This maybe a first for MS, but from its inception, Mac OS X has had not just alpha blending, but a completely new compositing system has been a central feature of Mac OS X from inception. And they didn't just slap alpha blending on current windowing, making it harder to use or just to make it do cute my-mouse-has-a-shadow tricks, they integrated it into the usability of the desktop.

    Strange to see a /. story claiming MS innovation where there isn't. You'd think it would be the other way around.

  • by swb ( 14022 ) on Monday November 26, 2001 @10:08AM (#2613007)
    When will we see more functionality additions instead of just eye-candy? Admittedly translucency can be considered a navigation functionality, but its seldom talked about as one.

    One thing that they (GUI developers -- KDE, MS, Apple, etc) should implement RIGHT NOW is a feature I've seen on SGIs: A wheel widget that scales the contents of a file browser window. Even at 1600x1200 with a dinky font, I work with plenty of directories that just aren't easily navigable with a full-screen window. Too much scrolling. The ability to scale the contents of the window would be awesome, especially if it was coupled with a magnifying lens area arround the pointer.

    Even normal windows with no content scaling would be more usable if we could hold a key and get a panning-type movement feature for windows with more content than screen space. I know plenty of applications do this, but this should be a base feature of the file management tools as well.

    The point is, too many recent "developments" in GUIs seem to have more to do with making it fit stylistic or visual appearance goals and less with making the windowing system MORE USEFUL. Nice to look at makes it more enjoyable, but more useful means I can get the job done faster and get more time to look at something else.
  • by tweakt ( 325224 ) on Monday November 26, 2001 @10:16AM (#2613040) Homepage
    What we really need is an option to lock a windows draw order to the front, but send it's click focus to the back (or normal layering).

    This is extremely useful for apps that I want to use as "window decals", like resource meters, winamp, AIM, etc.. I want them overlayed onto my screen. BUT. I dont want them to have click focus, cause then they get in the way of the foreground app. I want them draw over everything, so I can see them, but I rarely need to interact with them. If I do, I just bring them to the foreground (click focus) like I would do normally.

    Doesn't that make more sense?
  • Re:Been There... (Score:2, Interesting)

    by Refrag ( 145266 ) on Monday November 26, 2001 @11:16AM (#2613290) Homepage
    "Also, please note that Windows 2000 did this before OS X did this. Not that it matters, but it's true."

    Not really. The system that Mac OS X uses is from the NeXT OS. So, it predates Windows 2000.
  • by John_Booty ( 149925 ) <johnbooty@NOSPaM.bootyproject.org> on Monday November 26, 2001 @11:19AM (#2613309) Homepage
    To me, translucency in apps would be much more useful if you could have varying levels of translucency within the same app. For example, when you make a text-editor window transparent, it gets really hard to read because the text gets transparent too.

    So it would be nice to vary the translucency of window text/icons separately from the rest of the window, if desired.
  • Re:Drool? Hardly. (Score:2, Interesting)

    by Suidae ( 162977 ) on Monday November 26, 2001 @12:00PM (#2613538)
    How about something useful like making some dalogs fade in over half a second or so BEFORE they take input focus.

    Nothing is more irritating than typing along and having an AIM window or whatever pop up and take the last 5 characters you typed. I've even had this happen when I was typing passwords. Highly annoying.

    Maybe the WM could count the number of keystrokes made in the previous second or so to decide if it needs to fade in new dialogs before they take focus.
  • Re:Been There... (Score:3, Interesting)

    by bnenning ( 58349 ) on Monday November 26, 2001 @12:12PM (#2613601)
    The system that Mac OS X uses is from the NeXT OS. So, it predates Windows 2000.


    NeXT used Display Postscript for its imaging, which as far as I know had no support for alpha blending. Apple wrote a new graphics layer (Quartz) from scratch for Mac OS X.

  • by hexix ( 9514 ) on Monday November 26, 2001 @12:33PM (#2613720) Homepage
    The problem with that is it's not supported by all the video drivers in XFree86 4.x

    For example it just recenty started to support my Rage Mobility LM chipset, before that I had no RENDER support so stuff like anti-aliased fonts in KDE wouldn't work.

    And I *think* that's the reason why people aren't really using it for transparency and stuff. Cause if it's not supported on a persons computer I'm not sure if there is a nice clean way to handle that. I keep hearing about how they can't add it to stuff like KDE or GNOME because so many people wouldn't be able to use it.

    What I really want to know is why someone hasn't put together a special terminal emulator that uses this. Because then just the people who have the render extension could download it and use it, and the people who can't will just have to hope that at some time they'll get RENDER support too.

    Perhaps I should look into that, but I think it's a little too advanced for me to take on.
  • DirectFB can do that (Score:2, Interesting)

    by i_am_nitrogen ( 524475 ) on Monday November 26, 2001 @04:24PM (#2615324) Homepage Journal
    Not to mention that this has been on Linux for quite some time now. DirectFB [directfb.org] supports translucent windows, as do a few other things (including KDE3, as mentioned previously). It's not terribly useful yet, as this would require rethinking much of the way people design GUIs, but some day in the future this could prove to be quite useful, especially in virtual reality environments.
  • by SuperRob ( 31516 ) on Monday November 26, 2001 @07:02PM (#2616258) Homepage
    No, it's not useful when it's not useful. WindowFX has done alpha in Win2K for a long time.

    The problem is, you need to make certain windows transparent, and only on a selective basis. A clock app, for example, would be a good candidate for alpha. WinAMP is another. Something you want to remain "on top" but still want your whole desktop real estate for.

    Hell, I think having the Windows Taskbar alpha out instead of roll away is better.

    Alpha is cool, but not intrinsically useful. It depends on the app, it depends on the user. But the way it's been implemented so far is just flawed. Not everything should be alpha'd.

    Now what would be really cool is to SCALE windows with the mouse wheel. Roll a window away, and roll it forward. 150% down to 50% (so you can't use them.

    Hell, make the mouse wheel a BALL. Now you can rotate your windows in 3D. Need more room? Just tilt that window away from you a bit. Add a titlebar to the side so you can tell what's there.

    With 3D chips in nearly every computer these days, this shouldn't be hard.

Kleeneness is next to Godelness.

Working...