HDTenEightyP/NetNews huggingface dataset:
From: alan@highlite.uucp (Alan McConnell)
Subject: Re: PICT format? HELP!
Keywords: PICT, C
Organization: Gotham Communications Research
Distribution: comp.graphics
Date: Sat, 25 Jul 1992 13:40:41 GMT

dlreed@highlite.uucp (David L. Reed) writes:


>   I need to open PICT files, process the image they contain, and
>write a new PICT file.  I look at the stuff on PICT in Inside Macintosh
>V p 80 ff and find it cryptic, perhaps because it's Pascal,
>perhaps because it needs to "display" at the same time.  Can someone
>out there give me a lead as to the format of a PICT file?  if the info
>was slanted toward C that would be gravy . . Thanks in advance!
>Alan McConnell  

>-- 
>Alan McConnell             "What wondrous life is this I lead!
>Pixel Analysis              Ripe apples drop about my head . ."
>-- 
>David L. Reed:  dlreed@gotham.com  dlreed@highlite.uucp  uunet!highlite!dlreed
>         Come join us at highlite... Public Access Unix for DC/MD/VA.
>   D.C. Metro (703)318-1442, Comms set to 8N1.  login: guest  passwd: guest 
>     Taking calls at 1200/2400/9600+ (V.32bis/V.42bis w/error correction)   
	This is Alan McConnell again - I was having trouble posting(why
	does nn require a blank first line??) so my kindly sysop Dave Reed
	posted for me.  I use this opportunity to elaborate slightly:
	1.  All kind and helpful persons with info should post to _me_,
	alan@highlite.gotham.com.
	2.  I have been made aware that OpenPicture, WritePicture, etc, are
	provided by Apple, altho I haven't tried them, and the docs are still,
	for me at least, a tad murky.  But PICT format is, so I am told,
	increasingly used on other boxes, and I might wish to write a
	PICT file reader for a DOS box . . etc.  So I'd really like to
	have "specs" for a PICT file, if such exist.
	3.(fools rush in . . .)  In my extremely limited experience lurking
	on comp.graphics I've seen a remarkable number of requests like mine;
	"how does one read/write format ZYX?"  Should some expert start
	developing a FAQ with answers to these questions?  I'd be happy to
	cooperate by e.g. posting what I know/hope-to-learn about PICTS,
	TIFS, GIFS, etc.

Thanks in advance for all help!  Alan McConnell
-- 
Alan McConnell             "What wondrous life is this I lead!
Pixel Analysis              Ripe apples drop about my head . ."
Newsgroups: comp.graphics
From: kfw@ecrc.de (Kam-Fai Wong)
Subject: Seeking for Graph and Window Editing package
Organization: European Computer-Industry Research Centre GmbH, Munich, Germany
Date: Fri, 24 Jul 1992 09:50:07 GMT




           Seeking for C Graph and Window Editing Packages
           ===============================================
     
     We are currently implementing a  simulator  and  planned  to
     provide  it  with a user interface system.  To implement the
     interface system we are seeking for software packages  which
     provide  graph  (i.e.  nodes  interconnected with archs) and
     window drawing capabilities.
     
     Our programming language is C; and we'd  like  the  software
     packages  to  be  based  on  Motif.  Do you know if any such
     packages are available in the public domain?
     
     Cheers,
     Kam-Fai
     
     
==============================================================================
	Kam-Fai Wong 			
	European Computer-Industry Research Center (ECRC) GmbH
	Arabellastrasse 17		
	D8000 Munich 81
	Germany
	E-mail: kfw@ecrc.de (INTERNET)
	Tel :	+49 89 92699 203
	Fax :	+49 89 92699 170
From: vickie@niji.claremont.edu (Vickie Prebys)
Newsgroups: comp.graphics
Subject: tool to convert .tiff image to MS-Paintbrush .pcx format
Date: 30 Jul 92 19:48:25 GMT
Organization: Harvey Mudd College, Claremont, CA 91711

Does anyone know of a free or share util that will convert scanned .tiff 
images into Paintbrush's .pcx, Paint's .msp, or a bitmap .bmp formatted file???

