realbasic-games
[Top] [All Lists]

screen to world?

To: RB Games <realbasic-games at lists dot realsoftware dot com>
Subject: screen to world?
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Sun, 31 Oct 2004 15:23:39 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
I'm trying to write my own 3D model viewing app, and I want to be able to drag the model around. My question is: How can I take the mouse position (x, y), and get the world coordinates (x and y only) at the object's current z position for that screen (x, y)? Basically, I want the object to track the mouse, no matter what it's Z position is (consider the camera to be at the origin).

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> Make PDFs from your RB app <http://www.fireyesoftware.com/code/pdfclasses/>
AIM and Yahoo: fireye7517
REALbasic 5.5.3 Mac OS X 10.3.5

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • screen to world?, Asher Dunn <=