[comp.sys.sgi] NCSA XImage questions

mccalpin@perelandra.cms.udel.edu (John D. McCalpin) (02/02/91)

I just got the latest version of the NCSA XImage binary off of
ftp.ncsa.uiuc.edu.  It was apparently compiled under 3.3.1, so it
should work with my system.

I have two questions for anyone who uses this system:

(1) The animate option always dumps core when I try to use a wildcard
file specification.  Is there some way around this?

(2) The palette option allows me to fiddle with the RGB values of the
X color table, but does not actually change the colors!  Is there some
option that I need to employ on the X server to make the color table
modifiable? 

Thanks for any help....
--
John D. McCalpin			mccalpin@perelandra.cms.udel.edu
Assistant Professor			mccalpin@brahms.udel.edu
College of Marine Studies, U. Del.	J.MCCALPIN/OMNET

drb@eecg.toronto.edu (David R. Blythe) (02/02/91)

In article <MCCALPIN.91Feb1141106@pereland.cms.udel.edu> mccalpin@perelandra.cms.udel.edu (John D. McCalpin) writes:
>I just got the latest version of the NCSA XImage binary off of
>ftp.ncsa.uiuc.edu.  It was apparently compiled under 3.3.1, so it
>should work with my system.
>
>I have two questions for anyone who uses this system:
>
>(1) The animate option always dumps core when I try to use a wildcard
>file specification.  Is there some way around this?
>

The wildname expansion code was garbage.  I sent in a bug fix to ncsa
but have my doubts if it was used for anything other than lining
for /dev/null.  Context diffs are at the end of this article if you
feel like recompiling the source.  Its a lousy program for an sgi
machine since it doesn't exploit any of the more advanced parts of the
geometry engine (its adequate for your basic 8 bit X workstation).

>(2) The palette option allows me to fiddle with the RGB values of the
>X color table, but does not actually change the colors!  Is there some
>option that I need to employ on the X server to make the color table
>modifiable? 
>

I'm not sure what the problem is, but you might find yourself better off
using a straight sgi colormap editor running separately from ximage.
Tim Hall's is reasonable for this (ftp from swedishchef.lerc.nasa.gov its
called Ctedit).  

>Thanks for any help....
>--
>John D. McCalpin			mccalpin@perelandra.cms.udel.edu
>Assistant Professor			mccalpin@brahms.udel.edu
>College of Marine Studies, U. Del.	J.MCCALPIN/OMNET

	david blythe
	ontario centre for large scale computation
	drb@clsc.utoronto.ca
------------------------------- cut here ---------------------------------

diffs for ximage/glob.c

RCS file: RCS/glob.c,v
retrieving revision 1.1
diff -c -r1.1 glob.c
*** /tmp/,RCSt1a01169	Tue Dec 11 15:32:19 1990
--- glob.c	Tue Dec 11 15:23:24 1990
***************
*** 102,118 ****
          while ((fileEntry = readdir(newdirFD))&& (numFiles < MAXENTRY)) {
  		/* no files that start with a '.' */
  		if (fileEntry->d_name[0] != '.') {
- 			numFiles++;
  			if (!strncmp(fileEntry->d_name,key,astPos)) {
  				*tmpargv = MALLOC(strlen(fileEntry->d_name)+1);
  				strcpy(*tmpargv,fileEntry->d_name);
  				tmpargv++;
  				}
                  	}
  		}
          closedir(newdirFD);
  
! 	BubbleSort(nargv,*nargc);
  
  	*rargv = nargv;
  	return(1);
--- 102,119 ----
          while ((fileEntry = readdir(newdirFD))&& (numFiles < MAXENTRY)) {
  		/* no files that start with a '.' */
  		if (fileEntry->d_name[0] != '.') {
  			if (!strncmp(fileEntry->d_name,key,astPos)) {
  				*tmpargv = MALLOC(strlen(fileEntry->d_name)+1);
  				strcpy(*tmpargv,fileEntry->d_name);
  				tmpargv++;
+ 				numFiles++;
  				}
                  	}
  		}
          closedir(newdirFD);
  
! 	if (*nargc = numFiles)
! 	    BubbleSort(nargv,*nargc);
  
  	*rargv = nargv;
  	return(1);

davet@newton.ncsa.uiuc.edu (Dave Thompson) (02/05/91)

>I just got the latest version of the NCSA XImage binary off of
>ftp.ncsa.uiuc.edu.  It was apparently compiled under 3.3.1, so it
>should work with my system.
>I have two questions for anyone who uses this system:
>
>(1) The animate option always dumps core when I try to use a wildcard
>file specification.  Is there some way around this?
>
This was fixed in version 1.2.

>(2) The palette option allows me to fiddle with the RGB values of the
>X color table, but does not actually change the colors!  Is there some
>option that I need to employ on the X server to make the color table
>modifiable? 

The default window manager used for GL windows and X windows is a non-ICCC
window manager.  ximage assumes as a default that your are using an
ICCC compliant wm.  If you are not you need to tell ximage.  In your
.Xdefaults placing a 

ximage*installCMap:  True

will tell ximage to use the old method of installing color maps because
your window manager won't.

 
Dave Thompson

National Center for Supercomputing Applications	
4035 Beckman, Drawer 25	      Internet: davet@ncsa.uiuc.edu
405 North Mathews Ave.        Usenet: {ihnp4,convex}!uiucdcs!zaphod!davet 
Urbana, IL 61801              Bitnet: 14011@ncsagate.bitnet
voice (217) 244-1957          CSNet: davet%zaphod@uiuc.csnet
fax   (217) 244-1987