Any ideas will be greatly appreciated!
Please respond to me directly at 
	Vickie@pitzer.claremont.edu
thanks,
vickie
From: kds@phy.duke.edu (Stokes Kevin)
Newsgroups: comp.graphics
Subject: Re: Polygon Graphics Books sought
Date: 27 Jul 92 21:16:35 GMT
Distribution: usa
Organization: Duke University Physics Dept.; Durham, N.C.

In article <1992Jul24.160910.1925@uwm.edu> xepo@csd4.csd.uwm.edu (Scott R Violet) writes:
>
>HI all,
>	I am interested in finding books on polygon ray tracing
>methods.  I would like one that goes into detail on how they work, and
>possibly how I might implement it by some coding examples.
>-- 
>
>		-Scott Violet (xepo@csd4.csd.uwm.edu)

  I have found the following book to be absoulutely excellent:

Fundamentals of Three Dimensional Computer Graphics   by Alan Watt
Addison - Wesley Publishing Company

I purchased it from my local Walden Software Store in a mall.  I have
about 10 $40+ books on graphics programming, and this book is the only one
work buying that I have run across.  Pascal programming examples are given.

                  -Kevin Stokes, Author of Corncob 3D


-- 
	Kevin Stokes
	Duke University Dept. of Physics	kds@phy.duke.edu
	Durham, N.C.      27706			
Xref: sparky comp.graphics:8093 comp.windows.x.pex:412
From: kiki@csa.bu.edu (Keith Baccki)
Newsgroups: comp.graphics,comp.windows.x.pex
Subject: problem with "pppolylineset3data" with DEC PHIGS
Date: 23 Jul 92 21:50:11 GMT
Followup-To: comp.graphics
Organization: Computer Science Department, Boston University, Boston, MA, USA
Originator: kiki@csa


	I'm using DEC PHIGS (C binding). Has anyone out there using
this had trouble with the POLYLINE SET 3 WITH DATA function? For some
reason PHIGS doesn't like drawing the polylines after I update the
vertices. Here's a quick overview.

- initialize polyline vertices
- open struct with POLYLINE SET call containing vertices and vertex colors.
- post the struct (at this point everything is fine - the polylines are drawn  
  correctly, so I'm confident that I'm setting up the argument list correctly). 

- enter the loop where vertices are updated...

	- update vertices
	- open struct
	- replace POLYLINE SET 3 WITH DATA call with one containing
	  updated vertices
	- close struct
	- update ws, at which point the polylines are not drawn


NOTE: This only happens with PPVERT_COLOUR flag set. When NONE is set, the
        the polylines are drawn with each update, but my color info for
	each vertex is ignored - not good. 

"Well," you might say, "it seems that you're giving it bogus color info since
it's isolated to that case." But again, everything comes up fine when the
struct is first posted. Actually, I'm using a PEX/Motif workstation, and
when I get X mouse events (to rotate the scene for instance), the program
does post the polylines correctly since it's not looping through the vertex
update loop at that time (I'm just changing the global transformation element).
But as soon as it get's to the update loop, the polylines just disappear as 
the vertex array is updated... Any suggestions, known bugs?? 

			Thanks alot,

				Keith Baccki

				kiki@csa.bu.edu
Newsgroups: comp.graphics
From: floyd@ni.umd.edu (Jim Matthews)
Subject: HPGL CGM conversion
Organization: University of Maryland
Date: Fri, 24 Jul 1992 15:32:57 GMT

Hi.  I'm in need of a conversion routine whch would convert between
HPGL and CGM: from one to the other or both ways.  Thanx!
								-Jim
-- 
 ____                           |
(   /	   floyd@wam.umd.edu    |       University of Maryland
   /._ _         eng.umd.edu    |          Computer Science
\_/// X \         ni.umd.edu    |        Standard Disclaimers
Xref: sparky comp.graphics:8164 comp.windows.x.pex:415 comp.lang.postscript:4080
From: lilleyc@cs.man.ac.uk (Chris Lilley)
Newsgroups: comp.graphics,comp.windows.x.pex,comp.lang.postscript
Subject: Re: Postscript output of phigs
Date: 26 Jul 92 22:39:21 GMT
Reply-To: lilleyc@cs.man.ac.uk (Chris Lilley)
Followup-To: comp.graphics
Organization: Department of Computer Science, University of Manchester UK

In article <20205@sbsvax.cs.uni-sb.de> et11ltab@sbusol.rz.uni-sb.de (Alexander Bachmann) writes:

>Hello all,
>I want to create postscript files of phigs-graphics. Does anybody know
>how to do this? Please reply via e-mail
>Thanx in advance,

Well that rather depends on what implementation you are using. If the
vendor supplies a PostScript workstation type, the usual routine is

a) Open your screen workstation, draw stuff, fiddle with valuators and so
on to get the positioning, angle, zoom and so on just so

b) Open a PostScript workstation

