Chowder
Playing with Textures
Chowder is a pair of glitch effects I made using the segmentation model FastSAM. Its name comes from the Cartoon Network show "Chowder," whose art style loosely inspired these effects.
The first effect, "reveal," simply segments the image and reveals a few of the segments each frame. The second effect, "scramble," replaces the texture of a few of the segments with that of a different segment. This was more difficult than I had initially imagined. Many of the segments are very irregular shapes, which meant I needed a way to stretch one irregular shape to another. To do this without too much math, I made two simplifying assumptions. First, I assumed that all of the segments were topologically identical. In other words, any holes in a segment would be ignored, and the shape would only be stretched based on its outer contour. Second, instead of stretching one shape to another, I would stretch each shape to a square texture image and subsequently sample from the second shape from that texture using a mask.
To do this, I found the 4 points which were closest to each of the bounding box's corners. The shape will be stretched such that these points are the 4 corners of the texture. Points on the contour between two corner points will be stretched to points evenly spaced along the corresponding edge of the texture. After creating the textures, each frame simply selects some number of segments to be modified and randomly selects a new texture for each one.
This project won't be on the "technology" side of this website, but you can find the code here: Github Repo.