Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!orca!undies!pmartz From: pmartz@undies.dsd.es.com (Paul Martz) Newsgroups: comp.sys.sgi Subject: color interpolation and depth cueing? Message-ID: <1991Apr4.165218.11546@dsd.es.com> Date: 4 Apr 91 16:52:18 GMT Sender: usenet@dsd.es.com Reply-To: pmartz@undies.dsd.es.com (Paul Martz) Organization: Evans & Sutherland Computer Corp., Salt Lake City, UT Lines: 23 Nntp-Posting-Host: 130.187.85.56 I have a program which draws several lines, color interpolating between vertices, which works just fine. But then I decided to add depth cueing to the program, with these function calls: depthcue (TRUE); glcompat (GLC_ZRANGEMAP, 1); lsetdepth (0, 0x7fffff); lRGBrange (0, 0, 0, 255, 255, 255, 0, 0x7fffff); and now it depth cues, but suddenly, the color interpolation has stopped working altogether. As a matter of fact, ALL color in the lines is gone, and they are instead rendered as shades of grey. This is not what I'd expect to happen in depth cue mode. A red line which is depth cued should just be a darker shade of red, right? Yet now that I have depth cueing enabled, the fact that I've set different colors on each vertex seems to be completely ignored. What have I done wrong here? Surely it's possible to do this. Any help is appreciated. (ps -- using a Personal Iris GT, system 3.3.1) -- -paul pmartz@dsd.es.com Evans & Sutherland