Re: Field of view algorithm implementation problems
- From: Radomir 'The Sheep' Dopieralski <news@xxxxxxxxxxxx>
- Date: Tue, 15 Jan 2008 00:27:53 +0000 (UTC)
At Mon, 14 Jan 2008 14:25:36 -0800 (PST),
jice wrote:
On Jan 14, 10:36 pm, Elsairon <elsai...@xxxxxxxxx> wrote:
On 2008-01-14 22:11:55, mike3 <mike4...@xxxxxxxxx> wrote:
Bresenham won't help you. From your code, for a single-cell pillar,
the start slope correspond to the ray going through the pillar, the
end slope to the ray going through the cell at the right of the pillar
(for this octant). This is why you have artifacts because those two
rays may go through the same cells. For a single pillar, you should
have start slope = end slope, thus resulting in a shadow reduced to a
line.
I'm not entirely sure, but I recall that the original description of
the shadowcasting algorithm used the square corners, not centers...
--
Radomir `The Sheep' Dopieralski <http://sheep.art.pl>
Meden agan.
.
- Follow-Ups:
- Re: Field of view algorithm implementation problems
- From: Björn Ritzl
- Re: Field of view algorithm implementation problems
- Prev by Date: Re: libfov question
- Next by Date: Re: libfov question
- Previous by thread: Re: Field of view algorithm implementation problems
- Next by thread: Re: Field of view algorithm implementation problems
- Index(es):
Relevant Pages
|