"Linux Gazette...making Linux just a little more fun!"



muse:
  1. v; to become absorbed in thought 
  2. n; [ fr. Any of the nine sister goddesses of learning and the arts in Greek Mythology ]: a source of inspiration
© 1999 by mjh


Button Bar
Welcome to the Graphics Muse! Why a "muse"? Well, except for the sisters aspect, the above definitions are pretty much the way I'd describe my own interest in computer graphics: it keeps me deep in thought and it is a daily source of inspiration. 

[Graphics Mews][WebWonderings][Musings][Resources]

This column is dedicated to the use, creation, distribution, and discussion of computer graphics tools for Linux systems.


I've been working on some extensions and updates to my XNotesPlus program this month, which I've had to work on in between the Muse, TheGimp.com, and a number of articles and cover art work for the Linux Journal.  Suprising how busy I'm keeping considering that, officially, I'm unemployed.

Part of the work I was doing this month for both the Muse and TheGimp.com wasn't for this months issues.  I was preparing for some future articles, ones which require more than the usual week and a half I spend on them for normal issues.  That led to an even more compressed time frame for this months Muse.  Running on a bit of brain strain, I opted for a little brain stimulus, or rather eye stimulus.  That, and a little followup to last months issue, which brought in quite a bit of email.  That, too, was a bit suprising.  But very welcome. 

In this months column you'll find:

  • A little eye candy, please - XScreensaver
  • A followup to last months Vector Drawing Tools for Linux
And, of course, the requisite set of product announcements, interesting bits of news and Web sites, and reader email.  Keep those letters coming!
The Artists' Guide to the Gimp
Available online from FatBrain, SoftPro Books and Borders Books.

In Denver, try the Tattered Cover Book Store.

Also, check out the associated web site, TheGimp.com, sponsored by SSC, Inc. and edited by The Graphics Muse - Michael J. Hammel.



Other Announcements:
Superficie 0.5
Graphic Counter Language 2.20.3.D
MathMap
Panorama Tools v1.7.2
GIMP 1.1.5
Gimp ImageMap Plug-In Release 0.9
DiaCanvas 0.10
tgif 4.1.9
Swift Generator 0.7.1
Giram 0.0.17
Install-Webserver 0.1
povfront 0.9-2
Wacom Driver for XFree86 alpha 3
xfsft 1.1.5
XawTV 2.44
RenderDotC 3.1
Terraform 0.3.1
AleVT 1.4.5
< More Mews >
Disclaimer: Before I get too far into this I should note that any of the news items I post in this section are just that - news. Either I happened to run across them via some mailing list I was on, via some Usenet newsgroup, or via email from someone. I'm not necessarily endorsing these products (some of which may be commercial), I'm just letting you know I'd heard about them in the past month.

RealPlayer G2 alpha
  J-Dog - May 19th 1999, 10:16 EST 

RealPlayer for Unix allows you to play streaming audio and video over the Internet in real-time. 
http://www.real.com/
http://www.real.com/products/player/linux.html
Editor's Note:  Whoohoo!  Works great!



The Linux Image Montage Project pre-1120
  Jordan Husney - May 17th 1999, 07:15 EST 

The Linux Image Montage Project ("LIMP"), is an attempt to distill the Linux community's spirit down into one cool looking poster using user-contributed images and the GIMP. 

Changes: Now 70% complete, only 480 image to go until project completion.
http://linux.remotepoint.com/



IBM ANNOUNCES OPEN-SOURCE AVAILABILITY OF 3D VISUALIZATION SOFTWARE

IBM Visualization Data Explorer Source Code Made Available to Developer Community.
http://www.research.ibm.com/dci/software.html
http://www.research.ibm.com/dci/dx_release.html



ImageMagick 4.2.6
  Necronom IV - May 19th 1999, 16:03 EST

ImageMagick (TM) is a package for display and interactive manipulation of images for the X Window System. It is written in C and interfaces to the X library, and therefore does not require any proprietary toolkit in order to compile. Although the software is copyrighted, it is available for free and can be redistributed without fee. ImageMagick is known to compile and run on virtually any Unix system and Linux. It also runs under Windows NT, Windows 95, Macintosh, and VMS.

