Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/littlebutt/ray-tracing-in-python
https://github.com/littlebutt/ray-tracing-in-python
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/littlebutt/ray-tracing-in-python
- Owner: littlebutt
- License: mit
- Created: 2024-03-31T03:17:21.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-13T00:38:02.000Z (8 months ago)
- Last Synced: 2024-04-13T19:10:44.239Z (8 months ago)
- Language: Python
- Size: 1.28 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ray-tracing-in-python
本仓库代码为[Ray Tracing in One Weekend](https://raytracing.github.io/)系列的Python实现。该系列共含三本书,本仓库实现了第一本书的全部和第二本书的部分。
- [book1](https://raytracing.github.io/books/RayTracingInOneWeekend.html)包括渲染球体、反走样、材质模型(漫反射、金属和电解质)和摄像机位置。
- [book2](https://raytracing.github.io/books/RayTracingTheNextWeek.html)包括动态模糊、包围盒、纹理贴图、柏林模糊、四边形和光照模型。以上内容在知乎上也有对应的理解,请参考[这篇](https://zhuanlan.zhihu.com/p/692188990)和[这篇](https://zhuanlan.zhihu.com/p/699263679)文章。更多详细内容请参考[官方教程](https://raytracing.github.io/)以及[官方C++实现](https://github.com/RayTracing/raytracing.github.io/tree/release/src)
![materials](./docs/output.jpg)
![blur and tex](./docs/output2.jpg)
![earth tex](./docs/output3.jpg)
![quad](./docs/output4.jpg)
![light](./docs/output5.jpg)