r/creativecoding • • 2h ago

Traffic Jam simulation

Enable HLS to view with audio, or disable this notification

3 Upvotes

This is a simple model of traffic called the Nagel-Schreckenberg model. Each square represents a car. Red means it is at a full stop (stuck in a jam), and yellow means braking, and green means it is driving at vmax. At each tick, a car increases its speed by 1 or adjusts its speed so it doesn't crash, and with probability p(dawdle) it randomly brakes and decreases speed by 1. Through these very simple rules traffic jams can emerge due to just one person randomly changing speed. If you set vmax to 1 and p(dawdle) to 0, you get Wolfram's rule 184

This is a little TouchDesigner simulation I used to research my video about phantom traffic and its solutions


r/creativecoding • • 19h ago

Open Source #Codevember 3D Web Experiences

Enable HLS to view with audio, or disable this notification

39 Upvotes

Hey, Everyone! :)

I've been doing #codevember this year which has been a lot of fun. Everyday i'm working on a new creative 3D web experience. I'm new to reddit, but a big 3D graphics nerd, this is me: https://www.linkedin.com/in/adamchernick/ . My goal with codevember has been to see how far I can push 3d graphics in the web with WebGPU, physics simulations, shaders, etc. All of the experiences are WebGPU based.

It's been getting some love from some top 3D graphics industry folks and thought some people here might find it interesting as well. I hope you enjoy!

Code: https://github.com/acher249/codevember-2026
Play with them: https://adamwebsite.com/codevember/


r/creativecoding • • 12h ago

Knife Impasto

9 Upvotes

Could find more from my site https://jdxyw.github.io/generativeart/. You can also generate it with different parameters using my code https://github.com/jdxyw/generativeart . Hope you guys like it, and star the repo if you like it.


r/creativecoding • • 17h ago

Lenses and mirrors

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/creativecoding • • 8h ago

Made a short on what physics knows and doesn't know about time, including the fact that the Wheeler-DeWitt equation has no time variable in it

Enable HLS to view with audio, or disable this notification

0 Upvotes

The known half is measurable to absurd precision. GPS satellites gain about 45 microseconds a day from sitting higher in Earth's gravity, lose about 7 from orbital velocity, net 38. Uncorrected that's roughly 10 km/day of positional drift. In 2022 Jun Ye's group at JILA resolved gravitational redshift across 1 mm inside a single cloud of ~100,000 strontium atoms, published in Nature.

Then it falls apart. Almost all fundamental dynamics is time-symmetric. The weak interaction violates T, but far too weakly to account for any macroscopic arrow. So the direction appears to rest entirely on the Past Hypothesis, the low-entropy initial state, which is itself unexplained. And canonical quantisation of GR gives Ĥ|ψ⟩ = 0, with no time parameter anywhere in it.

I hedged to "almost every law" rather than "every law" because of the T violation, and the sources are in the description.

Visual is a rotating wireframe globe with great-circle arcs as signals crossing it, which felt right for the no-universal-now part. When it reaches the arrow of time section the arcs and the globe run backwards, because the laws allow exactly that.

Happy to be corrected on any of it.


r/creativecoding • • 11h ago

No video model: a music video where one eye blinks, saccades and reacts to light. 5,550 frames of Python and OpenCV.

Thumbnail
youtube.com
1 Upvotes

Upfront, since it matters here: the music is AI-generated (ACE-Step) and the seven stills of the eye came from Gemini. Everything that moves is code. No video model was used.

The idea is borrowed from Star Guitar by The Chemical Brothers. One eye behind a pair of glasses, and a night landscape rushing past in the lens. Every sound has an object. The kick is a street lamp, the snare a lit window, the hi-hat fence posts, the bass a power line that sags with the low end.

The eye was the hard part. A crossfade between "open" and "closed" looks like a crossfade, not an eyelid. So it moves the way the research says an eye moves:

- Saccades take 37 + 2.7 ms per degree, with a gamma-shaped speed curve

- Microsaccades 1 to 2 times a second, slow drift between them

- Blinks close in 70 to 100 ms and open 2 to 2.6 times slower, about a third never fully close

- A 180 degree shutter, 8 subframes per frame when something moves, so lids and gaze get real motion blur

- After each blink the pupil shrinks first, then grows (Knapen et al. 2016)

What went wrong, so you don't have to:

- An effect mirrored the eye in the glass. The night tint made it cold blue, and it looked like her eye changed color. Removed.

- The landscape reflected in the iris showed beach and sea glitter as curved white lines. A 25 px top-hat filter fixed that, and also killed every light in the iris. Dilating the points before downscaling brought them back.

- The drift wandered 208 px in three minutes. Microsaccades have to know where the eye is now and pull it back.

- The lightning was straight lines near the center of the lens, where the lens barely bends anything. It looked painted on. Now it is drawn in the landscape, so the lens bends it, with four return strokes and a faint second image from the back of the glass.

NumPy and OpenCV, frames piped to ffmpeg, six processes. About 700 seconds per format on my own machine.

My first pixels were on an ABC80, about 1x1 mm each. I don't complain about graphics much.


r/creativecoding • • 4h ago

I grew up watching starling murmurations or "Black Sun" in Ribe, Denmark. So together with Claude Code, I built a starling flock you can fly inside.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Every spring and autumn, hundreds of thousands of starlings gather over the marsh at dusk and black out the sky. You start on the dike, fly into the flock, become one of the birds, and after about three minutes they pour into the reeds.

The numbers come from research on real flocks: seven nearest neighbours, turn waves, and a falcon that strikes the edge of the flock. Click the flock and it scatters. All the sound is generated live with Web Audio, no audio files.

Live (sound on): https://www.attabird.com/sortsol

Code: https://github.com/attabird/sort-sol


r/creativecoding • • 14h ago

A WebGL marble that reacts to voice, made for your AI voice agents!

0 Upvotes

Introducing Talking Marble, an audio-reactive marble for your voice AI agents, free and open source!

  • one fragment shader of flowing pigment, [how it works: e.g. noise or warping technique]

  • state sets its character: slow when idle, gentle when listening, fast and folding when thinking

  • voice drives it live, each syllable sends a ripple and brightens it

  • material never changes between states, only energy, motion and light

  • one shared WebGL context for every marble, 30fps cap, pauses off screen

  • sharp from a 20px icon to full screen, zero dependencies, about 15 kB

website: https://talking-marble.vercel.app/
code: https://github.com/imjustinliao/Talking-Marble
-> npm i talking-marble

I'd love to hear your feedback, especially on the shader and the motion*!*


r/creativecoding • • 1d ago

I #luv glsl

Enable HLS to view with audio, or disable this notification

40 Upvotes

r/creativecoding • • 1d ago

Lucinate on Black Friday Week sale!

Post image
4 Upvotes

Lucinate is currently on black friday week sale! https://itunes.apple.com/app/id6523413169

It's a creative environment for generative art, live visuals, and video synthesis.

Blend layers, modulate any parameter with audio, CV, MIDI, and LFOs, sync to the beat, and code your own shaders in the built-in MSL editor.

One purchase covers Mac, iPad and iPhone. No subscriptions, in-app purchases, or ads.

See instagram.com/j_liljedahl/reels/ for some example output made with Lucinate.


r/creativecoding • • 1d ago

Mandelbox close-ups - 12 folds, rendered isometric so it reads like architecture

Thumbnail gallery
28 Upvotes

r/creativecoding • • 1d ago

Ocean shaders for any Wolfram 3D plots: a small recipy with GLSL 🫟

Enable HLS to view with audio, or disable this notification

8 Upvotes

Here is an example of a custom material (WaterMaterial) written in JavaScript and passed as a material shader to RevolutionPlot3D:

RevolutionPlot3D[ {2 + Cos[t], Sin[t]}, {t, 0, 2 Pi},    PlotStyle->MaterialShading[WaterMaterial[]] ]

The Wolfram Kernel does not do anything with it and just forwards it to the frontend. There, JavaScript finds the user-defined WaterMaterial symbol definition (not shown here), which contains raw fragment and vertex shader code written in GLSL. The code is compiled and run on the GPU via WebGL, directly processing all vertices and normals of the previously constructed torus.

If you are interested in the source code and a deep journey into GPU shaders, you are welcome here: https://wljs.io/blog/ocean-shaders

Cheers,

K.


r/creativecoding • • 2d ago

Raymarched SDF stones in a noise tunnel, with feedback: real-time WebGL / three.js video synth, played live (how it works below)

Enable HLS to view with audio, or disable this notification

9 Upvotes

