2D Visibility
2D Visibility
Applications
- Game Engines
- AI Engines
- Automated warcrafts
- Security Devices
- Cameras / Videography
- Placement of sensors
- Solar Panels
- Many more..
2D Visibility
Area Calculation
Wait, how do find the visible area from
a specific point in the first place?
2D Visibility-Area Calculation
Steps
Thanks to redblobgames
|
- Sort All Points by angle
- Start 'sweeping' from an angle
- For every adjacent point found form a triangle with the source point
- Include it in area
- Add all the areas
|
2D Visibility
Area Calculation
2D Visibility
Optimization
We found the area, but how do we maximize it?
2D Visibility Optimization
Steepest Ascent
- Start at a point
- Find area visible from neigbouring points
- Move towards the maximum if it is more than current area
2D Visibility Optimization
Steepest Ascent
2D Visibility Optimization
Simulated Annealing
- Start at a point
- Find area visible from neigbouring points
- Move towards the maximum if it is more than current area
- If not still move, but with decreasing probabilities each time
2D Visibility - Optimization
Simulated Annealing