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