POV-Ray : Newsgroups : povray.off-topic : Memories : Re: Memories Server Time
29 Jul 2024 22:31:30 EDT (-0400)
  Re: Memories  
From: Warp
Date: 20 Aug 2011 07:11:15
Message: <4e4f9653@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> The assignment was basically to implement Bresenham's Algorithm, 
> optionally *with* antialiasing for extra marks.

  IIRC the algorithm in question can be used to roughly *approximate*
antialiasing of the line, but it's not mathematically accurate.

  Drawing an accurate antialiased line (of certain width) is not a trivial
problem. Basically for each pixel you need to calculate how much of it is
covered by the line. Doing this accurately with integer math only can be
complicated.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.