Skip to content
المشاريع

حول

A toy raytracer in Rust

التعلّم والتعليم

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

This is a toy raytracer I wrote in rust to learn how raytracers work. I also wrote a series of posts on it starting here.

Quickstart:

First, you'll need to have cargo installed. Then you can clone the repository and run the raytracer:

cd raytracer/app
cargo run --release scenes/test.json out.png

You can modify the rendered scene by editing test.json. Enjoy!

Python Quickstart:

This repository also contains code for exposing the raytracer through a C interface to Python. If you'd like to define your scenes in python instead, you can do this (note that on Unix-like OS's you may need to edit the path in python/raytracer.py to point to the *.so file instead of a dll):

cd raytracer/ffi
cargo build --release
cd ../python
python runner.py

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…