Digital field of view

From RogueBasin
Revision as of 11:59, 20 October 2011 by Mikon (talk | contribs) (update advantages)
Jump to navigation Jump to search

What is Digital Field of View?

Digital Field of View is a method of determining Field of Vision based on Digital lines. Geometrically, all objects are considered to be diamond shaped, and the source diamond can see the destination diamond if there is an unobstructed line connecting them.

Advantages

  • Symmetric field of view.
  • Completely artifact free.
  • O(N2) algorithm available.
  • More permissive than Permissive Field of View.
  • Simpler and potentially faster than PFOV.
  • It is easy to check by hand whether there is a digital line connecting two points.
  • Targeting line is easily drawn in case of ranged combat

Disadvantages

  • Few implementations exist yet.
  • Could be too permissive, especially with 1-tile wide corridors and room entrances.

How do I implement it?

What games use it?

What libraries implement it?

None.