home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / graphics / 13639 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.3 KB  |  31 lines

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