Slashdot Mirror


X-Server with Alpha Transparency

An anonymous reader pointed us to a Java X Server that has hacked together alpha channel transparency. Its not XF86, but its nifty. It demos (worthless but pretty) transparent windows, bizarre but pretty transparent widgets, but also the extremely wonderful and essential anti-aliased fonts that X11 continues to lack.

47 of 137 comments (clear)

  1. Impressive... Most impressive. by vsync64 · · Score: 2
    I saw this a couple of days ago... Apparently the WeirdX programmer got the idea from Berlin.

    Whether or not Berlin ever becomes the replacement windowing system, it's pretty cool that MacOS X and now X11 are getting neat toys from them. What'll they come up with next, I wonder?

    --
    TO BUY A NEW CAR WOULD MAKE YOU SEXUALLY ATTRACTIVE.
  2. Alright. I hope my work can be transparent. by SirStanley · · Score: 2

    Does this mean I can do Transparent work, in a Transparent IDE?
    ON the Plus side. I can surf for transparent Porn at work and the boss will never catch me.

    --
    --------========+++Dont Feed The Lab Techs+++========--------
  3. Expose events by Reality+Master+101 · · Score: 2

    Does this use some sort of backing-store, or does uncovering a bunch of semi-transparent windows cause expose events for every window? If the latter, it would seem like it would be very flashy when uncovering windows.

    On another note, an X server written in Java sounds really gross and slow. What next -- Perl? (although that does sound kind of cool in a hackish sort of way)


    --

    --
    Sometimes it's best to just let stupid people be stupid.
  4. J-J-J-JCraft by Tei'ehm+Teuw · · Score: 2
    J-J-J-JCraft. . . Hmmm Sounds familiar.

    Anyway, This does look pretty cool, but I think the translucent images would drive me nuts over long hours. It's bad enough having to focus on sharp images much less translucent ones. If I'm going to have to sit in front of a monitor for 18+ hours a day getting K-rays shot at my eyes, I'd at least like to see what I'm looking at from a human perspecive.

    This I beleive is what my dog sees when he looks at my monitor.

  5. Finally a decent GPL'd X-Server that will do Win.. by Sir+Logic · · Score: 2

    I glad to see this, Finally there is a decent GPL'd X-Server becoming available that will run under Windows.

    This will allow me to start serving X-Apps from my Linux servers to the Windows users on the network, and I can start getting them migrated to Linux apps without having to change there setup...

    Granted, I would do this with VNC, but that would not provide me with seemless integration with the windows environment, ie, the Multi-window mode where each X-App has it's own window, just like local Window apps...

  6. WiredX by BigEd · · Score: 3
    This is apparently the product of an ASP. From their About page:

    WiredX.net is an ASP which provides pure JavaTM X Window System servers. WiredX and WiredX-Lite enable access to Unix applications on your LAN from your non-Unix desktops (Windows 95/98/NT/2000) via web browsers(IE, Netscape and Mozilla). WiredX.net also provides free downloading services of restricted WiredX and WiredX-Lite to WiredX.net members.

    According to the about page the service is free to all WiredX members, and membership is free... So a cool X-Server with Alpha transparency that lets you access a nix machine from the web.

    The TOS (for those interested) are here.

    --
    We are all in the gutter, but some of us are looking at the stars. -- Oscar Wilde
  7. Rather easy to do this in Java by ChrisRijk · · Score: 2
    (though you'd probably want to have Java 2 or later for this). I wrote myself a pretty nifty charting program with anti-aliased fonts and lines in Java in about 5 hours the other day. (First thing I've done using the Java2D libraries too). I've extended it a bit since then though.

    Having a bit of fun doing some comparisons between Java and C at the moment, and using my own charting program to show this, heh. (perhaps the most surprising result, to me anyway, is that GCC 2.95.2 kinda beats Microsoft's Visual C in the more complex tests, and MSVC is supposed to be really hot too...)

  8. Great by Anonymous Coward · · Score: 2

    So... one of the problems with X is that it's slow and sluggish...so...lets write a new X server in Java...that should make it slow and sluggish squared.

    Thank you.

  9. Re:Anti Aliased fonts by larry_h · · Score: 2

    one thing you should consider is using true type fonts (works flawlessly under X). verdana ttf, renders nicely even in the tiniest of sizes. perfect for browsing the web with netscape. also the option "use my default fonts" in netscape makes thing better when browsing sites that use rediculusly small font sizes. (q3arena.com for one)

    /largo

  10. Hope the speed has also improved by vanza · · Score: 2

    It's a pretty cool idea to have a cross-platform X server written in Java... but last time I tried WeirdX it was unusably slow, even on a P3 500 w/ 64 MB of RAM.

    Hope they worked also on that front. I know Java is not the best language when talking about GUI applications (OK, programming with Swing is cool, but it's kinda slow, even with JDK 1.3), but with jEdit at least I can get some work done.


    --
    Marcelo Vanzin
    --
    Marcelo Vanzin
    1. Re:Hope the speed has also improved by Maurice · · Score: 2

      Your problem is that you don't have enough memory. If you had say, 128 megs or more, JDK1.3 would do native compile in memory and it runs pretty fast (the more free memory the more code it will compile). It is especially fast for 2D graphics stuff and they say they got scientific/math code to run withing 5% of C++ code. Swing is still kinda slow though, but not horrible. I use JBuilder at work and it is large and slow, but with a lot of RAM (256 recommended) it's not too bad.

  11. Is it my imagination? by Uruk · · Score: 2

    ...or did the people who wrote that page constantly switch between calling it WeirdX and WiredX?

    Strange...

    --
    -- Truth goes out the door when rumor comes innuendo. -- Groucho Marx
  12. Re:Anti Aliased fonts [OT, but hopefully helpful] by Sir+Tristam · · Score: 4

    You might try the XFree86 Font Deuglification Mini HOWTO for some help with the Netscape fonts. Although not perfect, it made quite a difference for me.

  13. Here's my thoughts... [Re:Expose events] by dphase · · Score: 2

    looks more like its grabbing each individual window, toning down the opacity and then displaying it. notice on the gimp screenshots how some parts of each window are a bit more opaque than others (such as the menus and labels and buttons, etc). this is because that is another window over a window and the two translucent windows over each other are causing those parts to be more opaque than each other. so, all in all, it looks like nothing more than a crazy hack. i dont think i would like having every window translucent, anyway.
    --
    Joshua Deere (dphase@locnet.net)
    UNIX Systems Administrator, LOCNET Internet Services

    --
    jd
    1. Re:Here's my thoughts... [Re:Expose events] by dphase · · Score: 2

      No, enlightenemtn does not do any type of translucency at the moment. however, EFM does have translucent menus. and to achieve this it is making use of backing stores inside the X server. It is grabbing the data under the menu (iirc, menus arent parented), then imlib2 renders the menu image over that image. if the menu image has an alpha channel, you will be able to peek through. imlib2 allows for translucency since it renders things in RGBA format (A for alpha, of course).
      --
      Joshua Deere (dphase@locnet.net)
      UNIX Systems Administrator, LOCNET Internet Services

      --
      jd
  14. Transparent windows aren't useless by Dungeon+Dweller · · Score: 3

    You can look through a window that you are typing in and see another window. I actually find that useful. Try looking at spec file while typing the implementation! It's great! If you have to implement more than one header/package body, you can stack each implementation over it's own spec! That way, you can see each spec and implementation out at once.

    NOTE: This requires a good deal of "human multitasking" capability on the part of the user, and pretty darn good eyesight.

    --
    Eh...
  15. anti-aliased fonts by option8 · · Score: 3

    the anti aliased fonts seem only to appear in the version that is running on the Mac, and seems to me to be a result of the system-level font smoothing in the MacOS, not the implementation of X.

    correct me if i'm mistaken, but, if i'm right, the lead on this story is a little misleading.

  16. Re:Useless by Zagadka · · Score: 5

    IMO , that kind of "feature" is useless to get some work done. It should be implemanted on the application level - ie only a few apps need ta have alpha channel things like the Gimp or some games. The only people really interested are Hardware vendors, one more occasion to upgrade the CPU and/or the Graphic card .....

    Actually, many GUI applications could potentially make use of this. Think anti-aliased text, or PNG's that actually work correctly in web-browsers. You say that applications that need it should be the ones to implement it. Well what about other features of the windowing system, like line drawing? By having this in the windowing system, there's one piece of code to debug, optimize, and make hardware specific versions of. If each application has to support alpha-transparency on its own, then we'll never get to make use of hardware-based alpha-composition. Do you really want to see the day when GIMP runs better on Win32 than on Linux?

    And your performance claims make no sense. Just adding alpha transparency to the windowing system doesn't mean every widget would have to use it. Widgets that don't need it wouldn't use it, or would have it as an option. There wouldn't be any significant performance degradation for widgets that don't use it. Widgets that do need it can make use of it, and less developers will need to reinvent the wheel by writing their own alpha-composition code.

  17. Re:WierdX vs WiredX -- Two different programs by Sir+Logic · · Score: 2

    No, they don't switch between calling it WierdX and WiredX. WierdX and WiredX are two completely seperate programs. You will notice that WierdX is based on WiredX Lite, and is GPL'd. WierdX also has a multi-window mode, that WiredX apparently does not have. To get WiredX you have to sign up with the WiredX ASP service (which is currently free) while you can just download WierdX.

    WierdX is a free, GPL'd, Multi-Windowed X-Server that will run on many platforms, including MicroSoft Windows. It is the only Multi-window capable X-Server that is GPL'd, or even free that I know of that runs under Windows.

  18. Re:Easy solution by Anonymous Coward · · Score: 2
    Doesn't work when pages have specified fonts in pixel or point sizes. which a lot of pages have.

    The offending pages are usually developed in Windows which assumes that screen=96dpi.

    Therefore when veiwed on a Mac (OS assumes screen=72dpi) or X-windows (assumes 75dpi, usually) the text can be unreadable---and changing the "default font size" in netscape doesn't help, as the page's styles override the default.

    You could set Netscape to override all pages' settings, but it messes up layout on some pages, and makes well-designed web pages go bland.

    Note to Web designers: PLEASE use relative sizes ("small", "medium" etc on style sheets, or <FONT SIZE={+|-}...>) as it's the only option that works properly on all platforms. (Linux gets jaggies with percentage-specified or pixel-sized fonts, Mac and Linux get unreadable with point-sized fonts.)

    You can format your pages in CSS using Ems as the unit of measurement, so that the layout remains consistent with your font size. Which is correct from the typographical point of view.

    Fuck karma. I'm anonymous, fool.

  19. Re:XF86 by dphase · · Score: 4

    Right now the only way to achieve something like this in X is through a hack. The Java X Server is merely a hack. Yes, things like EFM, Eterm, and the like are able to do stunning effects such as this, but in the end, it is actually faked. Until someone writes a protocol for X to allow this, we aren't going to see it. And writing an extension for alpha rendering is MUCH easier said then done.

    Yes, there are a few projects going on to do this, and there have been a few projects going on for _years_ now to add this to X. Don't get your hopes up, because you aren't going to see true translucency/alpha rendering on X anytime soon.
    --
    Joshua Deere (dphase@locnet.net)
    UNIX Systems Administrator, LOCNET Internet Services

    --
    jd
  20. Transparent windows by AJWM · · Score: 3

    Heck, X10 (the version before X11, not the home automation system) had transparent windows.

    Mind, I think the usage of the term is somewhat different. (IIRC, you couldn't draw anything on a transparent window, it was just useful for intercepting events. Gosh it's been a long time since I did X10 programming...)

    --
    -- Alastair
    1. Re:Transparent windows by Anonymous Coward · · Score: 2

      Heck, X10 (the version before X11, not the home automation system) had transparent windows.

      Yeah, and so does the other X10 (the home automation system). It's great, I pressed a button on my remote control, and the light went out. I turned and looked out the window, and there was my back yard, visible from inside the house! Isn't technology wonderful?

  21. WeirdX vs. WiredX by Rhys+Dyfrgi · · Score: 4
    WeirdX and WiredX are different things. WiredX comes in two versions, WiredX and WiredX-Lite, which are described on WiredX's web site. WiredX.net was created by JCraft, who also created WeirdX, the GPL derivation of the Java X server.


    WeirdX is the one with the transparency hack. WiredX does NOT have this.
    ---

    --
    END OF LINE
  22. Re:Imagine... by Nerds · · Score: 4

    every flippin topic that goes through slashdot there is some retard that has to say something about beowulf clusters

    And every one of those has to have a reply complaining about the fact that every article has someone talking about Beowulf clusters. Damn, it's like we have a Beowulf cluseter of you people complaining about Beowulf clusters in some kind of recursive Beowulf cluster nightmare.

    --
    My other .sig is 'The Art of Computer Programming'
  23. Forget alpha - it's a great X server for Windows! by SuperKendall · · Score: 4

    I've been using MI/X at work, a free X server. While it was OK to use, it's rather simple in nature, and I had to play around with font configuration a lot to get it to display complex apps with any degree of readability. It also lacked cut and paste from Windows to X, really annoying.

    I just tried WeirdX, and it's pretty good! The performance is OK, at least for a few windows (I'm running the recently released JDK 1.3). It supports cut & paste between X and Windows (or the mac I believe if you run it on a mac).

    It also seems to be pretty configurable as well, here are some of the more useful properties you can edit (in config/props if you don't specify them on the command line):

    # for specifying the size of the screen
    weirdx.display.width: numeral
    weirdx.display.height: numeral

    # Use this for seperate Windows type windows
    weirdx.windowmode: InBrowser | MultiWindow

    # check out the default - that's why some graphics look funky!
    weirdx.display.visual: TrueColor16 | PseudoColor8 | StaticGray8
    default: PseudoColor8

    # Set to yes for a a real three button mouse, otherwise you have to chord.
    weirdx.display.threebutton: yes | no
    default: no

    # Use this to activate the alpha hack, note that happily it's off by default so you can use it for real work.
    weirdx.display.background.alpha: numeral in decimal
    default: 255

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  24. Who cares if it's too slow to be usable... by Alex+Belits · · Score: 3

    ...and there is no way to make it faster because it's in java? I mean, it may be fine for windows users who believe that Unix boxes must have user interface as slow as Microsoft telnet makes them look, but for any real use X server must be fast and be capable of using graphics card's acceleration for everything that card allows to accelerate.

    --
    Contrary to the popular belief, there indeed is no God.
  25. Re:How can it be GPL? by wowbagger · · Score: 2

    Open mouth, insert foot. I didn't realize that there were two distinct products, and was looking at the wrong one. Comes from trying to bang code and do research at the same time. Mod me down, boys, I deserve it...

  26. Re:Speaking of this... by -|Oblom|- · · Score: 2

    Actually windows(2k) do support transparency. Stardock's tool only sets WS_EX_LAYERED flag I belive.
    Check this page out.

  27. Transparent windows and Heads-up display? by poopie · · Score: 2

    I could see the benefits of adjustable transparency for heads-up displays, VR apps and simulators.

    It would be great for gaming as well

    ... and I'm sure that the CPU makers would love to find apps that required more gHz of cpu ;)

  28. Win2K supports natively transparent windows/widget by SClitheroe · · Score: 3

    It may not be your favorite platform, but Win2K has support now for transparent, alpha-blended windows. MS uses it a bit in the interface already, for drag-and-drop, so that you can see what you are dropping icons on top off. It works quite well, especially with a fast video card, and the API is not a bugger to use at all.

  29. It seams you meant SEAMLESS by kindbud · · Score: 2
    Dammit, why do people make this mistake???? Drives me nuts.

    It's a very simple concept: without seams, smooth, continuous. Has nothing to do with the word "seem" or its derivatives.

    Oh, and "irregardless" really is a word, by the way.

    --
    Edith Keeler Must Die
  30. Re:Remote X bandwidth. by Alex+Belits · · Score: 2

    Whatever you use remotely, if it's less than 10Mbps Ethernet, you have to use some compression -- LBX or ssh X forwarding with compression. XDMCP won't be of much use over a slow line -- use ssh X11 forwarding, and it will initialize your cookies correctly.

    --
    Contrary to the popular belief, there indeed is no God.
  31. Re:XF86 by Ted+Nitz · · Score: 2

    There's been some discussion about an alpha channel in X on the e-develop list for some time. Your idea of extending the xshape extension to include a 8 16 or 32 bpp alpha mask was discussed, the problem comes when a client tries to get information about their window, and their window happens to be alpha-blended in with 16 other windows... I personally think that it could be done through the xshape extension, but I'm not under any pretence that it would be easy. Nor do I know anything about X programming, otherwise I would go and do it myself.
    -Ted

  32. Re:seriously by Alex+Belits · · Score: 2

    Most of people don't install scalable fonts, and keep screen resolution set to 75 dpi, so all they get is smaller fonts.

    --
    Contrary to the popular belief, there indeed is no God.
  33. MI/X not free anymore by ASIC_mgc · · Score: 2

    from the web site:


    MI/X 2.0 for Windows is available for download. Simply unzip and run setup to install MI/X 2.0. You may use MI/X 2.0 for a trial period of 15 days to determine if it suits your needs. After the trial period you will need to purchase it for $25 US


    It is still free for mac though. And perhaps there is an older version that is free, but the one from their home site is not.

    --Scott

    1. Re:MI/X not free anymore by SuperKendall · · Score: 2

      I hadn't realized this - I just looked over the site and FAQ again and realized the new version (I think it's new) not only costs money now, but really doesn't appear to be much improved:

      Runs X11R5, not R6
      License works on a per computer basis - multi-site licence must be housed on an NT box.
      No source code
      No XDM queries (they appear in preferences but the FAQ says they are unsupported)
      No xauth support
      No font server support (must install all fonts locally)

      And finally, for a bit of humor take a look at this question from the FAQ:

      Q: Does MI/X support psuedocolor?

      A: Yes, if your local display is set to 256 colors (8 bit)

      In other words, Windows does the dithering, we just take the credit!

      In fairness $15 is a small sum, but I would definatley try both WeirdX as well as MI/X before choosing to buy it. And frankly, they'd have to pay ME $15 for the hassle of dealing with a licence server.

      --
      "There is more worth loving than we have strength to love." - Brian Jay Stanley
    2. Re:MI/X not free anymore by Tet · · Score: 2
      After the trial period you will need to purchase it for $25

      Or fire up regedit, remove all entries from your registry that contain the phrase "MicroImages" and reinstall. It won't timeout again. Alternatively, as you say, you could try and find a copy of MI/X v1. I have a copy at home somewhere. Personally, I've given up on MI/X -- it was just too slow. We had to bite the bullet and go for a copy of Exceed instead. Much faster, but its font handling sucks (although no worse than MI/X, it has to be said).

      --
      "The invisible and the non-existent look very much alike." -- Delos B. McKown
  34. Re:Win2K supports natively transparent windows/wid by Graymalkin · · Score: 2

    When I first saw that effect I thought I had found one of our 65k bugs. Then of course I realized it was a real feature. It is a rather neat effect, maybe one GNOME or KDE can impliment sometime.

    --
    I'm a loner Dottie, a Rebel.
  35. No Perl X server, but there IS a Window Manager by deusx · · Score: 2

    Perl Window Manager

    OKay, so I know it's mostly dead, but there is one.

  36. This one, I found rather uncalled for.. by GauteL · · Score: 2

    I made some remarks, stating that the original
    poster didn't have a clue, concerning OO-programming.
    OO is _not_ directly connected to not being compiled. (Although java sortof is).

    I also made a comment about java being an interpreted language, and that this was a problem.
    Is this _really_ worth a minus one, redundant?

    I'm disappointed by this. As a former javaprogrammer, still enjoying the language, I feel it is fair to state that having it as a
    compiled language would make it much more usable
    as a generic programming language.
    The native-compilers that exist for Linux seem
    promising, but not at all finished yet.

  37. Using Transparency without windows... by MosesJones · · Score: 2


    One use of transparency is in the Air Traffic control industry. A military flight will be detailed as transparent as the Civilian controller wants to know it is there _all_ of the time, but also wants to be able see the civilian aircraft he is meant to be directing.

    --
    An Eye for an Eye will make the whole world blind - Gandhi
  38. Re:Forget alpha - it's a great X server for Window by mvw · · Score: 2
    Some folks are working on a Cygwin based port of X11 for Windows.

    So it might be interesting to have a look at their developers mailing lists.

  39. Re:In X/Netscape, you can change the DPI by elflord · · Score: 2
    Read the font howto. Basically, you need to set your X resources to make Netscape do 96 or 100 or 101 or whatever DPI you'd like it to do.

  40. Re:Also see the font HOWTO by elflord · · Score: 2
    ... which includes a bunch of other useful information that you won't find anywhere else. Including for example, how to make those tiny Netscape fonts a tad larger.

  41. Re:XF86 by genki · · Score: 2

    Actually, no it isn't. X is acutally simpler than most for opening up a window and drawing arbitrary pixels. What you're probably used to is a toolkit implementation of the same thing. If you actually tried to do programming in the Windows GDI interface or in raw Macintosh QuickDraw, you'd quickly agree with me. You might try gdk, the drawing kit for gtk+. It's closer to what you want.

    ---------------------------------

    --

    ---------------------------------
    Visit
  42. GPL and Java by Outland+Traveller · · Score: 2

    This may be a naive question, but I'm wondering if it is valid to license a java application under the GPL if it uses Sun's libraries, which are licensed under SCSL. Looking on the GNU web site, they have java packages available under the GPL but I believe these use the Kaffe libraries, not Sun's. Kaffe does not include that many Java2 features yet, however.

    I'm asking because I develop free software(tm) for the java2 platform and would like to release under the GPL, but have so far stuck with the LGPL.

    -OT