2D-Ray-Tracing icon indicating copy to clipboard operation
2D-Ray-Tracing copied to clipboard

2D ray tracing made with python and pygame

2D Ray Tracing

2D ray tracing made with python and pygame

  • Click here to see a demo video
  • Click here to see the used formulas

Using the application

  • Clone GitHub repository
  • Download required dependencies: $ pip install -r requirements.txt
  • $ python main.py
  • Feel free to edit the options at the top of the script
  • Move the ray source with the mouse, randomize the walls with the space key