c) copy the viewing parameters to the new workstation

d) Post all the relevant structures to the new workstation

e) Close up the workstations and print or view the file.

Some problems: the HLHSR modes implemented for the PostScript workstation
might not be the same as for your screen. For example, DEC PHIGS implements
Z buffering (only) for PEX workstations, and Painters algorithm (only) for
PostScript. Thus, you can generate some but not all pictures - some display
incorrectly with Painters.

You also may not be able to do some enquiries to a PostScript workstation,
because it is not running the PostScript interpreter at the time PHIGS is
running (usually). So for example, positioning text by enquiring the text
extent might not work.

(Do any vendors PHIGS implementations support a Display PostScript
workstation type?)

If your PHIGS implementation does not support PostScript directly, there
are two other possibilities (well, three ;-)

* Output some other file type which can be converted to PostScript by
another package. For example, CGM, or DXF, or any other CAD type format

* Grab the screen and stick the result into a PostScript file as a
bitmapped image - low resolution, but could be ok depending on your
application. 

 xwd -nodbrs |xwdtopnm |ppmtorle|rleflip -v|rleswap -t 2,1,0|rletops >file

is one incantation that will do this, for example. Or for a lower quality,
8 bit only solution, try the screen grab function of XV.  Both these
examples are for X windows. 

The third solution is to implement a PostScript workstation type yourself.
Hence the ironic smiley ;-)

>Alex

Chris
Newsgroups: comp.graphics
From: mktjadx@gsusgi2.gsu.edu (Jeff A. Dilcher)
Subject: THANKS! for tif to gif help...
Organization: Georgia State University
Date: Thu, 30 Jul 1992 18:12:08 GMT

Thanks to all who took time to send me help on .tif to .gif 
conversions, and especially to:
 
Steve Lamont
Mr D Ingles
Richard Breuer
Steve Lamont
 
I appreciate you comments!
Jeff


-- 
 
  Jeffrey A. Dilcher                                   Atlanta, GA, USA
mktjadx@gsusgi2.gsu.edu                             Telephone 404-266-1585
      NSS #25914                                       II Peter 1:10,11
From: goldberg@rwja.umdnj.edu (Robert Goldberg)
Newsgroups: comp.graphics
Subject: Re: Need info on "IDL" a product of Research Systems Inc.
Date: 23 Jul 92 17:00:23 GMT
Organization: Robert Wood Johnson Medical School, Piscataway NJ


Try anonymous ftp to boulder.colorado.edu.
The pub/idl directory allows a demonstration version to be obtained.
This resource is maintained by RSI.

I've used IDL for medical imaging applications.  It is very powerful and
easy to program.

					Rob (goldberg@umdnj.edu)
Newsgroups: comp.graphics,comp.graphics.avs
From: b073766@hp9000.csc.cuhk.hk (Great Era)
Subject: How to convert Intergraph .rle files?
Organization: The Chinese University of Hong Kong
Date: Mon, 27 Jul 1992 09:16:03 GMT



I have two Intergraph .rle file. Is there any tool or method to convert
the Intergraph .rle file into other image format, say gif or tiff?

If you know the answer, please send me a e-mail. Thanks.
From: jpr@lhdsy1.lahabra.chevron.com (John C. Prestridge)
Newsgroups: comp.graphics
Subject: Looking for Public Domain CALCOMP to X-windows conversion routines.
Keywords: CALCOMP,GOULD,VERSATEC
Date: 22 Jul 92 19:13:25 GMT
Organization: Chevron, La Habra, CA

