Line Of Sight or Shadow Casting in 2D
In this (long, sorry) video I cover a variety of things to implement a classing line-of-sight mapping, or shadow casting depending on your perspective. It's also the first olc::PixelGameEngine project I've done a video for, so I spend some time showing you how to set up Visual Studio to use this engine. I'm quite pleased with the end result of these algorithms and I expect to use them quite a bit in more ambitious tile-based projects in the future.
These resources are excellent regarding the things seen in the video:
https://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersect
https://www.redblobgames.com/articles/visibility/
https://ncase.me/sight-and-light/
Source: https://github.com/OneLoneCoder/olcPixelGameEngine/blob/master/Videos/OneLoneCoder_PGE_ShadowCasting2D.cpp
https://discord.gg/WhwHUMV
Blog: http://www.onelonecoder.com
Twitter: @javidx9
Twitch: javidx9
Видео Line Of Sight or Shadow Casting in 2D канала javidx9
These resources are excellent regarding the things seen in the video:
https://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersect
https://www.redblobgames.com/articles/visibility/
https://ncase.me/sight-and-light/
Source: https://github.com/OneLoneCoder/olcPixelGameEngine/blob/master/Videos/OneLoneCoder_PGE_ShadowCasting2D.cpp
https://discord.gg/WhwHUMV
Blog: http://www.onelonecoder.com
Twitter: @javidx9
Twitch: javidx9
Видео Line Of Sight or Shadow Casting in 2D канала javidx9
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Essential Mathematics For Aspiring Game DevelopersBIG PROJECT! Top Down City Based Car Crime Game #1Super Fast Ray Casting in Tiled Worlds using DDACommunity Showcase 2020Cross Platform Graphical User Interfaces in C++Controlling Elegoo Robot Smart Car with ASIO and C++Coding Challenge #145: 2D RaycastingCoding Challenge #146: Rendering RaycastingWhat Are Pointers? (C++)Path Planning - A* (A-Star)NES Emulator Part #1: Bitwise Basics & OverviewCode-It-Yourself! Sound Synthesizer #1 - Basic NoisesCode-It-Yourself! 3D Graphics Engine Part #1 - Triangles & ProjectionBIG PROJECT 2-in-1! Top Down City Based Car Crime Game #2Convex Polygon Collisions #1Emulating a CPU in C++ (6502)Back To Basics: C++ ContainersA Little Update VideoPath Planning #2 Wave Propagation, Potential Fields & Modern(ish) C++