POV-Ray : Newsgroups : povray.off-topic : Memories : Re: Memories Server Time
30 Jul 2024 00:24:16 EDT (-0400)
  Re: Memories  
From: Darren New
Date: 20 Aug 2011 10:43:27
Message: <4e4fc80f$1@news.povray.org>
On 8/20/2011 4:11, Warp wrote:
>    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.

I am not sure you can do it accurately with integer math at all, given that 
there's a "portion of a pixel" involved in there somewhere. At best you'd be 
working in scaled fixed-point.

That said, the AA equivalent of bressenham is Wu:

https://secure.wikimedia.org/wikipedia/en/wiki/Xiaolin_Wu%27s_line_algorithm

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

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