In this video I show how to make a very simple ray tracing game in python with matplotlib. As ray tracing is a bit heavy to process, i also discuss about optimization with Numba and multiprocessing.
For proper optimization, with 100 times more fps, also more eyecandy, refer to my follow up video: • Supercharged Python with Numba: 3d game ra...
Code available at my GitHub: https://github.com/FinFetChannel/pytr...
Contents:
00:00 Intro
02:47 Libraries used
02:53 Base game
04:23 Vision rays
05:00 Shadow rays
05:35 Reflection rays
06:08 Performance discussion
07:21 Ray optimization
07:42 Numba
08:07 Multiprocessing
Check out my channel in portuguese / meu canal em português brasileiro: / @finfetptbr