An open API service indexing awesome lists of open source software.

https://github.com/dubniczky/3d-raycasting

Web demo of a custom traversable 2D map with 3D simulated visuals using raycasting
https://github.com/dubniczky/3d-raycasting

3d javascript math p3 raytracing web

Last synced: about 1 year ago
JSON representation

Web demo of a custom traversable 2D map with 3D simulated visuals using raycasting

Awesome Lists containing this project

README

          

# 3D Raycasting

A web demo of a traversable 2D map with 3D visuals. 3D effect is achieved with a technique called "ray casting", where for every rendered vertical pixel of the screen, a ray is cast from the camera object and the first collision with an object in 2D space is recorded. The wall is drawn based on the programmed characteristics and distance of the object hit.

## Support ❤️

If you find the project useful, please consider supporting, or contributing.

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/dubniczky)

## Live Demo

View the live web demo on GitHub Pages: [site](https://dubniczky.github.io/3D-Raycasting/)

## Math

Source reference: [clemson.edu pdf](https://people.cs.clemson.edu/~dhouse/courses/405/notes/raycast.pdf)