home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / 14306 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  33 lines

  1. Newsgroups: comp.graphics
  2. 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
  3. From: eivind@kih.no (eivind hagen)
  4. Subject: Re: Anti-A Code
  5. Message-ID: <1993Jan28.104417.20478@ulrik.uio.no>
  6. Sender: news@ulrik.uio.no (Mr News)
  7. Nntp-Posting-Host: samson.kih.no
  8. Organization: Kongsberg Ingeniorhogskole
  9. X-Newsreader: TIN [version 1.1 PL8]
  10. References: <30890@castle.ed.ac.uk>
  11. Date: Thu, 28 Jan 1993 10:44:17 GMT
  12. Lines: 19
  13.  
  14. M Smyth (asm@festival.ed.ac.uk) wrote:
  15. > Could anyone help in a problem I have? I have writen code in C to draw
  16. > lines one the screen, unfortunately the lines are jagged. The code I'm
  17. > using uses putpixel(x, y, color), how can I change the coding so that
  18. > the various pixels around the specified pixel are set to the same colour
  19. > but of a different intensity and thus giving me smoother lines?
  20.  
  21. I just implemented the `Gupta-Sproul` (?) antialiased line algorithm, and on
  22. a 320*256 16 greyshade display the lines are SMOOOOTH..
  23. See the book 'Computer Graphics: Principles and practice` by Foley, van Dam,
  24. Feiner and Hughes... Exxellent book with lots`a nice pictures. 
  25.  
  26. PS! Dont bother trying those sub-pixel methods, they are `unweighted` and
  27. the result is not woth the effort, got for GUPTA-SPROUL, or somthn better :-)
  28.  
  29. I--------------------------------------I-------------------------------------I
  30. I Eivind Hagen (eivind@samson.kih.no)  I  "I've got the POWER"               I
  31. I Zynx of Arc Empire                   I  (ARM 3 + cx486slc / 8 MB RAM)      I
  32. I--------------------------------------I-------------------------------------I
  33.