update: RECTRE problems

Gary Tarolli tarolli at riva.esd.sgi.com
Tue Dec 5 04:02:19 AEST 1989


In article <3022 at uceng.UC.EDU>, trohling at uceng.UC.EDU (tom rohling) writes:
> 
> A few days back, I posted an article about RECTRE not appearing to be 
> functioning right.  Well, here's an update.
> 
	.
	.
	.

> 
> What !exactly! is the format of the result of RECTRE (details!)???
> 


If you say "man rectread" on 3.2, you get the following NOTES section in
the man page

NOTES
     These routines are available only in immediate mode.

     On IRIS-4D GT and GTX models, the upper 4 bits of the 16-bit values
     returned by rectread are undefined, and its performance will suffer if
     x2 - x1 + 1 is odd.

If you are running on a GT or GTX model (you didn't say, but from your
problem it sounds like you are), then
I think your problem is that the upper 4 bits of the 16 bit values are
indeed undefined, and are probably not 0!  This would make your comparison
to "3" fail even though the pixel is indeed color 3.  Hope this helps.


--
						Gary Tarolli



More information about the Comp.sys.sgi mailing list