Chapter 4 · Recipes

4.9Tears

undo "TenPix: tear along the band" on (
    local t = tpaAddBelowSolver $Sheet (Tnpix_Tear())
    t.tearBy = 0                     -- 0 Map (inside the channel), 1 Stretch (anywhere), 2 Pressure (with a Tnpix Volume)
    t.channelName = "tear_band"
    t.threshold = 10.0               -- Map and Pressure: lower tears sooner
)
  • Order of work. Settle the Solver's Substeps and Iterations first: a Threshold holds for the Substeps and Iterations it was typed at. Then play, read the Tear status line (it shows the strongest pull reached), and set the Threshold just below that value. The status line is on the panel, so ask the artist to read it, or step the Threshold and show the result.
  • Tearing by stretch. tearBy = 1 with stretchRatio = 0.1 tears where an edge gets 10 percent longer. No paint is needed.
  • Tearing point by point. With weakMin below weakMax, a painted region tears point by point instead of all at once.
  • An exact line. Use the tear brush: TnpixTool.tearCut (4.5).
  • A Tearing Sample. The toolbar's Tearing Sample builds a complete tearing scene to start from.