Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news From: mmachlis@athena.mit.edu (Matthew A Machlis) Newsgroups: comp.sys.sgi Subject: question: lookat() command and twist Message-ID: <1991Jan16.181821.20724@athena.mit.edu> Date: 16 Jan 91 18:18:21 GMT Sender: news@athena.mit.edu (News system) Distribution: usa Organization: Massachusetts Institute of Technology Lines: 19 I am developing a 3-D realtime simulation on a Personal IRIS which has head-tracking capability to display what the user is actually looking at. I am using the lookat() command to actually do the transformation involved in head-tracking. I have run into an unfortunate aspect of the lookat command: everything is fine when I am looking straight ahead (along the positive z-axis) with zero twist. But as the "look vector" is rotated downward (towards the negative y axis), still with zero twist, the direction which is "up" in terms of what is displayed on the screen rotates 180 degrees as the head rotates through straight down. How can I compensate for this twisting of the up direction with lookat? PLEASE... if you have any information or think you might be able to help but don't understand exactly what I am talking about, email me. Thanks in advance. -- ---------------------------------------------------------------------------- Matt Machlis MIT Space Systems Laboratory (617)253-2272