-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ayush Basak edited this page Jun 22, 2021
·
2 revisions
_ _____ ______
| | / __ \| _ \
_ __ __ _ _ _ ___ __ _ ___| |_ ___ _ __`' / /'| | | |
| '__/ _` | | | |/ __/ _` / __| __/ _ \ '__| / / | | | |
| | | (_| | |_| | (_| (_| \__ \ || __/ | ./ /___| |/ /
|_| \__,_|\__, |\___\__,_|___/\__\___|_| \_____/|___/
__/ |
|___/
raycaster2D is a raycating simulation I wrote in C++ using the SFML library.
Raycasting is a method to visualize 3D models from a 2D perspective by casting light rays from the viewer's camera on obstacles and objects.
Using the concept of visual angles we can determine, translate and render the exact position of the object in 3D planar space.
Initially the project was supposed to be a simple 2D raycast where light rays hit and stop after hitting an obstacle in two dimensions.