Difference between revisions of "Talk:Precise Shadowcasting in JavaScript"

From RogueBasin
Jump to navigation Jump to search
(Created page with "== Error? == In those lines of the algorythm explanation: 3. If no part of [a1..a2] is visible, mark the cell as not visible and advance to next cell 4. If some part of [a1.....")
 
 
Line 1: Line 1:
== Error? ==
== Error? ==


In those lines of the algorythm explanation:
In those lines of the algorythm explanation:<br/>
3. If no part of [a1..a2] is visible, mark the cell as not visible and advance to next cell
3. If no part of [a1..a2] is visible, mark the cell as not visible and advance to next cell<br/>
4. If some part of [a1..a2] is visible, merge it into the shadow queue; mark the cell as visible
4. If some part of [a1..a2] is visible, merge it into the shadow queue; mark the cell as visible<br/>


Isn't it that the angle pair should be merged into the shadow queue ONLY if it's a blocking cell? Because according this explanation we merge any of angle pair into the shadows. Which is wrong I assume.
Isn't it that the angle pair should be merged into the shadow queue ONLY if it's a blocking cell? Because according this explanation we merge any of angle pair into the shadows. Which is wrong I assume.<br/>
--[[User:Fireton|Fireton]] ([[User talk:Fireton|talk]]) 15:24, 16 August 2016 (CEST)
--[[User:Fireton|Fireton]] ([[User talk:Fireton|talk]]) 15:24, 16 August 2016 (CEST)

Latest revision as of 13:26, 16 August 2016

Error?

In those lines of the algorythm explanation:
3. If no part of [a1..a2] is visible, mark the cell as not visible and advance to next cell
4. If some part of [a1..a2] is visible, merge it into the shadow queue; mark the cell as visible

Isn't it that the angle pair should be merged into the shadow queue ONLY if it's a blocking cell? Because according this explanation we merge any of angle pair into the shadows. Which is wrong I assume.
--Fireton (talk) 15:24, 16 August 2016 (CEST)