home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19811 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!yale!gumby!kzoo!k044477
  3. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  4. Subject: Re: 3D Graphics
  5. Message-ID: <1992Dec14.215648.23018@hobbes.kzoo.edu>
  6. Organization: Kalamazoo College
  7. References: <830021@hplvec.LVLD.HP.COM> <1992Dec14.055810.18557@hobbes.kzoo.edu> <1992Dec14.160846.6358@kth.se>
  8. Date: Mon, 14 Dec 1992 21:56:48 GMT
  9. Lines: 25
  10.  
  11. d88-jwa@hemul.nada.kth.se (Jon Wtte) writes:
  12. >
  13. >No, actually, Bresenham gives you an algorithm to draw lines
  14. >properly INCLUDING the "final" pixels.
  15.  
  16. Yeah, well, it's not like it's hard;  you just start the tally off at
  17. half the remainder, instead of zero.  My homebrew scaling algorithm lets
  18. you specify what fraction of the remainder you'd like to start with;
  19. I _know_ it's no big deal!
  20.  
  21. (CopyBits, by the way, divides the error up evenly.  CopyBits a
  22. 100-pixel-wide image into a 101-pixel-wide window, and the middle
  23. column, not the first or last, will get doubled.  Scaling uses the
  24. same class of algorithm as line-drawing.  So why doesn't LineTo do
  25. the Right Thing!?)
  26.  
  27. (Jon, are you sure Bresenham's got a patent?  Two recent DDJs explained
  28. and gave code for run-slice Bresenham, which seems better than
  29. "standard" Bresenham in every respect, and which the Toolbox, therefore,
  30. probably uses.  No mention of patents.)
  31. -- 
  32.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  33.  "Apple developers will still have access to System 7.1 through the
  34.   monthly Developer CD series, but they may use it only for testing
  35.   and development purposes."              - AppleDirect, Nov/Dec 92
  36.