Height Field intersection test problem (see p.g) (Message 1 to 3 of 3)
From: Johannes Dahlstrom
Subject: Height Field intersection test problem (see p.g)
Date: 15 Oct 2002 14:04:43
Message: <3dac58b9@news.povray.org>
The attached image shows the problem I described in povray.general. As you
see, the Bresenham's algorithm (on the left) goes through some pixels that
the ray doesn't (and vice versa). The right half of the image shows how it
should go.
From: Timothy R Cook
Subject: Re: Height Field intersection test problem (see p.g)
Date: 15 Oct 2002 14:11:48
Message: <3dac5a64$1@news.povray.org>
Johannes Dahlstrom wrote:
> The attached image shows the problem I described in povray.general. As you > see, the Bresenham's algorithm (on the left) goes through some pixels that > the ray doesn't (and vice versa). The right half of the image shows how it > should go.
That isn't a ray, it's a line segment.
--
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------
From: Johannes Dahlstrom
Subject: Re: Height Field intersection test problem (see p.g)
Date: 15 Oct 2002 14:21:45
Message: <3dac5cb9@news.povray.org>
Timothy R. Cook wrote:
> That isn't a ray, it's a line segment.
Well, yes. But then, the height fields my raytracer renders don't exactly
look like gray grids with green squares ;).