home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!aun.uninett.no!nuug!nntp.uio.no!eivind
- From: eivind@kih.no (eivind hagen)
- Subject: Re: Anti-A Code
- Message-ID: <1993Jan28.104417.20478@ulrik.uio.no>
- Sender: news@ulrik.uio.no (Mr News)
- Nntp-Posting-Host: samson.kih.no
- Organization: Kongsberg Ingeniorhogskole
- X-Newsreader: TIN [version 1.1 PL8]
- References: <30890@castle.ed.ac.uk>
- Date: Thu, 28 Jan 1993 10:44:17 GMT
- Lines: 19
-
- M Smyth (asm@festival.ed.ac.uk) wrote:
- > Could anyone help in a problem I have? I have writen code in C to draw
- > lines one the screen, unfortunately the lines are jagged. The code I'm
- > using uses putpixel(x, y, color), how can I change the coding so that
- > the various pixels around the specified pixel are set to the same colour
- > but of a different intensity and thus giving me smoother lines?
-
- I just implemented the `Gupta-Sproul` (?) antialiased line algorithm, and on
- a 320*256 16 greyshade display the lines are SMOOOOTH..
- See the book 'Computer Graphics: Principles and practice` by Foley, van Dam,
- Feiner and Hughes... Exxellent book with lots`a nice pictures.
-
- PS! Dont bother trying those sub-pixel methods, they are `unweighted` and
- the result is not woth the effort, got for GUPTA-SPROUL, or somthn better :-)
-
- I--------------------------------------I-------------------------------------I
- I Eivind Hagen (eivind@samson.kih.no) I "I've got the POWER" I
- I Zynx of Arc Empire I (ARM 3 + cx486slc / 8 MB RAM) I
- I--------------------------------------I-------------------------------------I
-