Changes: Many new features and bugfixes, see the Changelog for more information.
http://www.wizards.dupont.com/cristy/ImageMagick.html



IPAD 0.9.00
  sergio - May 19th 1999, 10:04 EST

IPAD is an intelligent vector drawing package built using the multiplatform IPAD-Pro core and so provides a very powerfull consistant interface across all supported platforms without the need to have X11 or MS Windows available. It allows easy editing across files using multiple overlapping windows. The graphics objects drawn and edited by IPAD have built in intelligence. They react to the mouse and each other so as to maximise user productivity and reduce tedious repetitive setup sequences.

Changes: Faster character drawing under X11, new grid support, new guide line support, new window manager dialog and much more info in file selector.
http://www.demon.co.uk/titan/



Image::Grab 0.9.3
  Mark Hershberger - May 19th 1999, 09:59 EST

The Image::Grab Perl module allows you to easily grab an image with an oft-changing URL from the internet. This makes it possible to write simple scripts to download weather maps or comic strips on a daily or hourly basis without user intervention. It is also useful for bypassing advertising banners.

Changes: Updated the realm code so that HTTP authentication actually works, changed the interface, but if you tried to use the realm call before, you should have gotten an error.
http://everybody.org/mah/hacks/Image-Grab-0.9.3.html



Panorama 0.11.2
  Angel Jimenez - May 18th 1999, 13:31 EST

Panorama is a framework for 3D graphics production. It will include modelling, rendering, animating, post-processing, etc. There's currently no support for animation, but this feature will be added soon.

Changes: Added a new text image filter, a new configuration file, and documentation. Lots of bug fixes.
http://www.gnu.org/software/panorama/panorama.html



Sketch 0.6.0
  Bernhard Herzog - May 18th 1999, 12:58 EST

Sketch is a drawing program similar to CorelDraw or Adobe Illustrator. It is written almost completely in python with some modules written in C, thus combining the flexibility and power of Python with the speed of C. Advanced features include gradient fills, clip masks, text along a path, blend groups, convert text to curves, and more.

Changes: First stable release. Includes some national language support, improved Illustrator filters and bug fixes.
http://www.online.de/home/sketch/



FFTW 2.1.2
  Steven G. Johnson - May 18th 1999, 12:57 EST

FFTW is a fast C FFT library. It includes complex, real, and parallel transforms, and can handle arbitrary array sizes efficiently. FFTW is typically faster than other publically-available FFT implementations, and is even competitive with vendor-tuned libraries (benchmarks are available at the homepage). To achieve this performance, FFTW uses novel code-generation and runtime self-optimization techniques (along with many other tricks).

Changes: Fixed a problem with our parallel MPI transform test programs under MPICH.
http://theory.lcs.mit.edu/~fftw/



LAGII 0.1.4
  XoXus - May 18th 1999, 12:02 EST

LAGII lets you run AGI games natively under Linux. AGI games include the Sierra classics such as Kings Quest, Space Quest, etc. Most games don't work fully, but they work quite well most of the time.

Changes: Functional X11 driver is nearly done.
http://www.zip.com.au/~gsymonds/LAGII/



Glide 2.60
  Lee Reynolds - May 18th 1999, 11:44 EST

This is the first alpha release of Glide 2 for the Banshee and Voodoo 3 cards.  According to the author the Quake 3 test will run under it, your mileage may vary. As of now it will only do 3D full screen, windowed support will be included later. The author will be at Linux Expo till the 23rd and has said he will ignore all email during this period. Those in need of support are advised to use the 3dfx newsgroups.

Changes: This is the first version of Glide for linux with support for the Voodoo Banshee and Voodoo 3 chipsets. This is still glide 2.x, glide 3 has not been ported to linux as of yet
http://glide.xxedgexx.com/3DfxRPMS_vb_glibc.html



LibGGI 2.0 Beta 2.1
  Andreas Beck - May 17th 1999, 07:19 EST

LibGGI is an attempt to unify all those graphical output systems that exist on Unix. It is a very fast, simple (ever tried to make a small graphics app directly in Xlib?) and lightweight interface layer, that allows you to run the very same binary on many different graphics subsystems like X, SVGAlib, Glide, etc.  LibGGI will detect (or you can select, of course) the environment you are running in, and redirect its output as required.

