HDTenEightyP/NetNews huggingface dataset:
From: brettb@batcave.csd.sgi.com (Brett Bainter)
Subject: Re: Problems with blink()  (Help!)
Organization: Silicon Graphics, Inc.
Date: Thu, 28 Jan 1993 03:02:06 GMT

In article <C0GCo0.9C7@cmcl2.nyu.edu>, dario@cns.nyu.edu (Dario Ringach, x3941) writes:
|> I've been having problems making blink() work on a Crimson running IRIX
|> Release 4.0.5 System V.  The problem is that blinking works, but it
|> blinks the color in the colormap with BLACK always, independently of
|> the red, green, blue, entries in:  blink(rate,index,red,green,blue).
|> 
|> Does anyone know why?  Thanks in advance for any help.


this is due to a known bug with blink().  it is passing the rgb values
directly to x.  since x's rgb range is 0..65535 the normal gl rgb values
of 0..255 really are close to black.  the problem can be worked around
by shifting your colors up 8 bits (which is what the fix will do internally).

you can use the following macro to help:

#define m_blink(rate,index,r,g,b)  blink(rate, index, (r)<<8, (g)<<8, (b)<<8)

some other things to look out for when using blink:

1. make sure you gflush your mapcolors. (the blinker.c example from 4Dgifts
   has a problem in that it does not do this).

2. there is a known bug where blinking will fail if a program exits and
   leaves blinking on.  thus you should always do a blink(-1, 0, 0, 0)
   before exiting.  another methodology is to turn blinking on when you
   get focus and turn it off when you lose focus.

-- 
Brett Bainter
Silicon Graphics
brettb@sgi.com
From: veerasam@utdallas.edu (Jey Veerasamy)
Newsgroups: comp.sys.sgi.graphics
Subject: SGI Imagelib file to GIF/JPEG converson
Date: 26 Jan 93 17:27:43 GMT
Distribution: usa
Organization: Univ. of Texas at Dallas

I want to post a few pictures to the pictures newsgroup. The images are
in SGI Imagelib format. I converted them to gif format and viewed in SUN
workstation (If I post the SGI Imagelib files, pictures can be seen only
in IRIS workstations). Unfortunately quality of the image is really poor.

(One reason I can think of, is, GIF is 8-bit color based whereas SGI Imagelib
is minimum 24bit color, possibly JPEG may be helpful. Is there anyway I can
convert SGI Imagelib to JPEG format straight?)

Or is there any simple way to improve the quality of GIF file?

Thanks,
Jey.
Newsgroups: comp.sys.sgi.graphics
From: wsherman@ncsa.uiuc.edu (William Sherman)
Subject: texturing onto sphere using sphere library
Organization: National Center for Supercomputing Applications
Date: Wed, 27 Jan 1993 22:06:00 GMT
Keywords: texture sphere libsphere

I'm trying to map a texture onto a sphere.   Such that the top and
bottom converge at the "poles" of the sphere, and such that the
texture wraps around and connects at a "meridian."

I'm using the libsphere library to generate the sphere polygons, so
I don't have much (any) control over setting the texture values at
the vertices.  I am using the texgen command, but I cannot find
an appropriate set of values to get it to work.  Though I can get
close, the best I do gives me part of the texture correct, but all
on one hemisphere, and mirrored on the other hemisphere.

	Thanks,
	Bill

/************************************************************************/
/* Bill Sherman   (wsherman@ncsa.uiuc.edu)				*/
/* National Center for Supercomputing Applications			*/
/* University of Illinois						*/
/* Champaign-Urbana							*/
/*									*/
/*   "You want to do mankind a real service?  Tell funnier jokes."	*/
/* 		Og							*/
/************************************************************************/
Newsgroups: comp.sys.sgi.graphics
From: roman@seneca.nynexst.com (Roman Krzanowsky)
Subject: 3-D data formats exchange standards ( flight simulators etc..)
Originator: roman@seneca
Organization: Nynex Science and Technology
Date: Fri, 22 Jan 93 23:55:28 GMT

Hi,
I am looking for 3-d data exchange standards or formats for transferring
data describing urban environment i.e. terain, buildings, trees etc.
I would welcome  any info in this topic
thanks
Roman K
914 644-2395


