home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!astoker
- From: astoker@nyx.cs.du.edu (Andrew Stoker)
- Subject: Perspective transformation question
- Message-ID: <1993Jan11.145732.6480@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
- Date: Mon, 11 Jan 93 14:57:32 GMT
- Lines: 20
-
- I suspect this will strike some people as a stupid question...
-
- In the equations typically given for the transformation, a parameter D
- representing distance to the viewing screen/plane is used:
-
- xs = d * x / z
-
- What "units" is D in? In one program I'm working on, I'm playing with
- landscapes in which 1 unit equals 1 metre, so should I therefore use a D value
- of 0.4 - 0.5 (distance from my eye to monitor screen) or what?
-
- Another point, in Newman and Sproull (about page 342), they have a similar
- equation which gives a "dimensionless fraction" which they then multiply by
- the size of the screen (in pixels) to get screen coordinates, I tried this,
- and got an incredibly zoomed in view of my scene, I suspect a substantial part
- of the displayed scene was actually off screen. odd.
- --
- Andrew J. Stoker | "My lord, I cannot ride!"
- Leicester Uni. | "Capital, we shall give you a horse that can't be ridden."
- ajs6@leicester.ac.uk | ``Wyrd Sisters'', Terry Pratchett
-