プロジェクト
GitHubで見る
rafael-fuente/Python-Raytracer
概要
NumPyの配列と関数を活用し、十分な速度で動作する基本的なレイトレーサー
制作・メディア計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルPython-Raytracer
A basic Ray Tracer that exploits numpy arrays and functions to work reasonably fast compared with a pure Python implementation. The code is written keeping as much readability as possible.

- Refraction
- Thin film interference
- Textures
- Monte Carlo Ray Tracing with importance sampling
Installation
Just clone or download this repo. You'll need to install two packages.
- Pillow is a fork of the PIL package. It provides the Image module for this application. to install it run the following.
pip install pillow
- Numpy is a scientific package that helps with mathematical functions.
pip install numpy
Examples
See the examples to see how to render the following images:
python example1.py

python example2.py

python example3.py

python example4.py

python example_cornell_box.py

Some animations: https://www.youtube.com/watch?v=vt9vAcZQT4A
A basic version of this raytracer can be found here: https://www.excamera.com/sphinx/article-ray.html
A C++ version of this raytracer can be found here: https://github.com/rafael-fuente/sightpy-weekend-raytracer
関連プロジェクトを探す
読み込み中…