Changes: Better autoconf checking for some targets and other bugfixes, fbdev target uses acceleration on kernel-native matroxfb, better mode-switching for non-kgicon fbdev drivers, svgalib target enhanced, X target fixed for remote displays with different endianness as well as small enhancements for LibGII (especially for the Linux-Console input).
http://www.ggi-project.org/


Did You Know?

...there is a story in EETimesOnline about ILM's camera work, including a mention of Linux.
http://www.eet.com/story/career/timespeople/OEG19990517S0023

...and another on how working on special effects expose engineers to the hot technologies of the day.
http://www.eet.com/story/career/timespeople/OEG19990513S0020

...there is a project online that aims to produce a short (10 minute) 3D animated movie using POV-Ray.  The Internet Movie Project can be found at http://www.imp.org/

...RealPlayer is an SMIL (Synchronized Multimedia Integration Language) enabled player?  SMIL is based on XML and was designed by the good people at W3C.  Since SMIL is another text-based markup language, you can, as always, use any text editor to author SMIL files.  If you're interested in other SMIL players and some links to some GUI based authoring tools, take a look at http://www.justsmil.com.  So far, no authoring tools for Linux are listed, although I've sent email to the people working on GRiNS to ask if they plan on a Linux port (they are working on both IRIX and Solaris ports, so I'd think it wouldn't be a difficult port to Linux).

Q and A

Q:  Marjorie Richardson asks:  Could you tell me if there is a Linux graphics program that will convert RGB to CMYK easily? (easily as in push a button)

A: ImageMagick has the command line tool convert that will convert between many different file formats.  One output format is raw CMYK.  Keep in mind that raw CMYK may not be quite right for print output - it doesn't take into consideration display characteristics of either the monitor on which you viewed the original or the device on which you'll be printing.  But it will probably be fairly close for many images.
See: http://www.wizards.dupont.com/cristy/www/convert.html

A:  blah


Reader Mail

Hadess <hadess@writeme.com> writes:
First I'd like you to know that the only thing worth reading in the Linux Gazette (at least for me) is the Graphics Muse ^_^
'Muse:  I'm flattered, but I often read most of the rest of the Gazette myself.  Larry Ayers and the other regular and guest writers tend to know a lot more about systems administration than I do, and I often find bits of very useful into there.   I'm just the graphics guy.
Well, I use the GIMP everyday and I frequently use a file-manager to launch it associated with an image. I'd like GIMP to start only once. I'd like to launch it once and then, afterwards, launch another image and make it load by the first GIMP instance I launched.  Any ideas ?
'Muse:  If you want to work on the new image interactively, then I can only think of one way to do it - Perl::Fu.  But getting the Perl extension to work with the Gimp can take a bit of work.  I'm going to do an article on it for the June issue of TheGimp.com (this month will be on Gimp 1.2 status).  You can also take a look at the new O'Reilly text "Programming Web Graphics with Perl and GNU Software".  There is a chapter on the Gimp which goes into a  fair amount of detail on the Perl scripting interface for the Gimp.

The Perl extension has a server portion, so you could write a perl script to connect to the server and pass it the name of a plug-in and file that could be used to pop open a new image window for the currently running Gimp.  It will even, I believe, launch the Gimp if its not already running.

I'm no Perl::Fu expert, however.  This is just my impression of how things work.

Antti Huotari <ahuotari@cc.hut.fi> writes:

You said in your latest Graphics Muse column that Macromedia Flash 3 runs only on non-Linux systems. Well, infact it does run almost flawlessly on Linux with the latest WINE release  (OK, it still has a few bugs, but you can create Flash movies, etc. with it).

The following setup is used:

'Muse:  Ok, I stand corrected.  I just don't run WINE - I want these tools to run natively on Unix.  I've been waiting 10 years (since working on the Dell Unix product) for applications to run natively on desktop Unix.  So I guess that's why I didn't consider WINE.

I never have figured out how to do this, though.  I mean, where do I get Windows95/98?  You go into computer stores and all they stock is "Upgrades".  No one sells a complete installation apparently.  Not that I've looked too hard.

