naivert is an pure Python implementation of ray tracing algorithm using Phong illumination model.
For geometry calculation, naivert uses the library of Geometry3D.
Basic materials and light sources are given in the configuration file. You can also define the material and light source by yourself.
You may refer to the examples and documentation of Geometry3D to get to know how to use naivert.
numpy, Geometry3D, matplotlib and opencv-python
pip install naivert
Run .py files under examples folder.
For example:
python example3.py
python example4.py
python example5.py
Note that the calculation may be very slow. You can modify the resolution of the image to reduce the time cost.