A 3D statue built in code
The bronze Kobe statue from the idols page. It is built in code from twelve capsules plus a few spheres and boxes, with no model file, and it is rendered only while it turns; once it stops, no new frames are drawn. A wireframe view and a frame counter are added here to show both.
Source · GitHubThe statue uses a single metal material and a base. The limbs are capsules from one joint to the next, oriented by rotating from the y axis with setFromUnitVectors. The jersey number is painted once on a canvas and applied as a texture, with no font file and no glyph mesh. The canvas renders on demand: a turn writes the angle to a ref and calls invalidate() for one frame, and nothing is rendered after it stops. A mouse turns it by dragging; touch screens and keyboards use the two arrow buttons, because capturing swipes on a phone would conflict with page scrolling. Without WebGL, or under Save-Data, a photograph is shown here.
Source
Source files on GitHub: