🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.pex
Article #74

Re: 3d WC from Cursor Position

#74
From: Gary Cannon
Date: Wed, 02 Sep 1992 15:27
37 lines
1938 bytes
In article <1992Sep1.212308.19369@bmw.mayo.edu>, Kall@Mayo.EDU writes:
> I guess what I was wondering (or dreaming of) is:
> 
> Yes the cursor 'sits over a pixel in the 2D device coordinate space
> of the screen'.  The escape X_DRAWABLE_TO_WC_POINTS
> returns some 3d location based on the X,Y drawable
> location and some Z  value you pass in.  
> 
> Isn't there anyway for Phigs to  figure out  from the
> scene what pixel the 2d cursor is sitting on (i.e. traverse the
> whole scene from Z-min to Z_max  for that 2d X,Y coordinate
> and find out what the 3d WC coordinate is of the pixel that you
> are seeing on the screen.  After traversal  doesn't only one 3d WC coordinate
> deposit that pixel even if structures overlap? 

What you are asking for is PHIGS picking. You need to be using a IN/OUT
workstation type and look at the description of the input functions
for INITIALIZE PICK 3, SET PICK MODE (I recommend event mode), AWAIT EVENT,
and GET PICK.

> 
> 
> ---
> 
> 
> 
> \------------------------------------------------------------\
>  \   Bruce Kall                \  Internet:   Kall@Mayo.edu   \
>   \   Mayo Clinic (Foundation)  \  Phone: (507)-255-4768       \
>    \   Rochester, MN 55905       \                              \
>     \------------------------------------------------------------\
> 

--
 ---		Gary G. Cannon
 ---		Evans & Sutherland
 ---		cannon@dsd.es.com
Technical Details
Message-ID: <1992Sep2.152701.20934@dsd.es.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!ziggy!cannon
References: <1992Sep1.194434.2724@dsd.es.com> <1992Sep1.212308.19369@bmw.mayo.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.pex
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!ziggy!cannon
From: cannon@ziggy.es.com (Gary Cannon)
Subject: Re: 3d WC from Cursor Position
Message-ID: <1992Sep2.152701.20934@dsd.es.com>
Sender: usenet@dsd.es.com
Nntp-Posting-Host: 130.187.85.59
Reply-To: cannon@ziggy.es.com (Gary Cannon)
Organization: Evans & Sutherland Computer Corp., Salt Lake City, UT
References: <1992Sep1.194434.2724@dsd.es.com> <1992Sep1.212308.19369@bmw.mayo.edu>
Date: Wed, 2 Sep 92 15:27:01 GMT
Lines: 37