Skip to content

sigurdptr/Python-Raycasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Raycasting

    

landing-page

    

A simulation of the fundemental concept to build raytracing using segmented raycasting. Due to the low amount of blocks that light can collide with the most effective calculation would be to use 1 ray segment and get all collitions but this project was built to experiment with the possibility of more complex shapes with large amount of verticies. This project uses the CPU for calculating rays and collitions and is not optimized to be used directly in games.

How to simulate

Install dependencies

Windows

pip install -r requirements.txt

Linux / Mac

pip3 install -r requirements.txt

Run src/main.py

Windows

python src/main.py

Linux / Mac

python3 src/main.py

About

A raycasting project using segmented rays on a 2D field to cast a ray map that collides with objects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages