https://github.com/dexterlb/traytor
A very slow raytracer written in Go
https://github.com/dexterlb/traytor
golang graphics path-tracing raytracer raytracing
Last synced: 5 months ago
JSON representation
A very slow raytracer written in Go
- Host: GitHub
- URL: https://github.com/dexterlb/traytor
- Owner: dexterlb
- License: mit
- Created: 2016-01-03T14:54:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T20:29:42.000Z (over 9 years ago)
- Last Synced: 2024-06-21T06:05:30.466Z (almost 2 years ago)
- Topics: golang, graphics, path-tracing, raytracer, raytracing
- Language: Go
- Size: 92.1 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
traytor
=======
[](http://godoc.org/github.com/DexterLB/traytor)
[](https://travis-ci.org/DexterLB/traytor)
[](https://raw.githubusercontent.com/DexterLB/traytor/master/LICENSE)
[](http://forthebadge.com)
```Every single ray misses```
T-ray-tor is a raytracer written in Go which uses the Path Tracing algorithm
(or something faster if we get to it)

### Features
- Reads scenes from gzipped JSON (Blender export script!)
- Materials: lambert, reflective, refractive, any mixture of those
- Mesh lamps
### Usage
$ go get github.com/DexterLB/traytor/cmd/traytor_gui
Then export your scene from Blender with the [exporter](https://github.com/DexterLB/traytor/tree/master/blender_exporter) render it with 50 samples:
$ traytor render -t 50 my-scene.json.gz output.png
You can find some sample scenes in the sample_scenes directory.
You can also run a distributed render on many worker machines! On each worker, start:
$ traytor worker -l :1234
to listen on port 1234, and on the client, run:
$ traytor client -w worker1:1234 -w worker2:1234 -t 500 my-scene.json.gz output.png
this will render the scene on all workers with 500 samples.
For more info, see `traytor --help` :)