Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!sgi!shinobu!odin!bennett From: bennett@sgi.com (Jim Bennett) Newsgroups: comp.sys.sgi Subject: Re: putting and retrieving colours...help! Message-ID: <1990Aug28.174521.5752@odin.corp.sgi.com> Date: 28 Aug 90 17:45:21 GMT References: <10335@pt.cs.cmu.edu> Sender: news@odin.corp.sgi.com (Net News) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 12 In article <10335@pt.cs.cmu.edu> cycy@isl1.ri.cmu.edu (Scum) writes: >I'm having a very vexxing problem right now. I'm in doublebuffer, RGB mode. >In the backbuffer, I draw an object in 3-space with 0x01f as it's colour. >Just before this, I turn off lighting mode by binding the material to 0, >set the shademodel to FLAT, and even turn off zbuffering. What I get immediately >back, however, is 0x11 ! To get the colour of the pixel, I cmov to a position >where I drew the object, and use readRGB. In the example you gave, the RGBrange command will override the color command, so the color will be determined by the Z value. Jim Bennett (bennett@esd.sgi.com)