graphics - How would you implement a perfect line-of-sight algorithm? -


Disclaimer: I'm not actually trying to make one it can be done.

When I say "the most accurate" I include the basics

  • the wall
  • the distance
  • the light
  • > Fire
  • Fire

If I want to program this, then which resources should I check and what should I look for? Apart from this, are there any relevant books on the theory behind the line of sight, including all these variables?

Typically, the amount of space in any kind of space division data structure as the world's Represents, then that space represents your "line of sight", so that hit can be set to find the set of that object; Then Ray went in order from Genesis to determine the overall result. Due to reflective objects, further rays are removed, opaque objects stop moving, and semicolon objects partially contribute to the result.

You may want to read on the trail; There is a great body of literature on the subject and basically there are good ways to solve problems present in your list.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -