1 The idea
A checkerboard is all straight lines, ideal for seeing what distortion does. k1 sets the main bend; k2 adds more only far from the centre (the corners). Some wide lenses need both.
In real work these values come from shooting a lens grid on set and solving them in the tracking software, not from eyeballing.
2 Hands-on in the mini compositor
What k1 and k2 do to lines
Where the numbers come from: Computed in your browser. Saturation, Multiply, Clamp, Invert, Keymix, Copy and Grade are checked against node-based compositing software. Blur, Defocus, Glow, Sharpen, ChromaticAberration, Vignette, LensDistort, Grain, Erode, Toe, the Keyer and Despill are teaching versions, not identical to Nuke’s nodes. Transform here is also a teaching version: bilinear filtering, no concatenation, cropped at the frame edge. Images are our own Blender renders (the green screen is fully code-built; the desert scene uses Gaea 2.3 hills, a Poly Haven CC0 HDRI sky, Poly Haven CC0 rocks and grass, Quixel sand and cliff textures and a Mixamo rig for the robot, with Quixel and Mixamo used in the renders only).