EntroPi-Games / GPU-Line-of-Sight

GPU Line of Sight / Field of View visualization for Unity
Apache License 2.0
129 stars 24 forks source link

GPU-Line-of-Sight

GPU Line of Sight / Field of View visualization for Unity

Description

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.

GPU_LOS_Screen01

GPU_LOS_Screen02

GPU_LOS_Screen03

GPU_LOS_Screen04

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.

Main Features

Supported

NOT Supported