home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!comlab.ox.ac.uk!newshost!rpb
- From: rpb@psy.ox.ac.uk (Ray Bellis)
- Newsgroups: comp.graphics
- Subject: Working anti-aliased line drawing routine needed
- Message-ID: <RPB.92Nov18153354@brain.psy.ox.ac.uk>
- Date: 18 Nov 92 15:33:54 GMT
- Organization: Dept. of Experimental Psychology, Oxford, England.
- Lines: 26
-
-
- I've been trying to use the algorithms in Burger & Gillies
- (Interactive Computer Graphics) for 8 octant anti-aliased
- line drawing but I can't get them to work. Does anyone
- please have a *working* function (preferably in C) that
- I could have.
-
- The main problem I have is that the algorithm I have expects
- to plot two pixels for each iteration of the loop, and I can't
- figure out for the 8 octant version where to place the second
- pixel relative to the primary pixel.
-
- Thanks,
-
- p.s. I know about the code in graphics gems, and that's
- definite overkill.
-
-
- --
- ------------------------------------------------------------------------------
- R. P. Bellis E-Mail: <rpb@psy.ox.ac.uk>
- Dept. of Experimental Psychology Whois: (RB83)
- University of Oxford Tel: +44 865 271419
- South Parks Road Fax: +44 865 310447
- Oxford OX1 3UD
- ------------------------------------------------------------------------------
-