I have many old FORTRAN codes which contain CALCOMP calls to a vector pen
plotter and would appreciate public domain source code which I could use
with these old codes which would open an X-window and generate the plot
within this open window.  The primary workstation would be an IBM RS/6000,
but other workstations are available.  As a second alternative: it could
just generate a postscript file instead of plotting to a window.
 
Thanks for any assistance.
 
-- 
 -------------------------------------------------------------------------
   John Prestridge                           Internet:   jpr@chevron.com
   Chevron Oil Field Research Company                             
   P.O. Box 446, La Habra, CA 90633-0446                        
Newsgroups: comp.graphics
From: rray@lookout.it.uswc.uswest.com (Randy J. Ray)
Subject: "Mind's Eye" images
Organization: US WEST Communications, Inc. -- Denver, CO
Date: Thu, 23 Jul 1992 16:39:14 GMT

[Sorry if this was covered in the last few months, I am settling into a new
job with net access following a 7-month absence from comp.graphics]

Is there an ftp site that sports any images from the video, "The Mind's Eye"?
For those unfamiliar, this is a video of eight or so segments blended into
sequence as a single program. It sports amazing (IMHO) ray-tracing and
animation. The soundtrack is none too shabby, either. I am particularly inter-
ested in scenes from the segment with the chome-plated dinosaurs. GIF or JPEG,
or any format that xv can grok is fine.

Randy
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Randy J. Ray -- U S WEST IT/CSD         rray@{lookout,uswat}.it.uswc.uswest.com
I'd rather talk religion with Charles Manson than discuss ethics with Congress.
     -me                                                   Phone: (303)595-2852
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: langston@cinserver.Central.Sun.COM (Jim Langston RSEM - Cincinnati Office)
Newsgroups: comp.graphics
Subject: curses library with color
Date: 31 Jul 92 14:27:24 GMT
Distribution: world
Organization: "Sun Microsystems, Mt. View, CA."
NNTP-Posting-Host: cinserver.central.sun.com


Good morning,


Does anyone know of a curses library with
color support ?


Ideally, it needs to run on a Sun using 4.1.1
or 4.1.2.


The model terminal we need to run on is Relisys TR-170 or
Wyse WY-370.


TIA,

Jim Langston
From: sekhar@geronimo.sps.mot.com (Sekhar Narayanaswami)
Newsgroups: comp.graphics
Subject: nutmeg
Date: 27 Jul 92 20:59:25 GMT
Reply-To: sekhar@geronimo.sps.mot.com
Organization: Motorola, Inc.


Hi.  I know there is some graphing software called nutmeg around, that Berkeley
uses in its spice program.  I've heard it's public domain, so I was wondering
if anyone new where I could get the source for it...

Thanks.  E-mail is good also...

Sekhar Narayanaswami
sekharn@hkn.berkeley.edu
From: spl@alex.uucp (Steve Lamont)
Newsgroups: comp.graphics
Subject: Re: Color conversion algorithm
Date: 28 Jul 92 18:04:57 GMT
Article-I.D.: network.154289INNs76
Organization: University of Calif., San Diego/Microscopy and Imaging Resource
NNTP-Posting-Host: alex.ucsd.edu

In article <l7apjnINN2a6@news.bbn.com> slackey@BBN.COM (Stan Lackey) writes:
>If anyone has access to an algorithm for converting hue/brighntess/saturation
>to r/g/b, would you be so kind as to either post it or email me?  Thanks much!

#include <stdio.h>

/*
 * Straight out of Foley, van Dam, Feiner, and Hughes.
 */

hsv2rgb( h, s, v, r, g, b )
    
    double h;
    double s;
    double v;
    double *r;
    double *g;
    double *b;
    
