Skip to content(if available)orjump to list(if available)

Show HN: A real-time 4D fractal explorer in the browser using WebGPU

Show HN: A real-time 4D fractal explorer in the browser using WebGPU

3 comments

·December 11, 2025

Hi HN, I've always been interested in fractals, especially the Mandelbrot and Julia sets. A few years ago I created a 2d viewer of this inherently 4d space. But the other day I decided to ask Claude and GPT how to make this a full RT 3d explorer. A few hours later and this was vibe coded.

To use it you can use the mouse to rotate the fractal the the mouse wheel to zoom in and out. to map from 4d to 3d, one of the dims is mapped to an adjustable slider. the there is also a clipping plane slider to help visualize the internal structures of the fractal.

I have mixed feelings about vibe coding. It was amazing to go from an idea to live implementation within a few hours, but in my coding projects, I've always appreciated the journey and the learning, not just the final product. Vibe coding kind of skips to the end which is exciting and efficient, but just not as fulfilling as struggling through a project step-by-step.

thih9

Note: webgpu in Safari Mobile requires ios 26[1].

Sharing this in case others are waiting with this update like me.

[1]: https://github.com/gpuweb/gpuweb/wiki/Implementation-Status#...

frankhsu

A really cool experiment! And also a very interesting visualization tool.

Vibe Coding is very convenient for creating this kind of content, especially in Gemini 3 Pro mode.

I think you could have the Agent add some color adjustment sliders to the tool, and then add a "Download" button so that others can export the content from the canvas with one click.

FarhadG

Very cool and thanks for sharing. As you explore more cool experiments with WebGPU, be sure to submit the ones that would be a good feature to WebGL.com / WebGPU.com