Kai-Gen
Takeshi Murata, Christopher Rutledge, J. Krispy · 2021 · Factory
Woop Woop! Run for your life! Kai-Gen are attacking! Fresh from the underground and ready to smash your city, these mutant beasties come unique and fired up. No polygons or texture maps here, just sweet ray-marching magic living right on-chain. When you're ready, press the 2 key on your keyboard to bring them to life. But be forewarned, animated Kai-Gen are hungry AF and will eat old GPUs like jellybeans. A modern-day PC/Mac desktop is highly recommended, then hit that 2 key, if you think you can handle it... Key 1 = Still, Key 2 = Animated. Let's GOOOOO!
How it works
The core is raymarching of signed distance functions (SDFs). It restores a CSG tree of primitives — spheres, boxes, capsules, curves — assembled from compressed data, and joins them with minimum and maximum operations (jmin/jmax) and smooth combination (smin/smax) to define the form of a single monster (Kai-Gen) as a distance function. Using neither polygons nor textures, a GLSL fragment shader generated at runtime advances a ray step by step to find the surface and draw the solid. The hash decides the primitives' kinds, placement and combination methods, a mechanism that raises a different beast each time with raymarching alone.
Palette
#000102 #696481#423a41#8e97b9#5c7712#95627b#e89499#379888#4291e0 Algorithms
- Fragment Shader (GLSL) · classification: rule-based
- Raymarching with SDFs primary · classification: rule-based
- 3D Mesh / Geometry · classification: rule-based
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗
Related works (by shared algorithms)
Last updated 2026-07-16