{
    
    if ( s == 0.0 ) {

	if ( h < 0.0 ) {
	    
	    *r = v;
	    *g = v;
	    *b = v;
	    
	} else
	    fprintf( stderr, "hsv2rgb error -- invalid combination.\n" );

    } else {
	
	int i;
	double f;
	double p;
	double q;
	double t;
	
	h = fmod( h, 360.0 );
	if ( h < 0.0 )
	    h += 360.0;
	
	h /= 60.0;
	
	i = floor( h );
	f = h - i;
	p = v * ( 1.0 - s );
	q = v * ( 1.0 - ( s * f ) );
	t = v * ( 1.0 - ( s * ( 1.0 - f ) ) );
	
	switch ( i ) {
	    
	  case 0: {
	      
	      *r = v;
	      *g = t;
	      *b = p;
	      break;
	      
	  }
	  case 1: {
	      
	      *r = q;
	      *g = v;
	      *b = p;
	      break;
	      
	  }
	  case 2: {
	      
	      *r = p;
	      *g = v;
	      *b = t;
	      break;
	      
	  }
	  case 3: {
	      
	      *r = p;
	      *g = q;
	      *b = v;
	      break;
	      
	  }
	  case 4: {
	      
	      *r = t;
	      *g = p;
	      *b = v;
	      break;
	      
	  }
	  case 5: {
	      
	      *r = v;
	      *g = p;
	      *b = q;
	      break;
	      
	  }
	    
	  default: {
	      
	      fprintf( stderr, "hsv2rgb error: Invalid case!  case = %d\n",
		       i );
	      abort();
	      
	  }
	    
	}
	
    }
    
    return;
    
}



-- 
Steve Lamont, SciViGuy -- (619) 534-7968 -- spl@dim.ucsd.edu
UCSD Microscopy and Imaging Resource/UCSD Med School/La Jolla, CA 92093-0608
"Out of the ash/I rise with my red hair/And I eat men like air."
                        - Sylvia Plath, "Lady Lazarus"
From: lilleyc@cs.man.ac.uk (Chris Lilley)
Newsgroups: comp.graphics
Subject: Re: Pantone to RGB or HSV conversion
Date: 26 Jul 92 22:20:52 GMT
Reply-To: lilleyc@cs.man.ac.uk (Chris Lilley)
Organization: Department of Computer Science, University of Manchester UK

In article <1992Jul23.005234.29900@msuinfo.cl.msu.edu> rudnitsk@cps.msu.edu
(Rudnitsky Andrij M) writes: 

>Is there a way to convert a Pantone color to either RGB or
>HSV?  

Well, no

At least, assuming you mean 'is there a way to convert a Pantone colour to
the SAME colour in RGB which will look the same on all monitors'.

>I have a suspicion that Pantone colors can't really be
>accurately described by RGB or HSV, 

Your suspicion is correct ;-)

The colours can be accurately described by any standard, device independant
colour system such as CIE XYZ or its relatives.

Given the specification for your monitor, and assuming it is gamma
corrected to make the light output linear, then the CIE specification can
be converted to an RGB value for *your* monitor and displayed on the
screen.

>and that the colors numbers are assigned at random. 

I don't know if it is random. I suspect they have some sort of system,
although whether this is publicly available is another matter.

> Is there perhaps a conversion chart?

Some commercial programs use internal tables of CIE specifications for the
Pantone Process colour range (different from the original Pantone colours,
which were for spot colour inks). The colour measurements may well be
proprietary, though.

In principle, the conversion you suggest can be done. It requires:

a) a lookup table to go from the Pantone number to a CIE specification.
There are not that mant Pantone colours, this should not be a problem.

b) measured values for each colour. With access to the relevant equipment,
measuring the colours would be no problem from a technical viewpoint.
However, the Pantone swatch books come with some form of license, whose
terms I have not seen. This license may well prohibit you from measuring
the valuers or from making them available publicly.

c) the chromaticity coordinates of the monitor phosphors and white point,
and the gamma value, to convert from CIE colours to RGB. This is simple
given the data, which is obtainable from manufacturers.

The main problem is licensing. This is understandable: if this data is
available, Pantone looses money because their colours can be reproduced on
screen or printer without a Pantone license (providing they are within the
range of displayable colours for that device).

Of course, if someone has a list of these values which may be legally
distributed, post it here!! I would be most interested!
 
>Andy Rudnitsky    rudnitsk@pleiades.msu.edu    rudnitsk@cps.msu.edu

