https://github.com/diffcunha/crp-raytracer
A distributed RayTracer as a service with CrowdProcess!
https://github.com/diffcunha/crp-raytracer
Last synced: 8 months ago
JSON representation
A distributed RayTracer as a service with CrowdProcess!
- Host: GitHub
- URL: https://github.com/diffcunha/crp-raytracer
- Owner: diffcunha
- License: gpl-2.0
- Created: 2014-04-06T20:31:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-23T16:45:15.000Z (almost 10 years ago)
- Last Synced: 2023-08-24T16:28:24.509Z (almost 3 years ago)
- Language: JavaScript
- Size: 4.24 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
crp-raytracer
=============
A distributed RayTracer as a service with CrowdProcess!
# Install
First, you need to install [node](http://nodejs.org/). And then :
````
npm install
````
You then need to have a [crowdprocess](https://crowdprocess.com/) account. You can now create a credentials file.
The `credentials.json` looks like this:
````
{
"email": "your@email.com",
"password": "secret"
}
````
# Run it!
````
node . 50 ./examples/pokeball_scene.json out.png
````
`50` represents the size of the square that is sent to each browsers.
# Browserifiy it
````
npm install -g browserify brfs
browserify -t brfs ./web-app/browser.js -o ./web-app/bundle.js
````
There is an encoding issue at line 3589 of bundle js, rewrite ` && ` from the keyboard.
# Credits
Big inspiration from the work of [Christopher Chedeau aka Vjeux](http://blog.vjeux.com/) you can find here [jsRayTracer](https://github.com/vjeux/jsRayTracer). Thanks!