Just to let you know,
'Muse:  I appreciate the feedback.  I'm sure there are qutie a few readers who would love to know this works.
PS. Thanks for the nice book about Gimp.
'Muse:  Your quite welcome.  I'm glad you find it useful!

Antti Huotari <ahuotari@cc.hut.fi> followed up with:

Just to clarify things, Wine+Flash3 isn't ready for production yet. For example the text tool doesn't work and there are lots of little problems. But like I said you can play, create movies with it, etc. Sound effects seem to work fine too. And it gets better with every new release of Wine.
'Muse:  I'll post this too.  Its good info.  I'm sure it will help keep expectations in line for anyone who tries it.
From www.winehq.com:
Wine is an implementation of the Windows 3.x and Win32 APIs on top of X and Unix. (So it isn't an emulator and you don't need Microsoft Windows.) Wine consists of a program loader, which loads and executes a Windows binary, and a library that implements Windows API calls using their UNIX or X11 equivalents.
'Muse:  Hmmm.  I didn't realize that.  I guess I could try it eventually.  I just hate using any MS-based tools.  But I should open my mind to different options.  It is, after all, part of my own preachings to people:  Choice.  Thats the key.
But, I do agree with you that it would be much better to have applications that are especially made for *NIX.
'Muse:  It's happening.  Slowly, but I think it's an inevitable process at this point.  I'm looking forward to the ports of graphics applications that I'm sure we'll be hearing about over the next 6-12 months.


blah

I wondered around the Net a bit this month, but couldn't find anything interesting to write about relating to Web development.  Oh, sure there are lots of topics.  I just couldn't find one that peaked my curiousity - and I could fit into my writing schedule.  I thought about looking at Zope, but it had some system requirements I didn't have.  I spent a bit of time trying to install some other packages, some for the Vector Tools followup article and some for some future articles, and didn't really want to deal with it again for yet another package.  But Zope does look interesting.  I'll try to take a look at it sometime in the near future.

Other than that, I only came up with one Web-related item:  After a couple of years of wondering how to make this work, I finally figured out how to force text to flow around a table.  I like to use tables to place an image with a caption below it, image in the top cell and the caption in a cell below it, but I've always been stuck with shoving text into a cell in the table - I couldn't just have text flow around the table like I do with non-tabled images.

Well, it seems that my use of Netscape Composer had led me to ignore checking the completeness of the HTML it created.  I was perusing some other sites on the net - I think it was the BBC news site - and saw one with a configuration just like I wanted to make:  image in a table, caption below it, text flowing around it to the right.  I looked at the HTML and didn't see anything special.  So I copied everything from that site's table to one of my own, then started removing items one at a time to find the key element.  The key, it seems, is the ALIGN= argument.

It is possible to make text flow around a table, but not directly with Composer.  Composer, although it provides a toggle for the Align argument, doesn't actually place this argument in the TABLE tag if you use the default option of "Left".  Arrgghh!  You have to edit the TABLE tag and add the ALIGN=LEFT by hand.  So, configure your text editor in Netscape.  I use vi  (if you use Emacs there is a good chance you're not using Composer anyway).  You'll want to create the table first, just as always.  Make the table just a bit wider than the image and leave the image left aligned in it's cell (which leaves space between the image and the text that will flow around it).  Then add your text.  Later, go back and edit the HTML by hand (Edit->HTML Source) and add the ALIGN=LEFT argument to your table.  Viola!  Right-side flowing text around your tables.  This modification will stay as long as you don't edit that table again.  If you do make changes to the table, you'll have to go back and add the ALIGN=LEFT argument by hand again.

I guess it helps to check these automated contraptions every now and then - just to keep them honest.

Oh, and as to why this was titled "blah":  that's the text placeholder in the template file I use for the main page of the Graphics Muse.  It seemed appropriate.  The alternative was "Yada Yada Yada", but I wasn't sure how many Seinfeld fans there were reading the Muse.


Also:  A Followup to last months Vector Drawing Tool on Linux

A Little Eye Candy, Please - XScreensaver

In most issues of the Graphics Muse, I talk about useful tools, things with which you can perform some real world task.  That's fine, most of the time.  But one needs to have a little fun every now and then.  Sometimes, you just need to do something that, well, has no real purpose.  Except to make you smile.

