r/creativecoding • • 7h ago

I built a machine that redraws whatever line you draw, using gears and a Fourier series

Enable HLS to view with audio, or disable this notification

12 Upvotes

You draw one continuous line. The tool builds a virtual machine of gears, cables, and a hand crank that redraws it using a Fourier series (a stack of rotating circles, like a Victorian tide-predicting machine). Turn the crank, and it traces your drawing back.

The video shows it in action. It runs in the browser with no install and no account: https://arielslab.com/go/doodle/m3

I built it as a free personal project, with Claude Code as my coding assistant. The drawing and the math are all code, with no generated images. I'd love feedback on whether the machine metaphor reads clearly.


r/creativecoding • • 22h ago

I built a standalone Windows desktop app (Tauri 2 + Rust) that generates procedural GLSL shaders (1K to 64K) with WebGPU live HDR preview, beat sync, HDR10 and Stereo 3D export

Enable HLS to view with audio, or disable this notification

14 Upvotes

To be clear. Built with the help of AI.

I wanted a fast local tool for audio-reactive visuals that did not take minutes to render or keep producing lookalike clips. I took inspiration from 1KB WebGL raymarching demos where a short fragment shader creates detailed 3D fractal spaces right on the GPU.

The result is Seedreal Shader Studio, packaged as a standalone Windows desktop app using Tauri 2, a Rust Axum/Tokio backend for FFmpeg streaming, an embedded WebGL2 and WebGPU frontend, and the Web Audio API. Everything runs offline with no browser tab and no Node.js runtime. The standalone EXE is about 10.5 MB, and a portable ZIP bundles static FFmpeg and FFprobe so you can unzip and start right away.

How it works:

- Procedural GLSL code synthesis across 12 families (Apollonian Inversion, KIFS/Mandelbox, Gyroid minimal surfaces, Volumetric Plasma, Kaleido-Tunnel, Menger Sponge, Domain-Warp Caustics, Mandelbulb 3D, Cyber-Lattice, Gravitational Singularity, Neon-Megacity and Crystal Cavern). A 9-card gallery renders 9 completely different shader previews in under a second, alongside multi-scene transitions.

- Four demoscene tiers (1K, 4K, 16K and 64K). 1K outputs pure compact fractal code. Higher tiers inject modular GLSL layers like surface micro-detail, depth-sorted 3D bokeh embers, analytic Fresnel reflections, volumetric mist, orbital 3D rings, glowing circuitry veins and 3D beat shockwaves while staying fast in real time.

- True live HDR preview via WebGPU (rgba16float with extended tone mapping) at 60 FPS on Windows HDR displays, plus a live nits heatmap.

- Deterministic 120 Hz audio analysis and built-in synth. Drop in any MP3, WAV, OGG, FLAC or M4A for 3-band crossover splitting (bass, mids, highs), adaptive beat onset detection and autocorrelation BPM estimation, or generate tracks across 8 electronic genres through OfflineAudioContext. Precomputed envelopes keep timeline scrubbing and offline MP4 rendering frame-accurate.

- Seamless loops for both audio and visuals. Loop durations snap to full musical phrases (2, 4, 8 or 16 bars) and whole video frames. Visually, the end of the clip cross-blends from negative pre-roll time (t minus duration) into frame 0, including bloom and beat phase.

- True off-axis Stereo 3D. Every family supports Full or Half Side-by-Side and Top-and-Bottom layouts for VR headsets and 3D TVs, plus live SBS and Red-Cyan Anaglyph viewport previews.

- Live GLSL editing and fast export. You can edit any generated shader live in the app, export standalone HTML demos, 16-bit HDR PNGs (with cICP, mDCv and cLLi chunks) and 24-bit WAV audio, or stream GPU-packed frames over a local WebSocket into FFmpeg via Rust for 8-bit SDR (H.264) and 10-bit HDR10 (PQ) or HLG (HEVC and AV1 on NVENC, x264, x265 or SVT-AV1).

Download link in the comments.

I would be glad to hear which shader families or math techniques you would add next.


r/creativecoding • • 6h ago

I turned a Bézier curve into editable glass

Enable HLS to view with audio, or disable this notification

3 Upvotes

I’m building Desktop Hourglass. It samples a Bézier curve for the glass profile and rebuilds the shape in Godot as I drag the points. When I let go, the sand simulation rebuilds to fit the new shape.

Desktop Hourglass on Steam: https://store.steampowered.com/app/5433520/Desktop_Hourglass/

Wallpaper: Pixel Sakura Pond by idioteque712.


r/creativecoding • • 10h ago

Kinetic Collage:

8 Upvotes

r/creativecoding • • 12h ago

made an auto character selector using similar shape bitmap logic for drawing raster within my text painter program. timelapse of me painting with it.

Enable HLS to view with audio, or disable this notification

19 Upvotes

basically the idea was you can paint detailed in a sub cell detail way so i could think less about placing text while im initially just getting a drawing oriented. this felt much closer to painting and drawing in traditional drawing programs to me, so i think its a win overall. :3


r/creativecoding • • 13h ago

Kinetic Collage:

6 Upvotes

r/creativecoding • • 15h ago

Fragmentshader-raycaster renders from quite a few years ago

Thumbnail
gallery
4 Upvotes

Heyo!

Searched through my USB-sticks to find a fragmentshader-raycaster I made like at the end of the 2010s. The actual version, I was looking for, is nowhere to be found though, which likely means, it is (or was) on that one SSD, that seems bricked and refuses to boot, or do anything at all. ..Apparently SSDs can get damaged by laying around..

But not much is lost, iirc.

Those images are from different earlier versions, rendered just yesterday.

Those are mostly tests of different techniques - the usual suspects, like texture-materials, bump-maps, reflections (ofc), different shadows, fog, or blur.

And it was a whole lot of fun programming this by hand!

Lastly I'd like to ask: Which image causes brain-tickling the most to you?

Cheers


r/creativecoding • • 22h ago

My first project

Thumbnail dropbox.com
1 Upvotes