Newsgroups: comp.sys.sgi.graphics
From: rainer@spot.Colorado.EDU (Rainer Malzbender)
Subject: Re: HELP WITH StereoView GLASSES!
Organization: University of Colorado, Boulder
Date: Wed, 27 Jan 1993 05:35:13 GMT

In article <1993Jan27.142119.13463@waikato.ac.nz> johnc@waikato.ac.nz writes:
>Hey - that's OK.  I've been innundated with 0.0 responses to my request for
>info on writing software for StereoGraphics' CrystalEyes shutterglasses.  
>Actually, I did get one response, but from someone else who said they'd like 
>to know too.
>

I guess my email never made it south of the border. I don't know if he's
still with StereoGraphics, but try to contact Bob Akka -- he's got some
sample code and documentation which I believe he supplies to customers.
You'll have to get the address (San Rafael ?) and phone elsewhere. I
ported some of their sample code to an HP workstation, and there was
definitely some SGI stuff floating around.


-- 
Rainer M. Malzbender       'Cause when love is gone, there's always justice.
Fyzzicks, CU Boulder        And when justice is gone, there's always force.
(303)492-1366               And when force is gone, there's always Mom. Hi Mom.
                                            -Laurie Anderson
From: brettb@batcave.csd.sgi.com (Brett Bainter)
Newsgroups: comp.sys.sgi.graphics
Subject: Re: GL errors when drawing from SGI to SGI
Keywords: GL
Date: 28 Jan 93 06:44:09 GMT
Organization: Silicon Graphics, Inc.

