Slashdot Mirror


Fast Alpha-Blending In Your GUI

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 :)

49 of 592 comments (clear)

  1. Great for always on top windows by snake_dad · · Score: 4, Insightful

    There are some apps that I would like to run "always on top", but most of the time they get in the way. This would sure be a nice way to still sorta see them .

    Great stuff, now implement it for NT4 and win98 :P

    --
    karma capped .sig seeking available Slashdot poster for long-term relationship.
    1. Re:Great for always on top windows by DaEvOsH · · Score: 5, Insightful

      The required API's needed to do this in any windows than ME or NT4 is not there. It can be done 'manually', but it is very slow, difficult to do well (I have done it in one of my progs but at the end disabled it when the prog detected the alpha api was not there) and brings problems when running with other programs that alter the way a window is shown.

      It is a pretty esy thing to do. For win32 programmers:

      1. Find the window handle you want to alpha blend. (say, hwnd).
      2. Add the WS_EX_LAYERED extended style to the window with this call:
      SetWindowLong (hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
      3. Call SetLayeredWindowAttributes. Look up MSDN for the info.

      Also, this API in Win2k does not seem to work well in some video cards - windows which update themselves a lot will cause problems i.e. an opengl window, etc (my program has a few of them).

  2. It's nice and all that... by AltGrendel · · Score: 5, Insightful

    ...but it strikes me as "Not that useful". Most of my users get confused with standard GUI look and feel. I'd hate to think what this would do to their poor little minds.

    --
    The simple truth is that interstellar distances will not fit into the human imagination

    - Douglas Adams

    1. Re:It's nice and all that... by be-fan · · Score: 5, Insightful

      When its on Windows, it's not useful. When its on Linux, its the great, awesome, ground-breaking new technology that Packard dreamed up.

      --
      A deep unwavering belief is a sure sign you're missing something...
    2. Re:It's nice and all that... by SuperRob · · Score: 3, Interesting

      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.

  3. Mac by zephc · · Score: 3, Informative

    There is an Extension called PowerWindows that will do that with live dragging of windows in MacOS 8/9. You can adjust the level of transparency too

    --
    "I would say that 99 per cent of what my father has written about his own life is false." - L. Ron Hubbard Jr.
  4. Nothing new by Mwongozi · · Score: 5, Informative
    Stardock have an application called WindowsFX which allows you to turn on transparent windows selectively, for example, just for Notepad windows, which is much less of a CPU hit than turning it on for everything. It also lets you add shadows and various other graphical trickery to windows.

    It's rather cool, but not free, in either sense of the word.

    1. Re:Nothing new by Griim · · Score: 3, Informative

      I set up WindowsFX here, and I used it for all of 1/2 hour before scrapping it. I thought that having a couple of 'always on top' windows as transparent would be cool, but it's really quite annoying once you use it. And this was just my shell window.

      I find it more useful to be creative in the layout of your windows, so you can see the important parts of all of them (eg. my irc-shell window resides in the lower left of the screen, and I can only see the bottom three lines, but that's all I need to see).

  5. Thanks, by Anonymous Coward · · Score: 5, Funny

    Now I need to stack *10* maximized windows in front of my porn when mom comes. If I put just one like I'm doing now she would see through.

  6. it's vaguely interesting. by matthayes · · Score: 4, Funny

    Athough I can't really think of any practical reason for it - when I'm working / concentrating I usually minimise all but a couple of windows anyway.

    And I think it could be a little dangerous while surfing at work. You know, the boss comes around and you swiftly alt-tab to your work window...to find that it is 90% transparent.

    Does look nice, though.

    Just a thought,
    Matt.

  7. Let me bind this to a toggle key on my keyboard by Sludge · · Score: 4, Interesting

    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?

  8. XFree86's RENDER extension by BESTouff · · Score: 4, Informative

    If you have Xfree86 4.x, you have the RENDER extention which does the same thing. See http://www.xfree86.org/~keithp/render/ for a description (screenshot at the bottom). Now you just need the guy who'll patch Gtk to use this.

    1. Re:XFree86's RENDER extension by hexix · · Score: 3, Interesting

      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.

  9. Shiny! by fhwang · · Score: 5, Funny
    I think I'll design a desktop theme called "The Bedazzler". And basically what it will do, is it'll show the same windows and widgets that we've all been stuck with for twenty fucking years, only they'll be covered in rhinestones and glitter! You'll be able to customize your own rhinestone patterns, to say things like "Groovy!" and "Fan-tastic!"

    And this is how we'll enter the brave new era of computing: Not by actually designing and using tools to make our lives more productive, convenient, and satisfying, but by slumping in our chairs and staring at useless eye-candy while we touch ourselves. I can't wait for the future.

  10. Targetting specific apps by Osty · · Score: 3, Interesting

    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 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, 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.

  11. OS X does this too ... by ramseys · · Score: 4, Interesting

    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.

  12. Operation Brainfuck by Eloquence · · Score: 4, Insightful
    Overlapping windows were a pretty brain-dead idea to begin with. This is increasingly being realized by developers who add sidebars and "panels" to their applications which can be moved and resized (knode, the KDE newsreader, implements this quite fully, although it's a bit awkward to use). The information below the window you're overlapping is cut in half: A browser window you're overlapping might show you text like

    as not a good idea
    creasingly being interested
    ot to be confused with the

    i.e. noise. The only purpose it serves is to faster identify the window you're dealing with. This has become unnecessary with the invention of the taskbar. Further additions to this concept, like window summarization and application-specific taskbars, make it even easier to use. If you want to view a lot of information simultaneously instead of having everything in full-screen mode, a smart window-manager like ion will rearrange windows automatically in useful tiles. Additional usability can be gained with clever hotkeys for application-switching.

    But while overlapping windows are stupid, transparent windows are really part of a vast right-wing conspiracy to stupidify the masses by making computers incapable of displaying information. The next step will be window-spectific screensavers, which turn on after a specific period of inactivity in a single window. Just you wait. Thanks to transparency:

    • Information becomes unreadable, especially with unfortunate color combinations.
    • Information you think is there is actually part of another window -- have fun editing that picture.
    • When two windows overlap with the wrong alpha-blending setting, you can no longer be sure which one is on top without looking at the taskbar or focus (in this screenshot, thanks to additional braindead color gradients in the title bars, this is especially hard).
    • Even your calculator will use more RAM than Mozilla ..

    If you like eye-candy, you may "drool" over this one and get your brain fucked by the Illuminati. A frontal lobotomy may be a quicker solution though.

    1. Re:Operation Brainfuck by hattig · · Score: 3, Insightful
      One good reason for the emergence of overlapping windows: low screen resolutions. You didn't have a choice when you were running at 512x384 or 640x480.

      It is the brain-dead operation of the GUI in Windows (active window has to be on top) that necessitates such nasty hacks as this. A desktop that allows the active window to be behind another window removes this necessity altogether (for when you are e.g., copying text from one window into another).

      Other good systems include multiple desktops, as provided by all good X Windows Managers and various windows hackons. Amiga Screens were another great system. Screens and multiple desktops are like having a large desk (plenty of space to spread your pens, paper, notebook, encyclopaedia, etc), whereas Windows by default is like trying to do all your work on a desk the size of a mousepad.

      There are times of course when overlapping windows are not required. Multiple webbrowser windows when a tabbed interface within a single browser is adequate, for example. Need to display 2 web pages at once - explicitly open two windows, or split the current web page view in two horizontally or vertically, a function provided by Konqueror.

  13. OS X Does this too by Aqua+OS+X · · Score: 3, Informative

    Apps like WindowShade X will allow one to drop the opacity of windows in the OS X. It's quite cool to have an MP3 player rendering visuals at 30 percent opacity behind BBEdit or something ;).

    I'm fairly sure WindowShade X beat Glass 2k to the consumer opacity punch...but who really cares.

    Unfortunatly, the whole GUI in OS X is not hardware acellerated due to the fact that it is vector based. No current video cards support this... but they are going to have to eventually. PostScript is the obvisouse evolution of the 2d GUI.

    However, transparent windows still seem to work at a very respectable speed as long as they are not huuuuge with lots of animation. It's quite impressive actually... considering the graphics card does nothing really ;).

    And yes zephc, PowerWindows has been doing this kind of neet'o stuff for a million and 5 years. However it tends to be quite slow on older machines. But then again, the old OS 9 GUI was not designed for stuff like this. No one at apple cared to dump window buffering into the damn OS ;).

    --
    "Things are more moderner than before- bigger, and yet smaller- it's computers-- San Dimas High School football RULES!"
  14. Slashdot hypocrisy by The_Messenger · · Score: 4, Troll
    Slashdot likes Enlightment and the whole mess of other useless XFree86 GUI toys. Slasdot also likes MacOS X. Plenty of absolutely useless graphical gimmicks (i.e. fully transparent terminals with anti-aliased text shadows), but we rejoiced when it was released.

    But when some Windows-weenie slaps together a VB control in five minutes to do the same thing in Win2k, the readers get all bitchy and start complaining about how "useless" it all is. Well, duh. But why didn't you complain about MacOS X's uselessness too?

    I object to this story, too, but for a completely different reason: this isn't news. Windows 2000 has always had the ability to display transparent and translucent forms. Windows 2000 can do a whole load of other useless things with forms, too. Ask any Delphi developer -- I can't stand Delphi myself, but a lot of my friends use it -- and he'll show you dynamic desktop magnification and a bunch of other demos that the development suite comes with. It's not news. It may be news to Slashdot's "We only use Windows for games, and Quicktime, and word processing, and financial apps, and graphics work, and email, and web surfing -- but we use Linux for writing Perl scripts, so we're hackers, right?" loser crew, but it's not news to anyone else.

    --

    --
    I like to watch.

  15. Mirror of the screen shot by Turmio · · Score: 3, Informative

    In case the server can't handle the /. effect, here's a mirror of the screen shot: http://shakti.tky.hut.fi/slashdot/glass2k-screensh ot/

  16. 'What's wrong?' by DABANSHEE · · Score: 3, Insightful

    You load that up on the average bloke's computer & they'd be complain about their buggy Windows desktop till the cows come home.

  17. Ho Hum, Already Done by under_score · · Score: 5, Informative

    Over a decade ago in the NeXT computers. Transparency (alpha-channel) was part of their graphics system (including their windowing system built using Display Postscript), pretty much from day one. I wrote software which depended on it - some funky drag-n-drop stuff which used transparency in icons. It was fast back then on a 25MHz 68040 - eighty times slower clock speed than todays high end processors!!!

    1. Re:Ho Hum, Already Done by spitzak · · Score: 3, Informative
      Fairly true, however there are two "alpha compositing" systems of interest.

      One is rendering with alpha, into a window. The result is an image that shows the result of the rendering. You can set your "paint" to transparent, and fill a shape, and the resulting image shows a mix of your paint and what was there before. But you cannot then seperate it and recover the image that was there before you painted it. This is what NeXTSTep's PostScript rendering interface provided (though it was more complex than it should be).

      The system being shown here is dynamic compositing of window images to the screen. You can recover the behind image (move the front window away and it reappears without the application having to redraw it). NeXTStep did have the main portion of this, which is a off-screen backing store (or double buffer, or pixmap, or whatever you want to call it). However they always composited it as though the window was opaque. They could have added this alpha fairly easily. One obvious effect was that NeXt could do opaque window drags on hardware that was MUCH too slow to do it under X or Windows.

      As far as I can tell, alpha-based rendering and this alpha windowing are completely different and unrelated systems. You can have either one without the other.

      Also another common mistake: NeXT did not use "Display PostScript". NeXT used a much superior system (though I liked NeWS better) where the creation of windows and management of them was done with PostScript as well.

  18. Re:Been There... by Osty · · Score: 4, Informative

    Windows 2000/XP also does this natively. It simply doesn't expose per-window control of it through the UI. Each window does have its own alpha level, and it's up to the programmer to decide if s/he wants all windows the same or not. For a good example, check out Lucidamp, a Winamp plugin that allows you to set varying levels of alpha transparency on each of the four main Winamp windows, and also works with the Mikroamp Winamp plugin.


    Also, please note that Windows 2000 did this before OS X did this. Not that it matters, but it's true.

  19. PowerMenu by TummyX · · Score: 3, Informative

    It's not a big deal. I don't see why this story is on the front page.

    I wrote a small free app called PowerMenu which does the same thing and more. It extends every window's system/controlbox menu with new options like always on top and transparency.

  20. Transparency effect... by frleong · · Score: 5, Informative
    It's very easy, suppose that hwnd is your window handle:

    SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); SetLayeredWindowAttributes (hwnd, 0, 180, LWA_ALPHA);

    GUI programming in Windows is quite snappy.

    --
    ¦ ©® ±
  21. Overlapping windows rule by GregWebb · · Score: 3, Insightful

    Sorry, no.

    What if I want a large workspace, but I'm working on multiple applications? I create two or more windows with a total surface area greater than the desktop size and overlap them. I can switch more easily than via a taskbar (not so far to move the mouse), I can still drag items between windows, I can see what's going on in different windows. Say I'm comparing two lists of contents. Each window may well contain rather more than the list, but that's all I need at that point. So, I lay it out so I can see both lists and compare away, without losing the larger workspace in the primary application.
    Or maybe one is performing a task - by just displaying a portion of its GUI, I can monitor that task without losing a potentially large portion of my desktop for its full UI.
    The day a desktop GUI bans me from overlapping windows is the day I look for new GUIs.

    --

    Greg

    (Inside a nuclear plant)
    Aaaarrrggh! Run! The canary has mutated!

  22. Does anyone here get the point? by Dynedain · · Score: 5, Informative

    Sure, this stuff has been done before on other operating systems. Sure, Win2k has had it hidden in the API. THE POINT IS that this is being done by your GRAPHICS CARD....nothing on the processor end. Oh, and its a 54K yes 54K download, and is easy to use. Calm down people. Why start flaming someone without ever checking out what it is?

    --
    I'm out of my mind right now, but feel free to leave a message.....
  23. Glass and icing by viktor · · Score: 5, Insightful

    There might be a very good reason it's taken two years for the glass-like windowing system. And that would be that it isn't a good idea.

    Sure it looks pretty. It's technically cool. It's very nice eyecandy. But useful? Hardly.

    If our desktops were three-dimensional, there would be a point - in that case you could refocus on a window below your current. When refocusing, the frontmost window would be so blurry to you that it didn't interfere with your view of what was behind it.

    But desktops aren't 3D (and "fake" 3D doesn't work, refocusing requires that your desktop is not displayed on a single plane, as that plane only has one focus), and you can't refocus. What you get is just a blur of all windows that happen to be ontop of one another (and the background if you have a background/wallpaper image).

    I would guess that the only time that transparent windows help is if you have an OS/wm that does not offer workspaces or similar. The transparency might help cram an extra three windows onto the screen. Using workspaces you can just put those extra three on another workspace instead.

    I have yet to see anybody argue how great it would be if all books were printed on plastic rather than paper, so that we could see through them.

  24. Yup, 'tis an easy thing to do by Bothari · · Score: 3, Insightful

    Basically all you have to do is make a dll to hook the WM_CREATE message. Then you just have to check which type of window (or even which window).
    Easy-peasy, done in an hour or so, back when w2k came out.

    It *is* bloody useless, though, I only use it ... well, for the look of the thing ;)

  25. Screensaver by pacc · · Score: 3, Funny

    If you don't use a screensaver, eventually your windows desktop will be burnt into your monitor with disastrous results

  26. Its buggy... by glenebob · · Score: 3, Informative

    Well, it is nifty, I'll give it that.

    But, I can't find a use for it so far. Maybe if it could make *all* of those 'about' boxes semi-transparent, but there's no way it could know what's an about box and what isn't. Nothing else I tried looks useful in a transparency.

    And, it's buggy, or apparently so. After about 10 seconds' thought, I think it's Windows that's buggy. Big surprise there. The Windows console window won't do transparency at all, and sometimes it even draws incorrectly when it's behind a transparent window. It doesn't work with Media Player; in transparency mode, the movie window goes black, and sometimes bringing it out of transparency mode doesn't fix it. Quake3 won't show transparent. Ultima Online flickers badly and slows waaaay down in transparency. Hmmm, DirectX/OpenGL interfering perhaps? Buggy video drivers? So typical.

    Wouldn't it be cool if it could make all the menus fade in and out? *rolls eyes*

  27. also HW acc on win2k + Radeon + 3276drv by Otis_INF · · Score: 5, Informative

    I just installed it on my Win2k box with ATi Radeon 32MB DDR and v3276 drivers and it runs very smooth, the windows are draggable with content at full speed on 1600x1200x32bpp. A year ago, some registry hacking tool did this too, but then all drivers were software rendering the alphablended windows and it was dogslow. However making Internet Explorer semi transparent isn't that fast. I guess (but do not know for sure) IE is redrawing the complete page every time something changes in the window (like typing in an edit box).

    --
    Never underestimate the relief of true separation of Religion and State.
  28. Re:OS bloat by dhopton · · Score: 3, Interesting

    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.

  29. Glass windowing on Linux by ortholattice · · Score: 5, Insightful

    Translucent windowing has also been in Linux; here is an example (not mine; look it up on Usenet). (Warning: Partial nudity.) I don't know how it compares since the site referenced in the article has been slashdotted.

    1. Re:Glass windowing on Linux by A_Non_Moose · · Score: 3, Funny

      OOOooo, now that is the reason to have transparent windows!!!

      Laetitia Casta should *never, ever* be obscured, IMO.

      --
      Have you read the moderator guidelines? Well, have you, PUNK? (and I want a Karma: Gnarly option)
  30. Cute toy by Quila · · Score: 3, Interesting

    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.

    1. Re:Cute toy by tswinzig · · Score: 3

      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 MacOS X does the alpha blending in the CPU. This item is news because it is being done on the graphics card -- no CPU hit.

      I know this reply is redundant, but so are all these goddamn MacOS X whining posts.

      --

      "And like that ... he's gone."
  31. Pop-ups by Ratbert42 · · Score: 3, Funny

    Maybe they could fix it so it makes all those porn/X10 popups transparent.

    1. Re:Pop-ups by Sax+Maniac · · Score: 3, Funny

      Yeh, 100% transparent would be best.

      --
      I can explanate how to administrate your network. You must configurate and segmentate it, so it can computate.
  32. Really can't complain by Forager · · Score: 3, Informative

    I'm running the program in Win2k right now on my 950 Duron/256MB SDRAM/32MB GeForce2 box, and the slowdown is pretty mild. To be certain, Internet Explorer scrolls down in spurts instead of smoothly like it did before, but beyond that I really can't complain.

    Uses for it? None as of yet. But that probably has to do with the fact that I just became aware of its existence about twenty minutes ago. This is one of those things that I'll keep running in the background and FIND uses for. Some time, maybe a week from now, I'll be working with a program and say "hey, transparency might help me out here," so I'll fire up my little 54K download here and get it running, and BOOM! there it is. Who care's if its not practical yet. Just wait until you need it; then you'll see just how practical it can be. Besides, for 54K what's not to like?

    ~Forager

    Quick after thought: I've already got it running, making my taskbar semi-transparent; I have it set on the left side of my screen, so when it pops up to announce a window update it gets annoying if it's directly over my text or whatever; on 30% opacity, it's much less annoying. Little things like this will make me glad I spent all 20 seconds (56k connection here, people) of my life it took to download this utility.

    --
    student of animation and the fine arts
  33. Alpha Blended Pie Menus and Censorship in The Sims by SimHacker · · Score: 5, Informative
    The classic papers on transparent user interfaces include Toolglass and Magic Lenses: The See-Through Interface (1993), and A Taxonomy of See-Through Tools (1994).

    The pie menus in The Sims use a combination of desaturation, darkening, and alpha blending to feather the edges of the menu.

    Why transparency and the other effects? I didn't want the pie menus to obscure too much of the scene behind them. You can see through the pie menu as the animation continues on in real time behind it. The head of the currently selected person is drawn in the center of the pie menu, and follows the cursor by looking at the currently selected item.

    I found it necessary to somehow separate the head from the rest of the scene, otherwise it looked like a giant head was floating in a room of the house! Drawing a solid opaque menu background would obscure too much of the scene. But even a partially transparent menu background still did not visually separate the head from the background scene enough. It looked muddy and cluttered, instead of crisp and bright.

    So instead of simply alpha blending, I actually made it desaturate the background (removes the color so it's gray scale), and darken it (like casting a colorless shadow).

    I wanted the colorful head to look sharp and bright up against the dark gray background. So the effect looks at the Z buffer to clip out the head in the menu center, so it remains bright and colorful against the dark gray background. That gives it visual "pop" that separates the head from the background. The edges of the effect are feathered, so there's no sharp line dividing the inside and the outside of the menu (useless visual clutter).

    The gray shadow just gradually tapers off with distance, suggesting that the pie menu active area extends to the edge of the screen, not confined to the borders of a circle. The labels are drawn with high contrast drop shadows around the pie menu, so they stand out and easy to read, partially overlapping the shadow so they're look like they're part of the menu.

    There's special code to perform that particular combination of pixel filters in real time, to every frame just after the 3D rendering phase.

    The pixelated censorship effect works the same way as the pie menu shadow, like a Photoshop filter run after the 3D rendering phase. There's a special suit type that's tagged as a "censorship" suit. It consists of bounding boxes attached to the varius bones of the skeleton that you can select to censor. So if you just want to censor the head, you attach the head censor suit to the head bone. The 3D character renderer transforms the 8 vertices but doesn't draw anything, and stashes the screen bounding box away for the pixelation filter to draw later. That's how it can censor just the crotch of naked men, but also the chests of naked girls gone wild.

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  34. Adding functionality not eye-candy by swb · · Score: 5, Interesting

    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.

  35. Carried over into OS X by spicyjeff · · Score: 3, Informative

    This was carried over into OS X and its Quartz graphics layer since its inception.

  36. Re:Old hat - rubbish 'news' story by dattaway · · Score: 3, Funny

    Old? It doesn't matter that every precollege teen has tinkered with transparency windowing systems; I'm sure someone has been issued a patent for it and is about to IPO. Someone wants to own this now. Expect lawyers to follow.

  37. Varying Translucency w/in Same App by John_Booty · · Score: 3, Interesting

    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.

    --

    OtakuBooty.com: Smart, funny, sexy nerds.
  38. Re:Been There... by bnenning · · Score: 3, Interesting
    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.

    --
    How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
  39. Awesome! Does it support 100% transparency? by Mustang+Matt · · Score: 3, Funny

    We can finally make pop up adds truly disappear!

    --
    The man who trades freedom for security does not deserve nor will he ever receive either. - Benjamin Franklin