This asset allows you to easily add line of sight / field of view visualization to your Unity project. All rendering is done on the GPU, making this system incredibly fast and allowing an unlimited amount of line of sights sources. It is perfectly suited for top-down stealth or action games, but also works from other viewpoints and in other type of games. The effect can be tweaked to achieve any desired visual style.
A line of sight system visualizes which parts of the game world can be seen from the standpoint of for example a 3rd person in-game character. The area outside of the line of sight is obscured and remains hidden from the player.
This system was developed as an alternative to CPU based line of sight visualizations. CPU based systems use a combination of ray casting and dynamic meshes to compute the line of sight and are often CPU intensive, resulting in a serious impact on performance.
This new GPU based line of sight system uses a technique very similar to shadow mapping and is significantly faster than any CPU based system, freeing up valuable CPU time. It has been designed from the ground up with performance, ease-of-use and customizability in mind. The user can control the look of the effect by selecting which image effects are applied to the area outside of the line of sight.
Customize the effect so that it matches the visual style of your project seamlessly
The effect is previewed inside the scene editor, so tweaking is easy and straightforward
Designed with performance in mind, zero allocation during run-time
Includes scripts to check if objects are inside the line of sight
Includes full documentation and an extensive example scene
Full source code is included
This system is compatible with both the forward and deferred rendering pipelines and supports DX11. It works with both perspective and orthographic cameras. Because this system makes heavy use of render textures, it is currently not supported on mobile platforms.
- Forward and deferred rendering pipelines
- OpenGL, DX9, DX11
- Sprite or 2D toolkit based projects
- Mobile and WebGL platforms