https://github.com/brson/rustray
Sebastian Sylvan's Rust ray-tracer
https://github.com/brson/rustray
Last synced: about 1 year ago
JSON representation
Sebastian Sylvan's Rust ray-tracer
- Host: GitHub
- URL: https://github.com/brson/rustray
- Owner: brson
- Created: 2011-12-09T20:21:15.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-12-04T22:02:26.000Z (over 12 years ago)
- Last Synced: 2025-04-02T22:41:59.996Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 336 KB
- Stars: 20
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Rustray
=======
May 2013
A raytracing proof-of-concept in Rust
Requirements
------------
- Rust-0.6 (incoming)
Compiling
---------
::
$ rustc rustray.rc
It's usually worth compiling with '--opt-level 3'.
Quality Settings
----------------
Now raytracing parameters are hard-coded in ``consts.rs``,
just edit it and re-compile ``rustray`` again.
Demo
----
This might take some time even on the strong machine, so consider choosing more
simple model or adjust quality settings.
::
$ wget http://groups.csail.mit.edu/graphics/classes/6.837/F03/models/cow-nonormals.obj
$ ./rustray cow-nonormals.obj
Reading "cow-nonormals.obj"...
Reading model file...Building kd-tree... Done.
Loaded model.
Verts: 4583, Tris: 25811
KD-tree depth: 14, #nodes: 3341
Tracing rays... using 4 tasks ... Done!
Writing "./oput.ppm"...Done!
Total time: 16.149s, of which tracing: 11.161