Page 1 of 1

WebGL path tracer

Posted: Sat Jan 11, 2014 7:46 pm
by AGPX
Hi guys,

take a look a this WebGL code I found (called "Shiny Toy"). It combines path tracing with ray marching. You can update the code and look at the results. Which advantages have the ray marching? :?:

link: https://www.shadertoy.com/view/ldsGWB

- AGPX

Re: WebGL path tracer

Posted: Tue Jan 14, 2014 1:51 pm
by Zelcious
Ray marching is merely another kind of intersection method, usually used for different kinds of volumetric functions and data, for example distance field iso-surfaces, smoke etc.

Re: WebGL path tracer

Posted: Tue Jan 14, 2014 1:56 pm
by Dietger
Cool, and it gets even better after about 1000 seconds when the floating point precision starts to be insufficient :D

Re: WebGL path tracer

Posted: Tue Jan 14, 2014 1:57 pm
by friedlinguini
See, for example, this tidbit from Inigo Quilez: http://iquilezles.org/www/material/nvsc ... /rwwtt.pdf

Re: WebGL path tracer

Posted: Fri Jan 17, 2014 12:35 pm
by AGPX
Ok, I see. So for triangles is better to use raytracing. However,the Inigo Quilez results are very cool!