This repository demonstrates ray tracing implemented in python using CUDA and the JIT compiler of numba. The following scene takes less than 1 ms to render after the code is compiled (using an Nvidia Quadro P1000)
A compatible installation of the CUDA toolkit is required.
Download from: https://developer.nvidia.com/cuda-toolkit
main.py
will produce a PNG image in the/output/
folder.- (...) defining a scene (at the moment can be done using the Scene class. Check out
scene.py
)
- more robust way of defining materials and shader settings
- refractions
- scatter
- anti aliasing
- cuda - open gl interop real-time display
- gui for scene management