Please forgive me this off-topic message, but you may like it:

I found a raytracer written in pure javascript.  The performance is as
bad as expected, but I'm nevertheless impressed.  Follow these steps to
render the first thing that came in my mind:

* Visit http://www.slimeland.com/raytrace/

* Change Resolution to 128x128 (or another square)

* Optional: Change Anti-Alias threshold to 0 for better quality

* Click "Load Workspace"

* Paste this text:

[{name:"sphere0",active:true,type:2,obj:{pos:new
Vector(0,0,0),rad:0.85,inversed:false,castshadows:true}},{name:"camera0",active:true,type:0,obj:{cameratypechoice:0,simplecamera:{pos:new
Vector(-2.5,-4,3),lookat:new Vector(0,0,0),sky:new
Vector(0,0,1),zoomfactor:1,aspectratio:1,handedness:0}}},{name:"lightsource0",active:true,type:1,obj:{pos:new
Vector(-5,-2,10),color:new
Color(1,1,1)}},{name:"box0",active:true,type:3,obj:{v1:new
Vector(-1,-1,-1),v2:new Vector(1,1,0),inversed:false,castshadows:true}}]

* Click OK

* Click Render

* Wait... ;)

Daniel




 --- 8< --- detachments --- 8< ---
 The following attachments have been detached and are available for viewing.
  http://detached.gigo.com/rc/Mr/7wp5FvnZ/signature.asc
 Only click these links if you trust the sender, as well as this message.
 --- 8< --- detachments --- 8< ---

_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/8f4f07cd

Reply via email to