Talk:Field of Vision

From RogueBasin
Jump to navigation Jump to search

Anyone cares to clarify what is the difference between Field of Vision and Line of Sight??? --Slash 18:08, 8 Apr 2006 (CEST)

As I understand it, field of vision is an algorithm for determining everything is visible. Line of sight is about determining whether a particular square is visible. The former can be created with the latter, but it may be inefficient to do it that way. Duerig 20:44, 23 Apr 2007 (CEST)

Gbox, I have moved your code. It needs its own article rather than being hidden in a talk page somewhere. It is now its own article (Simple and accurate LOS function for BlitzMax), linked through the Ray casting page because it belongs to that general class of algorithms. You might want to expand your article a bit to provide an explanation of your design decisions and its performance and such rather than just have the code. You could also note that the number of rays is a parameter allowing accuracy to be traded off against speed. I like the fact that you use raw angles to determine the rays rather than iterating through the points on the edge of the field of view or something similar. That reduces the number of artifacts, especially near the cardinal directions. Duerig 07:36, 12 June 2008 (CEST)