Silk cocoon rendered live in browser: 87,260 spline strands plus a 72KB neural net

moeinteractive · x · 2026-11-28

A browser demo renders a photoreal silk cocoon in real time. Breakdown of the tech: 87,260 true 3D spline strands (1.38M control points) in 4 layers; a 72KB 3-layer neural net trained on 1,400 Blender Cycles path-traced frames to approximate multi-scattering; WebGPU tricks like hardcoding weights as WGSL literals (40x faster inference), pre-multiplying lights into the final layer (constant cost per light), and compute-shader shading at control points with staggered updates — 12.3ms/frame on M1 Max. Total asset is just 5.9MB.

Original post →

More from Research

Research channel →