Path: utzoo!attcan!uunet!cs.utexas.edu!asuvax!ncar!boulder!jdm From: jdm@boulder.Colorado.EDU (James D. Meiss) Newsgroups: comp.sys.sgi Subject: Screen to World coordinate mapping Summary: How do you read the mouse position? Keywords: GetValuator, MOUSEX, map2w Message-ID: <18930@boulder.Colorado.EDU> Date: 28 Mar 90 16:23:18 GMT Sender: news@boulder.Colorado.EDU Reply-To: jdm@boulder.Colorado.EDU (James D. Meiss) Organization: University of Colorado, Boulder Lines: 14 I am just learning how to program using gl on our new personal Iris, and enjoying it for the most part! I am trying to read the position of the mouse to use as input to my program. The problem is that GetValuator(MOUSEX) returns the position in screen coordinates. How do I convert this position to World coordinates? map2w seems to do this but only if I create an object. It seems like there should be some simpler way. I use ortho2(-1.,1.,-1.,1.) to set up my world coordinates. Thanks Jim Meiss jdm@boulder.colorado.edu