Chris Lilley				      lilley@cgu.mcc.ac.uk
Computer Graphics Unit, Manchester Computer Center, Manchester, UK
Newsgroups: comp.graphics
From: jef@netcom.com (Jef Poskanzer)
Subject: Re: FAQ as requested
Date: Mon, 27 Jul 92 16:08:07 GMT
Organization: Paratheo-Anametamystikhood of Eris Esoteric

jk87377@cc.tut.fi (Juhana Kouhia):
}I sent this yesterday, but the article was deteled by system(?).

By me, actually.  Since you apparently can't understand why posting
it is wrong, I didn't bother notifying you.  I've cancelled your
repost too.

If you want to take responsibility for posting a FAQ regularly, by
all means, go ahead and create one.  If you want to post someone else's
seven months out of date work, fuck you very much.
---
Jef

           Jef Poskanzer  jef@netcom.com  jef@well.sf.ca.us
 "If John Muir were alive today, you'd cross the street to avoid him."
                           -- Carter Scholz
Newsgroups: comp.graphics,comp.sys.novell,bit.listserv.novell
From: IMAGING.CLUB@OFFICE.WANG.COM ("Imaging Club")
Subject: Kodak planning sale of NetWare imaging group
Organization: Mail to News Gateway at Wang Labs
Date: 21 Jul 92 23:30:04 EST

Does anyone know what is going on with Kodak's announcement that
they are exiting the document imaging business, including Novell
document image-enabled NetWare?  The president of their Imaging Group
said that they are exiting businesses not well-aligned with Kodak's
long term strategy.  Kodak indicated this matter was now in the
hands of investment bankers.

Michael.Willett@OFFICE.Wang.com
Newsgroups: comp.graphics
From: joe@proto.com (Joe Huffman)
Subject: Re: More on Borland's putimage()
Organization: Prototronics @ Sandpoint, Idaho
Date: Wed, 22 Jul 1992 13:55:52 GMT

scavanag@neumann.une.edu.au (Steven Cavanagh) writes:

>is there any way you can draw pictures with a paint program, and
>then use them in your programs with getimage() and putimage()
>(or any other method, for that matter)

The data format for putimage is graphics driver dependent.  I'm told it
is fairly easy to figure out (and may in fact be documented).  

What you probably really want is something to read the image from a 
file (.PCX, .GIF or other well known file format) and put that on the 
screen.  You can use the putpixel() routine to put the image on the
screen, but it will be very slow.  There are various companies that 
have graphics libraries that will allow you to display images on your
screen from inside your program.  Some even have a BGI interface available
so you don't have to change your BGI function calls to the equivalent ones
in the new library (the company I work for sells "Flash Graphics" which
has such an interface).

-- 
netcom!proto!joe
joe@proto.com
From: thorne@marsh.cs.curtin.edu.au (Chris Thorne)
Newsgroups: comp.graphics
Subject: Query on knowledge-based s/w for image rendering
Date: 30 Jul 92 11:12:45 GMT
Organization: Curtin University of Technology



I am currently doing a Masters project building some Knowledge-based
investigative tools.  The purpose is to determine what type of 
knowledged-based capability is suitable for providing advice on image 
rendering.  

I have chosen a particular rendering domain, texture mapping, so that I can
focus on the requirements of a fairly narrow field of expertise.  

Does anyone know of similar research underway, and if so, could you cite 
articles, conference proceedings or provide information on suitable
contacts?

Thanks in advance,

Chris Thorne
Newsgroups: comp.graphics
From: kaufman@eecs.nwu.edu (Michael L. Kaufman)
Subject: Is there a Graphic Gems III?
Organization: EECS Department, Northwestern University
Date: Tue, 21 Jul 1992 12:36:29 GMT

I know I will find out next week anyhow, but if anyone has a TOC, please
post it.

Thanks, Michael

-- 
Michael Kaufman | I've seen things you people wouldn't believe. Attack ships on
 kaufman        | fire off the shoulder of Orion. I watched C-beams glitter in
  @eecs.nwu.edu | the dark near the Tannhauser gate. All those moments will be
                | lost in time - like tears in rain. Time to die.     Roy Batty 
Newsgroups: comp.graphics