This script is designed to be used to convert the .ppm files generated by Peter Shirley's "Ray Tracing in a Weekend" project to .tiff files. It uses the opencv-python module to perform the conversion.
The "Ray Tracing in a Weekend" book can be found here: https://raytracing.github.io/books/RayTracingInOneWeekend.html
- Python 3
- opencv-python (
pip install opencv-python)
python convert.py input.ppm
Copy code
This will read the input .ppm file and save the converted .tiff file with the same name (e.g., input.tiff) to the same directory.
- This script and the
README.mdfile were entirely written by chatgpt using OpenAI's GPT-3 model. - Keywords: ppm converter, ray tracing, raytracing, peter shirley, ray tracing in a weekend