Skip to content

cookiemonsternz/cookiemonsternz.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Walkers

This was my old submission for blot, reimagined and recoded: First using p5js (CPU), then ported to run on the gpu using webgl. It works essentially as a kind of physics simulation. You define a 3d mathematical surface (or SDF), and the simulated 'walkers' walk down the slope.

For an example of this, you can view a surface here: https://www.desmos.com/3d/xkddysguta And if you replace the sdf function in Walkers GPU with this:

float sdf(vec2 pos) {
    float scale = 30.0;
    return sin(pos.x * scale) + cos(pos.y * scale);
}

You can see how the walkers traverse from the peaks (the dark areas) to the valleys.

Links

  • Walkers GPU - The GPU Port
  • Walkers CPU - Original rewritten p5js code (CPU)
  • Walkers Auto - p5js code (CPU) which automatically cycles through different sdf functions and color schemes

Running Locally

To run locally:

Images

image image image image image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published