home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / graphics / 12923 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.graphics
  2. Path: sparky!uunet!pipex!slxsys!dircon!uad1077
  3. From: uad1077@dircon.co.uk (Ian Kemmish)
  4. Subject: Re: Z Buffer Precision and Homogeneous Coordinates
  5. Date: Tue, 15 Dec 1992 19:10:33 GMT
  6. Message-ID: <1992Dec15.191033.17861@dircon.co.uk>
  7. References: <78173@hydra.gatech.EDU>
  8. Lines: 34
  9.  
  10. gg10@prism.gatech.EDU (GALLOWAY) writes:
  11.  
  12.  
  13. >transform into planes."  The depth value gets normalized from the range
  14. >[near, far] to [0, 1].
  15. >
  16. >If the viewing transformation matrix consists of only linear operations,
  17. >translation, rotation, and scaling, then this appears to degrade the
  18. >precision of the depth value.  In my current Z buffer-based renderer my
  19. >Z buffer is an array of 32 bit floats.  I preform clipping in the 3D view
  20. >space (or eye space) before perspective projection.
  21. >
  22. >
  23. >Greg Galloway
  24. >gg10@prism.gatech.edu
  25. >
  26. >
  27. You're essentially trading accuracy for range.  If you can only
  28. afford integers for depth values (either becasue you only have 16
  29. bits or because you can't wait for all those floating compare
  30. operations), then you definitely don't want to risk them
  31. overflowing and/or wrapping round.  On the other hand, if you are
  32. already using float with no problemsn, then you have little
  33. incentive to change (basically, all you need is a number system that
  34. can represent infinity:->) - in fact, unless you are happy at
  35. visualising and doing mental arithmetic with homogeneous co-ordinates
  36. in your head, you will find debugging takes a lot longer if you *do*
  37. change.....
  38.  
  39. -- 
  40. Ian D. Kemmish                    Tel. +44 767 601 361
  41. 18 Durham Close                   uad1077@dircon.co.uk
  42. Biggleswade                       uknet!dircon!uad1077
  43. Beds SG18 8HZ United Kingdom
  44.