In article <1jkprgINN3hv@fido.asd.sgi.com>, aschaffe@holodeck.csd.sgi.com (Allan Schaffer) writes:
|> joes@lpi.liant.com said..
|> >Hi:
|> >
|> >Here's the msg that I'm getting when I try to draw from an SGI to another SGI 
|> >(it's a GL application).  Both machines have the same operating system level.
|> > 
|> > dgl error (TCP connect): Connection refused
|> > dgl error (default init): default dglopen(rthpirf.liant.com:0,4) returned -127
|> >
|> >Any ideas?  I've done the usual xhost stuff and I can run a pure
|> >X application (xclock) from machine A and have it draw on machine B.
|> 
|> First, make sure the following line (or one similar) is 
|> in /etc/services on both machines, and is not commented out:
|> 
|> sgi-dgl		5232/tcp			# SGI Distributed Graphics Lib.
|> 
|> Then, make sure the following line (or one similar) is 
|> in /usr/etc/inetd.conf on both machines, and is not commented out:
|> 
|> sgi-dgl stream	tcp	nowait	root	/usr/etc/dgld	dgld -IM -tDGLTSOCKET
|> 
|> Now, run the application again.
|> 

there is also an open bug against dgl not working when magic cookies are
in effect.  if you are using them, try turning this level of protection
off via the DisplayManager*authorize resource in /usr/lib/X11/xdm/xdm-config.
(see the man page for xdm for more info).

-- 
Brett Bainter
Silicon Graphics
brettb@sgi.com
Newsgroups: comp.sys.sgi.graphics
From: wes@uf.msc.edu (Wes Barris)
Subject: Using the GLX widget with the shape extension?
Reply-To: wes@msc.edu
Organization: AHPCRC, Minnesota Supercomputer Center
Date: Thu, 21 Jan 1993 19:17:16 GMT


I have written a Motif application on the IRIS which uses Display Postscript
to draw text into an X pixmap.  I then transfer the contents of this pixmap
to a GLX widget.  I want to use the shape extension so that the background
of the text/GLX widget is transparent.  I am using XShapeCombineMask to 
to set the mask pixmap of the GLX window but it does not seem to have any
effect.

Is the GLX widget compatible with the shape extension?  Is there any
sample code available?

===============================================================================
Wes Barris                                                   PH: (612) 626-8090
Minnesota Supercomputer Center, Inc.                         Email: wes@msc.edu
From: walker@owl.asd.sgi.com (Christopher Walker)
Newsgroups: comp.sys.sgi.graphics
Subject: Re: ImageVision and g++
Date: 25 Jan 1993 18:24:54 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA
NNTP-Posting-Host: owl.asd.sgi.com


In article <C1DHGr.B00@dcs.ed.ac.uk>, gordonc@epcc.ed.ac.uk writes:
> Sorry if this has been asked before, but can I use g++ (V2.0) to compile
> ImageVision C++ progs, and if so, which options should I use ??
> 
> Any help appreciated,

We've never tried.. but I strongly doubt that SGI's C++ and gnu's C++ are
compatible.  Maybe someone with more experience with g++ would know.  I suspect
that the IL would need to be recompiled with g++ and there isn't much likelihood
of SGI supporting that.. sorry.

---
Chris Walker (x1106 or walker@sgi.com)
From: brettb@batcave.csd.sgi.com (Brett Bainter)
Newsgroups: comp.sys.sgi.graphics
Subject: Re: Remote display of SGI onto brand-X XTerm?
Date: 28 Jan 93 07:08:35 GMT
Organization: Silicon Graphics, Inc.

In article <1993Jan26.202309.7823@ra.msstate.edu>, mrr1@Ra.MsState.Edu (mark r rauschkolb) writes:
|> 
|>      Is there a way to display the output of an SGI on a generic
|> X terminal?  I have tried logging into the SGI and setting the 
|> display variable, but that doesn't work.

if you are running irix 4.0.* (i.e. the x environment) this should work
for programs which just utilize X for graphics.  programs which use
gl for graphics will not show up on an x-terminal.

to verify the connection attempt to run /usr/bin/X11/xclock (a plain
vanilla x client) and see if it shows up.  it should.  if it doesn't
then something isn't setup correctly.  use echo $DISPLAY to see what
it is set to as a first step.

a program like /usr/demos/bin/insect should not show up because it is
a gl program.
 
-- 
Brett Bainter
Silicon Graphics
brettb@sgi.com
Xref: sparky comp.sys.sgi.graphics:183 comp.sys.sgi.hardware:190
Newsgroups: comp.sys.sgi.graphics,comp.sys.sgi.hardware
Subject: Color scanners
From: mark@wehi.edu.au (Mark Watson)
Date: 22 Jan 1993 01:51:00 GMT
Distribution: world
Organization: The Walter and Eliza Hall Institute of Medical Research
Keywords: scanners, color, network
NNTP-Posting-Host: wehio.wehi.edu.au

Hello again,

  This is the third, and hopefully final, phase of the Art department
re-equiping.

  This is a much harder one to define.  We already have 3 scanners here
but not one of them can live up to its rated maximum resolution or else
they have other problems with color, grey scale, etc.  The
sales-drones tell you to buy the upgraded model.  When you try to get
the scanner fixed the company goes to receivers (with your scanner there
as a company asset!) and of course, there is no hope of a refund.  We
managed to get the unit back, but no change in its functionality.  

  What I would like is a unit that functions at high resolution, full
color, can take up to A4 size images, and works.  The image that is
produced should be in a popular format or all the conversion software
to put it into a common format must be provided.  By common format I
mean PICT, giff, jpeg, tiff or PostScript.

  Does anyone know of such a beast?  

  Part of our original equipment problems were due to the Art dept.
buying the scanners and not testing them to the peak of their ability
until 8 months later when no company wants to hear of you.  So this time
it would be nice if the device would have an Australian distributor who
is willing to put a unit in for a weeks solid testing prior to purchase.

  If I get enough responses then a summary will appear.

-- 
Mark W. Watson                      | mark@wehi.edu.au
The Walter and Eliza Hall Institute | Ph: +61 3 345 2555
P.O. Royal Melbourne Hospital       | Fax: +61 3 347 0852
Australia    3050                   | include all known disclaimers here
Newsgroups: comp.sys.sgi.graphics
From: alain@paris.asd.sgi.com (Alain Dumesny)
Newsgroups: comp.sys.sgi.graphics
Subject: Re: Q: Cylinders in Inventor vs. Explorer...
Keywords: Inventor Explorer cylinders rotations
Date: 26 Jan 93 05:19:54 GMT
Reply-To: alain@sgi.com
Distribution: usa
Organization: Silicon Graphics Inc.
NNTP-Posting-Host: paris.asd.sgi.com

In article <1993Jan15.011923.10776@uc.msc.edu>, danw@uh.msc.edu (Dan Waylonis) writes:
|> 
|> 
|> 	And one more question:  If my 'root' for the SceneGraph looks like:
|> 
|>                   SoSep
|>                   (root)
|>                     |
|>           __________|__________
|>           |                   |
|>         SoSep               SoSep
|>          (A)                 (B)
|>    _______|_______     _______|_______
|>    |    |   |    |     |    |   |    |
|>  Node  ... ... Node   Node ... ... Node
|> 
|> 	Is there a way to just "replace" the "A" or "B" separators without
|> 	having to reset the view (as in:  root->addChild(A), root->addChild(B),
|> 	SoXtExaminerViewer::setSceneGraph(root)) ?
|> 		

Sure. You can make any changes you want to the scene graph even after
giving it to the viewer. By default the viewer only insert a camera (if it
doesn't find one) and possibly other stuff outside of the scene graph root
that you supply, so your scene graph topology shouldn't change. When you
change the scene (say replace sepA with something else) a redraw will
later happen, but the camera will not change position.

|> 	BTW, Inventor is really cool.
|> 

Glad you like it....

-------------------------------------------------------------------------
Alain Dumesny	alain@sgi.com	(415)390-5250	    Silicon Graphics Inc.
From: sundar@fiber-one.ai.mit.edu (Sundar Narasimhan)
Newsgroups: comp.sys.sgi.graphics
Subject: simple GL question
Date: 28 Jan 1993 17:55:01 GMT
Organization: MIT Artificial Intelligence Laboratory
Distribution: world
Reply-To: sundar@ai.mit.edu
NNTP-Posting-Host: fiber-one.ai.mit.edu

What is the name of the function that is sort of the inverse
of the map* functions? I want to take a 3-d point and find out
the 2-d point on the screen it would project onto. Is the only
solution to get the transformation matrix and do the conversion
myself?

-Thanks.
From: SHALEE@MAINE.MAINE.EDU
Newsgroups: comp.sys.sgi.graphics
Subject: ImageVision ROI question
Date: 26 Jan 93 17:51:17 GMT
Organization: University of Maine System

If I apply an ROI to an image and display it, the results are fine IF
I set the valid region to that outside the ROI, i.e.
  roi = ilRectRoiCreate(100,100,150,30,512,512,0);

However, if I set the valid region to be within the ROI
  roi = ilRectRoiCreate(100,100,150,30,512,512,1);
The top half of the image is garbage, although the bottom half
is OK.
The image is a 512x512 TIF file.

Any pointers here would be greatly appreciated.

Stephen Shaler
University of Maine
steve@pith.umecfr.maine.edu
From: reznik@robios.me.wisc.edu (Dan S Reznik)
Newsgroups: comp.sys.sgi.graphics
Subject: Normals facing away from viewer
Date: 22 Jan 93 22:45:45 GMT
Distribution: comp.sys.sgi,comp.sys.sgi.graphics
Organization: U. Wisconsin-Madison, Robotics Laboratory


I am drawing a cylindrical surface in 3D using quadrilateral patches
(shademodel(FLAT)), with zbuffer(TRUE), using GL's defualt lighting
settings. The problem is that the inside patches aredrawn black since
their normals are facing away from the viewer and I think the lighting
calculations don't work right. How can I change this situation ? I
tryied turing on TWO-SIDED lighting but this seems not to work on our
Personal Iris 4D20. A software solution I thought of is to preprocess
the patches and flip the normals [ mult by (-1, -1, -1) ] for the
polygons found to be backfacing. Any suggestions ?

Dan

P.S - Email responses preferred since I don't subscribe here.
Newsgroups: comp.sys.sgi.graphics
From: burr@seas.gwu.edu (Timothy J. Burr)
Subject: Inventor: scaling components in a hierarchy
Organization: George Washington University
Distribution: usa
Date: Thu, 21 Jan 1993 22:15:41 GMT

I've linked a bunch of SoShapeKits together via their childLists to 
create a hierarchical object - a hand.  Everything works fine except,
and its a big except, I don't want the scaling transformation of
a parent to affect the child.  Rotations and Translations should, it
seems to me, affect the stack but not scaling.  If you want to 
uniformly scale the entire object then stick a SoScale node at the
top off of the scene node.  How do you do component specific scalings
without affecting those components further down the hierarchy? There
seems to be no way to tell the SoTransform node, or any node to use
the field but don't push it on the stack.  My only alternative seems
to undo the scaling done by the parent at each child.  This is rather
ugly.  Is there a way around this?

Tim


/*-----------------------------------------------------------------------*/
/* Tim Burr         burr@seas.gwu.edu  or  burr@enews.nrl.navy.mil	 */
/*"Essence is, that about a thing that makes that thing what it is"      */
/*-----------------------------------------------------------------------*/
Newsgroups: comp.sys.sgi.graphics
From: sglanger@vela.acs.oakland.edu (LANGER STEVEN C)
Subject: IRIX time
Organization: Oakland University, Rochester MI.
Distribution: na
Date: Fri, 22 Jan 1993 14:41:57 GMT

I'm using an Indigo with IRIX 4.0

the code
		buf = ctime ((const time_t *) time);
		printf ("buf=%s\n", buf);

always prints, no matter how often I call it, something like;

	Sat. Jan. 10, 1989 12:43:01

(this may be the wrong order of data as I'm typeing this from 
memory). The point is, typeing "date"
 at the command line gives the correct
info. Why doesn't the code?

thanks in advance, steve



-- 
Steve Langer  			       sglanger@argo.acs.oakland.edu (VMS)
Oakland University		       sglanger@vela.acs.oakland.edu (Ultrix)
---------------------------------------------------------------------------
Standard disclaimers apply. In addition, the author makes no guarantees,
concerning the grammatical accuracy of his writing. Therefore, any ^B's, ^C's, 
midword character additions/deletions and other non-sense which occurs (after 
the work leaves the author's decade old text editor via his decade old Amiga, 
struggles through a local 1200 baud Merit server to be further mauled via the 
remote VAX mail servers) is someone elses problem - namely yours.
---------------------------------------------------------------------------
From: pauli@sgi.com (Paul Isaacs)
Newsgroups: comp.sys.sgi.graphics
Subject: Re: HELP AN IRIS INVENTOR
Keywords: help
Date: 26 Jan 93 01:05:51 GMT
Organization: Silicon Graphics
NNTP-Posting-Host: uniblab.asd.sgi.com

In article <1993Jan26.003950.5073@sol.ctr.columbia.edu> csysmw@scs.leeds.ac.uk (S M Wombwell) writes:
>
>
>Hello there,
>	I am trying hard to programme a 3D sculpture package in Iris Inventor
>using the language C++. I have a problem that I need help with:

Okay, first of all make sure to read Chapter 8 of the Inventor Programming 
guide. It has general instructions and four examples of how to use 
Inventor NURBS.

>   1.	Is there anyway to use the drag pointer with NURB surfaces?

Yes. When the SoNurbsSurface node draws, it looks in the current coordinates 
(i.e., the most recent SoCoordinate3 node) for the control points.  See 
Chapter 8 and the man pages to find out which coordinate corresponds to 
which control point.

Once you know the control point you want to move, you can attach a dragpoint
manipulator to that point as follows:

myDragPoint->attach( pathToCoordinateNode, indexOfPointToEdit );

The path should go from the scene root down to the SoCoordinate3 node.
The index should be the index of the control point you need to edit.

I haven't tried this exact example, but it should work fine. As you move the
manipulator, the NURB should change to be influenced by the control point.
Let me know if you have a problem. 

>   2.	Has anyone got any predefined shapes using NURB surfaces? (ie cones,
>	spheres, cylinders etc)

Inventor ships only one NURBS object. It should be installed as 
/usr/data/models/teapot.iv


>   3.   Is there an easy way to merge two NURB surfaces?	

I haven't worked with NURBS myself. As I understand it this is a 
general NURBS question, not an Inventor question. Is that correct?
I think you just have to make sure that their control points match along
a shared edge, but I'm not sure.

>Your help is much appreciated
>
>  -= Stephen =-
From: walker@owl.asd.sgi.com (Christopher Walker)
Newsgroups: comp.sys.sgi.graphics
Subject: Re: ImageVision and g++
Date: 26 Jan 93 21:18:39 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA
NNTP-Posting-Host: owl.asd.sgi.com


In article <C1Grqz.n4z@dcs.ed.ac.uk>, gordonc@epcc.ed.ac.uk writes:
> In article <1k1b9mINN8a6@fido.asd.sgi.com>, walker@owl.asd.sgi.com (Christopher Walker) writes:
> > 
> > In article <C1DHGr.B00@dcs.ed.ac.uk>, gordonc@epcc.ed.ac.uk writes:
> > > Sorry if this has been asked before, but can I use g++ (V2.0) to compile
> > > ImageVision C++ progs, and if so, which options should I use ??
> > > 
> > > Any help appreciated,
> > 
> > We've never tried.. but I strongly doubt that SGI's C++ and gnu's C++ are
> > compatible.  Maybe someone with more experience with g++ would know.  I suspect
> > that the IL would need to be recompiled with g++ and there isn't much likelihood
> > of SGI supporting that.. sorry.
> > 
> 
> .....ermmm, isn't the language specification for C++ fairly strict? If I were to take pieces of C code from my SGI and attempt to compile them elsewhere, I'd like to think that I wouldn't experience too much trouble :-) (also,for example, I can compile GL programs with gcc)
> 

IL ports just fine to the other platforms we've tried.  That's not the issue.
The problem is in how the compilers implement various tricks..

> Incidentally, the trouble is in the linking stage. With the options, -traditional-cpp and -x c++, all is OK until link, when I get :
> 
> gcc -x c++ -traditional-cpp -o imgcat imgcat.c++
> 

Like name mangling.. the names below show me that g++ mangles differently than
ATT's cfront.  I'm sure there are deeper problems like the layout of vtbl's and
other such goodies.. in short I'd give up while your ahead :-)

C++ just isn't as interoperable as you might like because of these little 
hacks that have been used to fool the linker (which knows nothing about 
overloading and class names etc.)

> Undefined:
> getElem__C7ilPixeli
> findLink__15ilIndexableListl
> _._15ilIndexableList
> inList__9ilImgListP7ilImage
> findImg__9ilImgListP7ilImage
> firstImg__9ilImgList
> lastImg__9ilImgList
> nextImg__9ilImgList
> resetCheck__7ilImage
> __as__7ilPixelRC7ilPixel
> ilDataIsSigned
> setInput__7ilImagePT0i
> findParent__7ilImagel
> findChild__7ilImagel
> _._10ilCacheImg
> ilOpenImgFile
> ilCreateImgFile
> childResponse__7ilImagePT0
> parentResponse__7ilImagePT0
> reset__10ilCacheImg
> getSubTile3D__10ilCacheImgiiiiiiPviiiiiiPC8ilConfig
> setSubTile3D__10ilCacheImgiiiiiiPviiiiiiPC8ilConfig
> copyTile3D__10ilCacheImgiiiiiiP7ilImageiiiPii
> fillTile3D__10ilCacheImgiiiiiiPvPC8ilConfigPC6ilTile
> flush__10ilCacheImg
> collect: /usr/bin/ld returned 1 exit status
> 
---
Chris Walker (x1106 or walker@sgi.com)
From: SHALEE@MAINE.MAINE.EDU
Newsgroups: comp.sys.sgi.graphics
Subject: ROI Question cont'd.
Date: 26 Jan 93 20:01:18 GMT
Organization: University of Maine System

An ROI'd image with parameters set to display within the ROI only seem to
work if the top of the ROI is = 384.  Starting with a 2 size ROI in the lower
left hand corner, the bottom 1/4 of the image is correct, with the top 3/4
unchanged, except for horizontal lines at the 1/2 and 3/4 mark.  If the size
of the ROI increases to 1/4 of the image height, then the bottom half displays
correctly.  When it touches the 1/2 image height mark, 3/4 of the image
displays correctly.  I have tried mucking with PageSize to no avail.
The image is a 512x512 TIFF file.  Page size defaults to 65536 pixels.
Has anyone else noticed this behavior?
Any ideas on parameters to change, etc. would be appreciated.

Stephen Shaler
University of Maine
steve@pith.umecfr.maine.edu