home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13669 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1005 b 

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!concert!borg!pooh!cullip
  2. From: cullip@pooh.cs.unc.edu (Timothy Cullip)
  3. Newsgroups: comp.sys.sgi
  4. Subject: getting z-buffer value for a given (x,y) window coordinate.
  5. Message-ID: <15359@borg.cs.unc.edu>
  6. Date: 15 Sep 92 20:37:22 GMT
  7. Sender: news@cs.unc.edu
  8. Distribution: usa
  9. Lines: 19
  10.  
  11. I'm trying to do something that ought to be real simple: given a GL
  12. window that I've rendered something into (using RGBmode and zbuffer
  13. turned on) how do I get the z (or RGBA) value for a given screen (x,y)?
  14.  
  15. I've tried lrectread(x,y,x,y,my_array) where x,y are the Screencoord
  16. variables of the (x,y) point I'm interested in and my_array is an
  17. array of unsigned longs (a few thousand in length even though I'm
  18. only wanting one value back). 
  19.  
  20. The program dies with:
  21.  
  22. WARNING: Process [sphere] pid 8994 sent SIGSEGV because it exceeded its maximumprocess/stack size
  23.  
  24. I tried readsource(SRC_ZBUFFER) and pixmode() with no help.
  25.  
  26. -- 
  27.  
  28.    Tim Cullip
  29.    cullip@cs.unc.edu
  30.