In the world of graphics tools for Linux there are probably several programs (we can't really call them tools, per se) that could be considered just fun.  No, I don't mean games.  That's entertainment.  Despite what you read in the press or hear from politicians, games are not completely mindless jaunts for the juvenile crowd.  No, we need something that has nothing to offer but stunning visual preoccupation.

Thank goodness for screensavers.

Watching the ever streaming line of announcements over at freshmeat, I noticed an announcement for something called cmatrix.  It was said to be a screensaver in the style of The Matrix, that wonderfully confusing cinema fantasy starring Keanu Reeves.  Unfortunately, it's not an X-based program.  It runs under Curses, a terminal based graphical interface.  Then I saw that Jamie Zawinsky, late of Netscape, had added a Matrix hack to his xscreensaver program.  So I scrounged around a bit and found xscreensaver, downloaded it and put it to work.

Cool.
 
 
The Matrix (xmatrix) Screensaver
Xscreensaver is a program that manages other programs that draw on the root window.  The root window is a special window - it's the window inside which all other windows get drawn.  It doesn't look like a window like you might expect because it doesn't have a window frame around it.  But any program, properly written, can draw on the root window.  Jamie's design is to make xscreensaver a daemon - a program that runs all the time in the background - that would wait to see when there was a period of inactivity from the user.  When that period expires, xscreensaver runs another program.  This other program is the one that actually draws on the root window.  These other programs are called, in xscreensaver vernacular, hacks.

I don't usually run screensavers, a screen blanking or energy-saving monitor suffices most of the time.  But the shear number of hacks available for xscreensaver was somewhat astounding.  I counted over 80 of these in the hacks directory.  Jamie has screenshots for most of these on his xscreensaver Web site (http://www.jwz.org/xscreensaver/).  Be warned:  it can take quite a while to download the page with the screenshots if you're on a slow link.  You don't really have to download the latest version from this web site since most Linux distributions will contain a version of xscreensaver already.  But you might want to check to see if any new hacks have been added or if a new version is availalble.  On my Red Hat 5.2 I had a considerably older version than the latest (3.12) posted on Jamie's site.

Since xscreensaver runs as a daemon and a client (the hack), you need to look at these seperately.  The daemon, xscreensaver, has no user interface.  It's configuration is controlled by a standalone client program called xscreensaver-demo.


xscreensaver-demo

If you don't have an $HOME/.xscreensaver file, then xscreensaver uses its default configuration.  In this example case this means the demo window has all 80+ hacks available.  This if fine for the demo, but when you put together a menu option for your favorite Window Manager to launch the screensavers, you may want to limit this list using your own configuration file.  We'll talk about the configuration file a little later in this article.

The demo dialog allows you to double click on an entry in the list of hacks to start it.  To stop the hack just move the mouse or click a mouse button once.  This is handy for looking through the list of hacks to see what they all do.  You can also type a hack command (the command uses ordinary command line, aka shell, syntax) in the text field just below the list.  The buttons perform obvious functions - run the next hack in the list, run the previous hack in the list, quit the demo program and open the preferences dialog.  Quitting will exit the demo window but does not kill off the xscreensaver demo.  You do that manually with the xscreensaver-command program's -exit option.
 
 
Preferences Dialog Window
The demo window also has a preferences dialog.  Here you can configure the daemon's behaviour with respect to when it notices inactivity and whether or not it requires using a password to log back in.  You'll notice there isn't any field for specifying a password.  Xscreensaver will use your password from the /etc/password (or /etc/shadow, if you have that) file.  Saver Timeout is the inactivity period to wait on, while Cycle Timeout is the period of time the current hack gets run.  Xscreensaver will cycle through the list of hacks in your .xscreensaver file's programs entry if more than one entry exists and if the cycle timeout is set to something other than 0 (0 means never cycle).

The Fade Duration is used only with writable colormaps.  This causes the screen to fade to black when the screensaver starts or between hacks when cycling is enabled.  Fade ticks controls how fast this fade should occur.  Higher numbers make for smoother fades, but take longer to complete.  Fading to black may not work with your hardware and X server configuration, so changes to this field may have no effect.

The Lock Timeout is the grace period after the screensaver has kicked in where no password is required, even if Require Password has been set.  If this value were 5 minutes, for example, and the screensaver had only been running for 3 minutes before you typed something or moved the mouse, then you wouldn't have to type a password.  Useful for those short periods you run to the bathroom and hate having to retype your password just to get going again.

Password Timeout is the time for which the password dialog will remain on the screen waiting for a valid response before it gives up and returns to the screensaver.   In the example here, the dialog would be present for 30 seconds - ample time for a decent typist with the right password.

While the demo window and it's preference dialog allow you to configure how the daemon will run, it isn't really how you want to run xscreensaver in the background, say from a Window Manager menu.  As mentioned earlier, another program is used to kill off the xscreensaver daemon - xscreensaver-command.  This is a command line program designed to issue commands to the daemon without using windowing interface (although it can launch the Demo window too).  A hack in the programs list of your configuration file can be called directly using the xscreensaver-command program.  This is how I set up a menu under FVWM2 to specifically run the Matrix screensaver.

The .xscreensaver configuration file

All of the options you can set interactively with the Preferences dialog can also be set using the xscreensaver-command program.  Alternatively, you can specify often used options in your .xscreensaver configuration file.  We've already mentioned the programs entry, which is a list of programs to run in shell-syntax format.  You list one program per line and use shell continuation marks, but cannot use semicolons.  So, an entry like this

programs:        \
        xmatrix;  qix -root;  xv -root -rmode 5 image.gif -quit
is invalid.  Instead, you would enter it like this:
programs:          \
        xmatrix    \n\
        qix -root  \n\
        xv -root -rmode 5 image.gif -quit    \n\
Each of these programs are found via your PATH environment variable, so if they aren't available from an ordinary command line, then you may want to fully qualify the path name.

When you use xscreensaver-command to launch one of these programs specifically, you reference the program by the order in which it appears in the list.  So xmatrix is program number 1, qix is number 2 and so forth.  You can then invoke this screensaver directly using a command line like this:

% xscreensaver-command -select 1
The -select option tells xscreensaver to blank the screen immediately and run the hack specified.  There are variations on how you can do this using the xscreensaver-command program.  Check the man page that comes with the source for complete details.

All of the options in the .xscreensaver configuration file use a name:token format.  That is, you specify the name of the option, followed by a colon and the setting for that option.  Since the configuration option uses the same option names as the X Resources file, you can also place these settings in your .Xdefaults file if you like.  I prefer using program specific files like .xscreensaver because if I screw up that one file I don't take the chance of breaking some other program like I might if I used my .Xdefaults file instead.

[ More Eye Candy ]



Footnotes:
  1. If you haven't seen this movie yet, go now!  The story line far outpaces the special effects, which themselves are some of the best I've ever seen.  This movie is the 2001 of the current generation.
  2. In the documentation, hacks are also often called demos.  Don't let the terminology confuse you.

The following links are just starting points for finding more information about computer graphics and multimedia in general for Linux systems. If you have some application specific information for me, I'll add them to my other pages or you can contact the maintainer of some other web site. I'll consider adding other general references here, but application or site specific information needs to go into one of the following general references and not listed here.
 
Online Magazines and News sources 
C|Net Tech News
Linux Weekly News
Slashdot.org
TheGimp.com

General Web Sites 
Linux Graphics
Linux Sound/Midi Page
Linux Artist.org

Some of the Mailing Lists and Newsgroups I keep an eye on and where I get much of the information in this column 
The Gimp User and Gimp Developer Mailing Lists
The IRTC-L discussion list
comp.graphics.rendering.raytracing
comp.graphics.rendering.renderman
comp.graphics.api.opengl
comp.os.linux.announce

Future Directions

Next month:  I'd like to look at TV and motion capture cards, but I don't have any so the best I can do is write about the drivers for them.  Barring that, I'm not sure what I'll look at.  Maybe a little about dealing with drawing using Gtk and Motif widgets, something I've been working on lately.  We'll see.

Let me know what you'd like to hear about!


© 1999 Michael J. Hammel


Copyright © 1999, Michael J. Hammel
Published in Issue 42 of Linux Gazette, June 1999


[ TABLE OF CONTENTS ] [ FRONT PAGE ]  Back  Next