JAX's true calling: Ray-Marching renderers on WebGL
JAX’s true calling: Ray-Marching renderers in Python on WebGL Demo (move your mouse/thumb across the image)
Why, though? Well, I’ve been drooling over this tool the cool kids use, and wondering how I can join the gang. It’s called JAX.
It’s got GPU accelerated functions over n-dimensional arrays. And built-in compile-time differentiability of these!? Auto-vectorization?? And you just have to do like with numpy. What’s not to like? Go home APL!
Winding numbers using a Cauchy integral, with WebGL
Winding numbers using a Cauchy integral, with WebGL This is what the winding number n(γ,a) of curve γ around point a, expressed as special case of Cauchy’s integral formula looks like on potentially non-closed loops, with complex numbers mapped to a hue-luminance space.
$$ n(\gamma ,a) = \frac{1}{2 \pi i}\int_{\gamma}^{}\frac{1}{z-a}dz $$
Demo (drag your mouse/thumb across the red canvas)
Reset Shuffle Circle Square Levy Dragon + - This animation requires WebGL