Raycast Visibility 2.2
This is just a updated version of the: fake realtime raycast shadows (its not really shadows though..) Features in v2.0 Mesh is pre-build In update loop we just modify the existing vertices (no need...
View Article2D Raycasting Visibility – Voxel Travelsal
Converted this AS3 2D raycast (by Lee Grey) to Unity javascript. (Image: raycast is coming from the middle, hits a wall..) Next: – Use grid array instead of reading pixels from image.. (done) – Try if...
View ArticleEnemy Visibility Cone (idea)
Testing one visibility cone idea for enemies. (later will check what other solutions there are..) Code: If enemy stays inside blue trigger area (attached to player) then If enemy view angle is towards...
View ArticleRoguelike Shadowcasting
Converted this shadow/visibility to unity: Shadowcasting in c# by Eric Lippert. Looks quite nice. Todo: – How to do ascii map? ( Gui.TextArea is not good..Or just use SetPixels.. Or use invidual...
View Article2D Grid Fake Shadow
Using the same code from previous 2D Raycasting Visibility Voxel Travelsal, but added dynamic grid array update (using screenshots..), so now the walls (obstacles) are updated realtime on the 2D grid....
View ArticleFOV Using Recursive Shadowcasting
Converted this script to unity: FOV Using Recursive Shadowcasting, for a quick test.. Instructions: – Attach the script to a plane – use Unlit/Texture shader as material (then no need lights..) – Move...
View Article2D Visibility / Shadow
Started converting this 2D visibility/light script ( http://ncase.me/sight-and-light/ ) to unity, finally some progress! btw. lines are drawn using GLDebug from :...
View Article2D Fog Of War
Got some nice looking Fog of War system working with sprites (2D)! It might eventually work on mobiles too (although at lower resolution..) *Will be posting it to asset store hopefully within this...
View Article