[comp.sys.sgi] icut and RGB mode

mkibler@eecs.wsu.edu (Michael K. Kibler) (02/28/91)

I have been hacking on icut in order to save the image in a
different format. I have found what seems to be a problem.

I have an application which creates a window and shades using
local lighting models and in RGB mode. When I use icut to save
the image it doesn't seem to work ( I used ipaste to redisplay ).
I was debugging some of the code and found that getdisplaymode()
was returning 1 indicating that the window was in CMAP mode but
I know the window I want to save is in RGB mode. Any ideas?

Also is it possible to write a GL equivilant of xwd which would
allow you to just click in the window of your choice and save it?

Thanks in advance.
-- 
 ---- Mike  ( ~~ Radiosity is more than just heat! )
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Michael K. Kibler        INTERNET:  mkibler@eecs.wsu.edu
 Elect/Compt. Engr. Dept. UUCP    :  ...uunet!eecs.wsu.edu!mkibler

blbates@AERO36.LARC.NASA.GOV (Brent Bates ViGYAN AAD/TAB) (02/28/91)

  When using icut (scrsave) it doesn't matter what mode the windows you
are saving are in.  Scrsave uses gl_readscreen, currently an undocumented
routine, which returns rgb values no matter what mode you're in.
  There is a known problem with gl_readscreen, if you try to save a full
screen width, 1280 pixels, the information returned by gl_readscreen is
garbaged.  The temporary fix for this is save images less than 1280 pixels
wide.  Hopefully, gl_readscreen will be fixed in the next release and
become a "supported" and documented routine.

	Brent L. Bates
	NASA-Langley Research Center
	M.S. 361
	Hampton, Virginia  23665-5225
	(804) 864-2854
	E-mail: blbates@aero36.larc.nasa.gov or blbates@aero8.larc.nasa.gov