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