2lambda123 / MatthewZelriche-UE4-Light-Detector

The Unlicense
1 stars 0 forks source link

UE4-Light-Detector

A C++ Implementation of a stealth game Light Meter similar to those seen in games such as the Thief or Splinter Cell games.

Overview

This method does not use the more commonly seen method of raytcasting from the player to light sources. Instead, it takes a RenderTexture of an Octahedron mesh and iterates over every pixel in the texture to discover what the brightest pixel is. This is done twice, once for the top of the octahedron, and a second time for the bottom of the octahedrone, to ensure the Detector is receiving light from every direction. This method is specifically very similar to the method used by the excellent project, "The Dark Mod". Information on how the detection method was done in that project can be viewed here: http://forums.thedarkmod.com/topic/18882-how-does-the-light-awareness-system-las-work/

There are several advantages and disadvantages with the way this has been implemented in this UE4 project:

ADVANTAGES:

DISADVANTAGES:

Considerations

LICENSE

Everything created specifically by me (ie excluding all code and assets that come with the Third Person Template for UE4) exists under the Unlicense. Check the LICENSE file for more details.

As much as I'd like to, please do not expect to recieve help from me about how to apply this project to your own needs. I will be providing no help/support for how to use this project beyond this Readme file.