How it's made: three.js with a ping-pong render-target chain. Each effect is a small GLSL fragment pass, and feedback reads last frame's buffer.

In this clip, the tunnel is a generated noise source. The stones come from an SDF source: up to eight orbiting signed-distance shapes, sphere-traced in a fragment shader. A second march of the same material writes depth, and that depth pass ("SDF Depth") is what's routed here. Animation runs on an integrated phase rather than time × speed, so Speed 0 freezes the shapes in place instead of snapping them back. After that come feedback and a Colorizer pass that cuts brightness into colour bands.

Every value lives in one parameter system, so anything can be driven by MIDI, an LFO, audio analysis or an expression. Mix buses are double-buffered, so one bus can read another bus's previous frame. A live GLSL editor keeps the last good shader if you make a syntax error. The sound is ImWeb's Spectral Writer, which turns the picture into sound.

There's no AI imagery in this. The code is written with Claude Code; the instrument design is mine.

Free and open source: https://github.com/imweb-project/ImWeb · try it: https://imweb.image-ine.orgHow it's made: three.js with a ping-pong render-target chain. Each effect is a small GLSL fragment pass, and feedback reads last frame's buffer.

In this clip, the tunnel is a generated noise source. The stones come from an SDF source: up to eight orbiting signed-distance shapes, sphere-traced in a fragment shader. A second march of the same material writes depth, and that depth pass ("SDF Depth") is what's routed here. Animation runs on an integrated phase rather than time × speed, so Speed 0 freezes the shapes in place instead of snapping them back. After that come feedback and a Colorizer pass that cuts brightness into colour bands.

Every value lives in one parameter system, so anything can be driven by MIDI, an LFO, audio analysis or an expression. Mix buses are double-buffered, so one bus can read another bus's previous frame. A live GLSL editor keeps the last good shader if you make a syntax error. The sound is ImWeb's Spectral Writer, which turns the picture into sound.

There's no AI imagery in this. The code is written with Claude Code; the instrument design is mine.

Free and open source: https://github.com/imweb-project/ImWeb · try it: https://imweb.image-ine.org


r/creativecoding • • 1d ago

Rose Parade by Elliott Smith visualization

Thumbnail
youtube.com
1 Upvotes

r/creativecoding • • 2d ago

Fluid Art Generator

Thumbnail
gallery
82 Upvotes

r/creativecoding • • 2d ago

Endless Lofi Beat Tape

Thumbnail
youtu.be
2 Upvotes

Liminal is an art project.
Liminal is an immersive app.
Liminal is open source.

Drums: AJ Hall, the GOAT of drum loop packs.
Music: algorithmically generated
Samples/Video: from the Internet Archive
Images: many sources, mostly Library of Congress

Not that it SHOULD matter, because creative is creative, but none of the imagery or music is generated directly by AI.

https://github.com/pj4533/Liminal


r/creativecoding • • 1d ago

I built an ASCII art generator for images and animated GIFs

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/creativecoding • • 2d ago

The second one - Fog Warning

Enable HLS to view with audio, or disable this notification

10 Upvotes

The second one of my beyond the paintings world series, this time it’s the Fog Warning (Halibut Fishing) - Winslow Homer, 1885

Getting lost in thick fog and the horn from the Schooner as your only beckon on a vast unforgiving sea.

Dark, cold and wet. And FFT is beautiful. Tried the methods of Sea of Thieves, AC Black Flag to create the sea. Used blender, libmypaint engine and threejs.

Come ride through the waves on onthemotif - link in the comment.


r/creativecoding • • 3d ago

Contour Life: Particle Life + Marching Squares Algorithm

Enable HLS to view with audio, or disable this notification

38 Upvotes

These alife 'microorganisms' are created with contour life, basically the particle life algorithm with added fields, and contours generated using the marching squares algorithm. If anyone is interested, the details, and an evolutionary version, are on YouTube: https://youtu.be/re4iCV1XJ2Y


r/creativecoding • • 3d ago

Structures with bezier curve construction lines

Thumbnail
gallery
58 Upvotes

r/creativecoding • • 4d ago

Experimenting with interactive ASCII spirals.

Enable HLS to view with audio, or disable this notification

550 Upvotes

(It’s a bit laggy due to performance issues)


r/creativecoding • • 3d ago

Get ready for planet D

Post image
2 Upvotes

r/creativecoding • • 5d ago

Squeegee scrape

43 Upvotes