POV-Ray : Newsgroups : povray.binaries.images : Height Field intersection test problem (see p.g) Server Time
14 Aug 2024 11:20:30 EDT (-0400)
  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.


Post a reply to this message


Attachments:
Download 'line_drawing.jpg' (34 KB)

Preview of image 'line_drawing.jpg'
line_drawing.jpg


 

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------


Post a reply to this message

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 ;).


Post a reply to this message

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