GitHub Account Google Scholar Account LinkedIn Account Twitter Account flickr Account vialab Research Group Profile Page

JavaScript Ray Tracer

August 2012

Supports Spheres and Planes
Computes the Lambertian Reflection & Blinn-Phong Reflection
Change the settings and click the button to render the scene again
Number of Spheres (min: 1 - max: 20):
Minimum Radius of the Spheres (min: 1 - max: 200):
Maximum Radius of the Spheres (min: 1 - max: 200):
Width of the Canvas (min: 100px - max: 750px):
Height of the Canvas (min: 100px - max: 400px):
Minimum Sphere Reflection Ratio (min: 0.10 - max: 1.00):
Light 1 Colour (R, G, B - min: 0.00 - max: 1.00):
Light 2 Colour (R, G, B - min: 0.00 - max: 1.00):
Light 1 Position (X, Y, Z):
Light 2 Position (X, Y, Z):
Include Specular Reflection:
Include Shadows:
Include Plane:
Plane Position (X, Y, Z):
Plane Normal (nX, nY, nZ - min: -1.00 - max: 1.00):
Plane Reflection Ratio (min: 0.10 - max: 1.00):
Random
Random

Random
Random
Random
Random
Random


Random
Ray Trace
Resources:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10