You can view a live sample of the renderer in action here. Note that this sample might not work on Apple's operating systems.
- Vanilla path tracing in the browser
- BVH tree to accelerate ray–triangle intersections
- Multithreaded with Web Workers
- Image export to a HDR format
- Save & restore render progress
For best results (e.g. Web Worker compatibility), you'll want to run Wray through a server.
This can be done locally, for instance by running
$ php -S localhost:8000 from Wray's root directory, which sets up PHP's built-in server and points the given localhost to Wray's root.
Examples of usage
Samples of Wray in practical use are given in the samples/ directory.
Wray is currently in pre-alpha, and at the moment has no specific schedule for entering alpha. It's being developed on a want-to-code basis.
Recent (within the last year or so) versions of Chrome and Firefox on Linux/Windows/Android ought to be compatible.
Internet Explorer and Edge are not compatible.
Apple's devices and/or browser may not be compatible.
Below are results from perf-tests/perftest1.html as of 858a5bf on various platforms. The values given are thousands of samples per second, with standard deviations in parentheses – higher values of deviation relative to the base performance indicate less stable performance across time. The browsers are the latest corresponding stable versions at the time. An empty cell indicates that the corresponding test has not been run.
|Xeon E3-1230 v3||28 (3.22)||11 (0.01)|
|Pentium G4560||22 (6.05)||11 (0.01)|
|Honor View20||21 (1.24)|
|Huawei T1-A21L||2 (0.37)|
Authors and credits
Ray–triangle intersection testing (js/wray/ray.js:intersect_triangle) is adapted from code provided in Moller & Trumbore 1997: "Fast, minimum storage ray/triangle intersection".