Ray Casting 2D
Coding Challenge #145
In this video, I implement a basic ray casting engine with line segment “surfaces” and vector “rays.” The result simulates a light source casting shadows in a 2D canvas.
Community Contributions
- Colorful raycasting by Jip Fr
- Raycasting 2D visualisation by Vedang Javdekar (Source Code)
- Ray Casting - Object's sensors by Dan Juliette (Source Code)
- Ray Casting - Lighting rooms with paper walls by John 'JohnyDL' Lewis (Source Code)
- Reflections [Processing] by WiserOrb (Source Code)
- Reduced Fisheye Ray Casting by Nicholas Simon-Brecke (Source Code)
- Example with Addable/Removable Boundaries by Simon Tiger Houben (Source Code)
- Ray Casting 2D in Processing by David Snyder (Source Code)
- Raycasting Maze explorer (made in vb.net) by Jos Gielen (Source Code)
- Colorful SVG Ray Casters by Neoman Nouiouat (Source Code)
- Wolfenstein 3D style raycasting with randomly generated mazes (p5.js) by Ben (quillaja) (Source Code)
- drawing walls by Hauman Kevin
- Ray Casting Maze by Sébastien Raynaud (Source Code)
- Example with Optimization by Simon Tiger Houben (Source Code)
- Minor optimisation ray.js to better suit math being done by Damien Porter (Source Code)
- FLASHY the flashlight game by Nick 'Milchreis' Müller (Source Code)
- Super Optimized 2D Raycasting by M M (Source Code)
- Ray, The Self Driving Robot by Matheus Souza (Source Code)
- 2D cave Exploration by David Snyder (Source Code)
- Ray casting with pygame by Nate Plamondon (Source Code)
- Ray casting with Processing by Kent Pirma (Source Code)
- Maze with Ray casting in Processing by Adrian Carrillo (Source Code)
- 2D Ray-casting with p5py by Param Patidar (Source Code)
- kind of (Sight & Light) Ray Casting by Paulo Fraga (Source Code)
- Ray Casting W/ Adjustable Ray Fidelity and Mouse Easing by Jacob Bender (Source Code)
You can also add your own version! (See how)
Links discussed in this coding challenge
Videos discussed in this coding challenge
- Coding Adventure: Ray Marching by Sebastian Lague
- Matrix Math by Coding Train
- Coding Challenge: Rendering Ray Casting by Coding Train