Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

fix(site): LRRH round 3 and the making-of page for the second version

yzr3fcef0a41133
diff --git a/site/little-red-riding-hood/ch01/scene3.js b/site/little-red-riding-hood/ch01/scene3.js
index 42849e0..3b66d17 100644
--- a/site/little-red-riding-hood/ch01/scene3.js
+++ b/site/little-red-riding-hood/ch01/scene3.js
@@ -27,6 +27,11 @@ function s3_torn(w, h, seed) {
// The oaks picture flickers in on paper (on twos) and fades out: 0 hidden … 1 full.
const s3_pop = (q, t0, t1) => q < t0 || q >= t1 + .5 ? 0 : q >= t1 ? [.7, .45, .2, .08, 0, 0][Math.floor((q - t1) * FPS)] : [.5, .15, .8, .4, 1][Math.min(4, Math.floor((q - t0) * FPS))];
const s3_OAKS_VIEW = { x: 960, y: 420, z: .85 }; // grandmaOut's wide that counts the three oaks (sets report)
+// The front right arm's joints (cast.js: shoulder 38,-140, elbow 38,-82, hand 38,-26) and the lift to the cap: the paw
+// goes up the outside, elbow out (a quadratic in joint angles through LIFT_MID), to the cap's right brim at LIFT_END.
+const s3_LIFT_MID = [-60, -140], s3_LIFT_END = [-156.5, -36]; // rua, rfa; LIFT_END puts the paw at (49, -248), on the brim's tip
+const s3_rot = (x, y, cx, cy, a) => { const r = a * Math.PI / 180, c = Math.cos(r), s = Math.sin(r); return [cx + (x - cx) * c - (y - cy) * s, cy + (x - cx) * s + (y - cy) * c]; };
+const s3_hand = (ua, fa) => s3_rot(...s3_rot(38, -26, 38, -82, fa), 38, -140, ua); // the paw's centre in the puppet's frame
function scene3(p, D) {
const C = s3_C, k01 = (q, a, d) => Math.min(1, Math.max(0, (q - a) / d)), arc = (q, a, d) => Math.sin(Math.PI * k01(q, a, d));
@@ -47,6 +52,11 @@ function scene3(p, D) {
const B = paperCam(p, 'forest', { x: 1425, y: 572, z: 2.7 }).soft(0, 'all'), backB = mk('g', { filter: 'url(#s3_blurC)' }, B.stage);
prop(backB, bushBackSVG(s3_BX, s3_BY)); prop(backB, bushFrontSVG(s3_BX, s3_BY));
const bowG = mk('g', {}, B.stage), wolfB = wolfPuppet(bowG), redB = redPuppet(mk('g', { filter: 'url(#s3_blurR)' }, B.stage));
+ // the cap in his paw from the frame they touch: the head's cap (cast.js capF), drawn over the head (the puppet's arm is
+ // under it), held on the forearm; on the sweep out it settles into the puppet's own cap-in-hand, which takes over
+ const capT = mk('g', {}, wolfB.g);
+ prop(capT, `<g filter="url(#paper)"><path d="M-46,-248 C-44,-288 44,-288 46,-248 Q0,-238 -46,-248 Z" fill="#6e4a30"/></g>`);
+ const capBrim = prop(capT, `<g filter="url(#paper)"><path d="M-40,-246 Q0,-232 40,-246 L44,-240 Q0,-226 -44,-240 Z" fill="#5a3b24"/></g>`);
B.to({ x: 1415, y: 580, z: 2.8 }, S1, S2 - S1);
// R: the wolf's view of her (forestRev), his head and ear big and soft at the left.
@@ -110,15 +120,29 @@ function scene3(p, D) {
B.apply(q, f);
// the paw goes up the outside to the cap, takes it off, sweeps it out to his side (never across his face);
// the bow: head down, eyes shut, the other paw on his heart, a dip; he peeks up on "Hood!"; the cap goes back on
- const up = span(q, C('s03', .0), C('s03', .25)), out = span(q, C('s03', .3), C('s03', .65));
+ const TOUCH = C('s03', .3), HELD = C('s03', .65), up = span(q, C('s03', .0), TOUCH), out = span(q, TOUCH, HELD);
const back = span(q, C('s03', 2.08), C('s03', 2.28)), down = span(q, C('s03', 2.32), C('s03', 2.55));
const bow = span(q, C('s03', .35), C('s03', .75)) * (1 - span(q, C('s03', 1.85), C('s03', 2.1)));
- const rua = q < C('s03', .3) ? 6 - 190 * up : q < C('s03', 2.08) ? -184 + 89 * out : q < C('s03', 2.32) ? -95 - 89 * back : -184 + 190 * down;
- const rfa = q < C('s03', .3) ? -4 - 6 * up : q < C('s03', 2.08) ? -10 + 50 * out : q < C('s03', 2.32) ? 40 - 50 * back : -10 + 6 * down;
- const capOff = between(q, C('s03', .25), C('s03', 2.28)), X = 1400, FEET = 760 + 200 * 1.15;
+ const [MU, MF] = s3_LIFT_MID, [EU, EF] = s3_LIFT_END, lift = (a, m, e) => (1 - up) * (1 - up) * a + 2 * up * (1 - up) * m + up * up * e;
+ const rua = q < TOUCH ? lift(6, MU, EU) : q < C('s03', 2.08) ? EU + (-95 - EU) * out : q < C('s03', 2.32) ? -95 - 89 * back : -184 + 190 * down;
+ const rfa = q < TOUCH ? lift(-4, MF, EF) : q < C('s03', 2.08) ? EF + (40 - EF) * out : q < C('s03', 2.32) ? 40 - 50 * back : -10 + 6 * down;
+ const headR = 7 * bow + 2 * Math.sin(q * 1.5), nod = 52 * bow, X = 1400, FEET = 760 + 200 * 1.15;
+ const grip = q >= TOUCH - 1e-3 && q < HELD - 1e-3, cap = q < TOUCH - 1e-3 || q >= C('s03', 2.28) ? 'on' : grip ? 'off' : 'hand';
tf(bowG, `translate(${X},${FEET}) scale(${(1 + .03 * bow).toFixed(3)},${(1 - .1 * bow).toFixed(3)}) translate(${-X},${-FEET})`);
- wolfB.pose({ x: X, y: 760 + 3 * Math.sin(q * 2.4), s: 1.15, turn: 0, head: 'F', cap: capOff ? 'hand' : 'on', rua, rfa,
- lua: -6 - 16 * bow, lfa: 4 - 114 * bow, nod: 52 * bow, headR: 7 * bow + 2 * Math.sin(q * 1.5), look: bow > .5 ? .4 : 0,
+ vis(capT, grip);
+ if (grip) { // the cap goes with the paw from where it sat on his head at the touch (offset v0 from the paw), sliding
+ // into the paw's grip as it sweeps out, where it matches the puppet's cap-in-hand (cast.js capInHand: 60 wide, centred
+ // 10 below the paw's centre along the forearm), which takes over at HELD
+ const fT = Math.round(TOUCH * FPS), hT = 7 * span(TOUCH, C('s03', .35), C('s03', .75)) + 2 * Math.sin(TOUCH * 1.5) + jit(fT, 9) * .7;
+ const onHead = s3_rot(0, -248, 8, -160, hT), pT = s3_hand(EU + jit(fT, 21) * .6, EF + jit(fT, 22) * .6);
+ const u = out, ua = rua + jit(f, 21) * .6, fa = rfa + jit(f, 22) * .6, h = s3_hand(ua, fa), v1 = s3_rot(0, 10, 0, 0, ua + fa);
+ const x = h[0] + (onHead[0] - pT[0]) * (1 - u) + v1[0] * u, y = h[1] + (onHead[1] - pT[1]) * (1 - u) + v1[1] * u;
+ const r = hT * (1 - u) + (ua + fa - (EU + EF + 55) * (1 - u)) * u, /* the forearm's angle when held (-95 + 40), eased to from upright */ sx = 1 + (.652 - 1) * u, sy = 1 + (.6 - 1) * u;
+ tf(capT, `translate(${x.toFixed(1)},${y.toFixed(1)}) rotate(${r.toFixed(2)}) scale(${sx.toFixed(3)},${sy.toFixed(3)}) translate(0,248)`);
+ capBrim.setAttribute('opacity', (1 - u).toFixed(2));
+ }
+ wolfB.pose({ x: X, y: 760 + 3 * Math.sin(q * 2.4), s: 1.15, turn: 0, head: 'F', cap, rua, rfa,
+ lua: -6 - 16 * bow, lfa: 4 - 114 * bow, nod, headR, look: bow > .5 ? .4 : 0,
brow: bow > .5 && q > C('s03', 1.3) ? -.6 : 0, ear: between(q, C('s03', .3), C('s03', .45)) ? 1 : 0,
mouth: lips(q, 'scene3', PRE3, 's03'), shut: between(q, C('s03', .7), C('s03', 1.3)) || blinking(q, [C('s03', 2.4)]) }, f);
redB.pose({ x: 1795, y: 990 + 3 * Math.sin(q * 2.2 + 1), s: 2.2, turn: -1, headR: 3 * Math.sin(q * 1.3), cape: 3 + 2 * Math.sin(q * 1.4),
diff --git a/site/little-red-riding-hood/ch01/scene9.js b/site/little-red-riding-hood/ch01/scene9.js
index 082972a..2769442 100644
--- a/site/little-red-riding-hood/ch01/scene9.js
+++ b/site/little-red-riding-hood/ch01/scene9.js
@@ -1,6 +1,7 @@
/* scene9.js — out! It starts mid-lunge on scene 8's last frame (s8_flight, s8_redDuck): the wolf's face goes into
the bouquet; the wardrobe bursts open; Grandma's close-up; a medium that runs with her from the wardrobe, past Red,
- onto the wolf getting up dazed with his back to her; cut closer as he turns and meets the umbrella; he gallops for the
+ onto the wolf getting up dazed with his back to her; a medium two-shot as he turns and scrambles and she comes on,
+ umbrella up, and brings it down; back to the wide as he turns to flee and drops to all fours; he gallops for the
door and skids before the woodcutter; a cut on each mark of "Grandma … the woodcutter … one way out", his eyes go
to the window; the leap, followed, through the glass. */
'use strict';
@@ -59,15 +60,17 @@ function scene9(p, D) {
// his close-up when his eyes find the window: the room behind him, out of focus
const W = paperCam(p, 'room', { x: 820, y: 450, z: 1.4 }).soft(0, 'all'), wolfW = wolfPuppet(W.stage);
// shots: A the lunge (two-shot), B the wardrobe, C Grandma's close-up, D her run (a medium that follows her onto
- // the wolf), D2 closer: he turns to her, the bonk, he bolts out of frame left; E the door,
+ // the wolf), D2 a medium two-shot on her and him: he turns to her, scrambles, the bonk; D3 the wide again: he turns
+ // for the door, drops to all fours and bolts out of frame left; E the door,
// F [gran], G [wood], H his eyes to the window (W), I the window, J the leap
- const SH = [[0, 'A'], [C('burst9', -.05), 'B'], [C('s09', -.15), 'C'], [C('s09', 1.1), 'D'], [C('s09', 2.6), 'D2'], [C('bonk9', 1.4), 'E'],
+ const SH = [[0, 'A'], [C('burst9', -.05), 'B'], [C('s09', -.15), 'C'], [C('s09', 1.1), 'D'], [C('s09', 2.1), 'D2'], [T.TURN, 'D3'], [C('bonk9', 1.4), 'E'],
[s9_M('gran') - .05, 'F'], [s9_M('wood') - .05, 'G'], [s9_M('way') - .05, 'H'], [C('s09c', 5.35), 'I'], [C('leap9', .05), 'J']];
const at = n => SH.find(s => s[1] === n)[0];
const gxAt = q => 1880 - 180 * span(q, T.BANG, T.LANDG) - 795 * span(q, T.RUNG, T.ATG); // Grandma's x
const wolfX = q => q < T.LEAP ? 530 : 530 + 1010 * Math.min(1, (q - T.LEAP) / .8);
cam.to({ x: 1030 }, T.HIT, .6).cut({ x: 1820, y: 590, z: 2.1 }, at('B')).cut({ x: 1700, y: 580, z: 3.5 }, at('C')).cut({ x: 1480, y: 600, z: 1.9 }, at('D')).to({ x: t => Math.max(1060, Math.min(1480, gxAt(t) - 200)) }, at('D'), .001)
- .cut({ x: 900, y: 635, z: 2.5 }, at('D2'))
+ .cut({ x: 875, y: 612, z: 2.9 }, at('D2')).to({ x: 860 }, at('D2'), T.TURN - at('D2'))
+ .cut({ x: 1060, y: 600, z: 1.9 }, at('D3'))
.cut({ x: 380, y: 590, z: 2.0 }, at('E')).to({ x: 330, y: 545, z: 2.3 }, T.SHOO - .2, .6)
.cut({ x: 925, y: 560, z: 2.6 }, at('F')).cut({ x: 290, y: 595, z: 2.3 }, at('G'))
.cut({ x: 1540, y: 430, z: 1.7 }, at('I')).to({ z: 2.4 }, at('I') + .05, .85)
@@ -98,7 +101,8 @@ function scene9(p, D) {
else if (q < T.GO) { // up, dazed, his back to her as she comes; turned to her on the cut (D2); the bonk; clutches his head; turns for the door
const up = span(q, C('s09', 1.85), C('s09', 2.2)), tr = q < at('D2') ? -1 : q < T.TURN ? 1 : 1 - 2 * span(q, T.TURN, T.TURN + .3);
const hit = q >= T.WHACK + .1, bump = between(q, T.WHACK + .1, T.WHACK + .4) ? 30 * Math.sin(Math.PI * (q - T.WHACK - .1) / .3) : 0;
- o = { x: 800, y: floor4 - bump, s, turn: tr, lean: 40 * (1 - up), headR: q < at('D2') ? 8 * Math.sin(q * 6) : 0, ua: hit ? -165 : -20, fa: hit ? -30 : -40,
+ const scr = between(q, at('D2'), T.WHACK) ? 1 : 0; // scrambling: his feet shuffle under him as she comes on
+ o = { x: 800, y: floor4 - bump, s, turn: tr, lean: 40 * (1 - up), near: 12 * scr * onTwos(q), far: -12 * scr * onTwos(q), headR: q < at('D2') ? 8 * Math.sin(q * 6) : 0, ua: hit ? -165 : -20, fa: hit ? -30 : -40,
brow: -1, ear: hit && q < T.WHACK + .6 ? onTwos(q) : 0, shut: hit && q < T.WHACK + .7, mouth: hit && q < T.WHACK + .5 ? 'D' : 'X', tail: -10 };
} else if (q < T.SHOO) { // gallop to the door, skid before the woodcutter
const g = gallop(q), sk = span(q, T.AT_DOOR - .25, T.AT_DOOR);
diff --git a/site/little-red-riding-hood/img/puppets/98be03ca.webp b/site/little-red-riding-hood/img/puppets/98be03ca.webp
new file mode 100644
index 0000000..b046752
Binary files /dev/null and b/site/little-red-riding-hood/img/puppets/98be03ca.webp differ
diff --git a/site/little-red-riding-hood/img/puppets/a6f4b7ba.webp b/site/little-red-riding-hood/img/puppets/a6f4b7ba.webp
new file mode 100644
index 0000000..2663737
Binary files /dev/null and b/site/little-red-riding-hood/img/puppets/a6f4b7ba.webp differ
diff --git a/site/little-red-riding-hood/img/puppets/baked.js b/site/little-red-riding-hood/img/puppets/baked.js
index 3cf6504..ffad0fa 100644
--- a/site/little-red-riding-hood/img/puppets/baked.js
+++ b/site/little-red-riding-hood/img/puppets/baked.js
@@ -1 +1 @@
-window.BAKED = {"a1f9044e": "a1f9044e.webp", "a82cdd39": "a82cdd39.webp", "1fb78fa0": "1fb78fa0.webp", "2fccaa46": "2fccaa46.webp", "2b4def45": "2b4def45.webp", "61e4b434": "61e4b434.webp", "2f3361cb": "2f3361cb.webp", "5fe30de5": "5fe30de5.webp", "2f9eac17": "2f9eac17.webp", "f4a5aa7c": "f4a5aa7c.webp", "38a61d82": "38a61d82.webp", "0b6d5850": "0b6d5850.webp", "a0472d62": "a0472d62.webp", "8fb85b5f": "8fb85b5f.webp", "47303142": "47303142.webp", "e8abb9cc": "e8abb9cc.webp", "6560b54b": "6560b54b.webp", "dfd0994b": "dfd0994b.webp", "637b3242": "637b3242.webp", "9a8e7995": "9a8e7995.webp", "d558d360": "d558d360.webp", "b60600e6": "b60600e6.webp", "67b96c62": "67b96c62.webp", "e07c2616": "e07c2616.webp", "68aacc3b": "68aacc3b.webp", "26ce673f": "26ce673f.webp", "1927ca5f": "1927ca5f.webp", "00b9c591": "00b9c591.webp", "38efed4a": "38efed4a.webp", "4fe02087": "4fe02087.webp", "91989f79": "91989f79.webp", "50555d75": "50555d75.webp", "00691678": "00691678.webp", "7db58c86": "7db58c86.webp", "430e8217": "430e8217.webp", "325e0ec0": "325e0ec0.webp", "b18f7823": "b18f7823.webp", "dd67ea8f": "dd67ea8f.webp", "052d3885": "052d3885.webp", "b31a1c3e": "b31a1c3e.webp", "0e0bbf87": "0e0bbf87.webp", "aa69cfd0": "aa69cfd0.webp", "a55d2d0b": "a55d2d0b.webp", "f24ca299": "f24ca299.webp", "8fa5a67a": "8fa5a67a.webp", "df4c9f52": "df4c9f52.webp", "15348a3e": "15348a3e.webp", "66522ec1": "66522ec1.webp", "8c773887": "8c773887.webp", "01ece229": "01ece229.webp", "afce0caf": "afce0caf.webp", "249d4211": "249d4211.webp", "268183d8": "268183d8.webp", "89dd7be0": "89dd7be0.webp", "3d022f6e": "3d022f6e.webp", "ad77d9d1": "ad77d9d1.webp", "17cb9a67": "17cb9a67.webp", "f44de40f": "f44de40f.webp", "49d81387": "49d81387.webp", "7f6aeb8e": "7f6aeb8e.webp", "90c16dfc": "90c16dfc.webp", "c8022302": "c8022302.webp", "c3ae56b8": "c3ae56b8.webp", "0995fa4a": "0995fa4a.webp", "65b40bba": "65b40bba.webp", "890768cc": "890768cc.webp", "45adb00b": "45adb00b.webp", "bd410b97": "bd410b97.webp", "07e43fe2": "07e43fe2.webp", "893c17b4": "893c17b4.webp", "96ed815a": "96ed815a.webp", "d88870bd": "d88870bd.webp", "aae7782d": "aae7782d.webp", "9c2a38c7": "9c2a38c7.webp", "4bb38ff7": "4bb38ff7.webp", "92d8cc94": "92d8cc94.webp", "e0aa53c1": "e0aa53c1.webp", "bd496b6b": "bd496b6b.webp", "b1b68679": "b1b68679.webp", "6bb05552": "6bb05552.webp", "a4c7fe84": "a4c7fe84.webp", "49216877": "49216877.webp", "87b38e88": "87b38e88.webp", "fb74c845": "fb74c845.webp", "21871651": "21871651.webp", "048622bd": "048622bd.webp", "b10b1ba3": "b10b1ba3.webp", "76af3a6a": "76af3a6a.webp", "5e199298": "5e199298.webp", "02233c08": "02233c08.webp", "bbcfa223": "bbcfa223.webp", "ae02425a": "ae02425a.webp", "22b330d8": "22b330d8.webp", "b244328f": "b244328f.webp", "528517ce": "528517ce.webp", "bf067038": "bf067038.webp", "f00e0a82": "f00e0a82.webp", "5591793f": "5591793f.webp", "41acda97": "41acda97.webp", "e399a941": "e399a941.webp", "0a0d0d5b": "0a0d0d5b.webp", "bee14083": "bee14083.webp", "bdbf9ccc": "bdbf9ccc.webp", "2e7edc08": "2e7edc08.webp", "d09825d1": "d09825d1.webp", "a49022ab": "a49022ab.webp", "abc36243": "abc36243.webp", "c549a7dc": "c549a7dc.webp", "c72a7a0e": "c72a7a0e.webp", "ee7be279": "ee7be279.webp", "9a93ee7b": "9a93ee7b.webp", "b4cfc9e6": "b4cfc9e6.webp", "8084dbe5": "8084dbe5.webp", "9e818400": "9e818400.webp", "b47df80a": "b47df80a.webp", "cda48047": "cda48047.webp", "c831602c": "c831602c.webp", "de04d2a6": "de04d2a6.webp", "b624a6da": "b624a6da.webp", "b4b2a03f": "b4b2a03f.webp", "f4f12b0b": "f4f12b0b.webp", "cb722cbc": "cb722cbc.webp", "019a6eb5": "019a6eb5.webp", "5ce62f06": "5ce62f06.webp", "718869be": "718869be.webp", "cfeeae59": "cfeeae59.webp", "08d278c9": "08d278c9.webp", "cc5293e9": "cc5293e9.webp", "00ed75c0": "00ed75c0.webp", "737fcf0d": "737fcf0d.webp", "d1098e28": "d1098e28.webp", "fccaed6b": "fccaed6b.webp", "04825ab7": "04825ab7.webp", "9f11fb36": "9f11fb36.webp", "1818c0b0": "1818c0b0.webp", "fd80fc06": "fd80fc06.webp", "fe24cdc6": "fe24cdc6.webp", "5002f3c2": "5002f3c2.webp", "a1accb5b": "a1accb5b.webp", "d1475779": "d1475779.webp", "8b92daf9": "8b92daf9.webp", "9e03257b": "9e03257b.webp", "84ee8e9d": "84ee8e9d.webp", "73eea61d": "73eea61d.webp", "710d33cc": "710d33cc.webp", "859db3f7": "859db3f7.webp", "354020c0": "354020c0.webp", "607172c1": "607172c1.webp", "aad5bc13": "aad5bc13.webp", "6e2848e9": "6e2848e9.webp", "a1924c9f": "a1924c9f.webp", "927fea02": "927fea02.webp", "05f741e8": "05f741e8.webp", "2ddf8c86": "2ddf8c86.webp", "f47a6891": "f47a6891.webp", "06696574": "06696574.webp", "0576a387": "0576a387.webp", "afec31f7": "afec31f7.webp", "afe83b21": "afe83b21.webp", "be187059": "be187059.webp", "c208277b": "c208277b.webp", "0bfe47d6": "0bfe47d6.webp", "27beb629": "27beb629.webp", "2409216d": "2409216d.webp", "64ff091d": "64ff091d.webp", "e267d1a5": "e267d1a5.webp", "fa84d731": "fa84d731.webp", "b01fc55e": "b01fc55e.webp", "547c9aad": "547c9aad.webp", "2386ed1e": "2386ed1e.webp", "9620b650": "9620b650.webp", "b20d34fa": "b20d34fa.webp", "63f9861f": "63f9861f.webp", "ad50f310": "ad50f310.webp", "5c224020": "5c224020.webp", "2818b4d5": "2818b4d5.webp", "92d49f09": "92d49f09.webp", "e5492154": "e5492154.webp", "207bb5a6": "207bb5a6.webp", "a2a324e0": "a2a324e0.webp", "2fe9115f": "2fe9115f.webp", "0f9541fc": "0f9541fc.webp", "1e26823b": "1e26823b.webp", "7ee1e95e": "7ee1e95e.webp", "cfb97261": "cfb97261.webp", "3217f2a3": "3217f2a3.webp", "f30e447a": "f30e447a.webp", "852b69fb": "852b69fb.webp", "b6e73abe": "b6e73abe.webp", "c61b5df9": "c61b5df9.webp", "7f665ec1": "7f665ec1.webp", "77af6ceb": "77af6ceb.webp", "6d5b6c00": "6d5b6c00.webp", "7c16839d": "7c16839d.webp", "e764944e": "e764944e.webp", "399ce8f8": "399ce8f8.webp", "85c926d0": "85c926d0.webp", "7f72bf1e": "7f72bf1e.webp", "1df26c50": "1df26c50.webp", "e52253cd": "e52253cd.webp", "626cc7c5": "626cc7c5.webp", "43ecddc4": "43ecddc4.webp", "6718ece9": "6718ece9.webp", "54724fde": "54724fde.webp", "cd1a8275": "cd1a8275.webp", "68e3a93c": "68e3a93c.webp", "f6aa0099": "f6aa0099.webp", "9bcf915c": "9bcf915c.webp", "0ade0161": "0ade0161.webp", "c354be41": "c354be41.webp", "9867d25c": "9867d25c.webp", "626efa6b": "626efa6b.webp", "285d009c": "285d009c.webp", "34b99e92": "34b99e92.webp", "a6fe4c97": "a6fe4c97.webp", "048c06f9": "048c06f9.webp", "92494fa6": "92494fa6.webp", "1d696f2b": "1d696f2b.webp", "7d526eb7": "7d526eb7.webp", "08df1e8a": "08df1e8a.webp", "c8d7da0b": "c8d7da0b.webp", "9cd763ef": "9cd763ef.webp", "84ee16b4": "84ee16b4.webp", "53ebd337": "53ebd337.webp", "b5d79c5d": "b5d79c5d.webp", "57e7a7c6": "57e7a7c6.webp", "3968ce36": "3968ce36.webp", "b10b33f5": "b10b33f5.webp", "40775d2d": "40775d2d.webp", "42c3cbe9": "42c3cbe9.webp"};
+window.BAKED = {"a1f9044e": "a1f9044e.webp", "a82cdd39": "a82cdd39.webp", "1fb78fa0": "1fb78fa0.webp", "2fccaa46": "2fccaa46.webp", "2b4def45": "2b4def45.webp", "61e4b434": "61e4b434.webp", "2f3361cb": "2f3361cb.webp", "5fe30de5": "5fe30de5.webp", "2f9eac17": "2f9eac17.webp", "f4a5aa7c": "f4a5aa7c.webp", "38a61d82": "38a61d82.webp", "0b6d5850": "0b6d5850.webp", "a0472d62": "a0472d62.webp", "8fb85b5f": "8fb85b5f.webp", "47303142": "47303142.webp", "e8abb9cc": "e8abb9cc.webp", "6560b54b": "6560b54b.webp", "dfd0994b": "dfd0994b.webp", "637b3242": "637b3242.webp", "9a8e7995": "9a8e7995.webp", "d558d360": "d558d360.webp", "b60600e6": "b60600e6.webp", "67b96c62": "67b96c62.webp", "e07c2616": "e07c2616.webp", "68aacc3b": "68aacc3b.webp", "26ce673f": "26ce673f.webp", "1927ca5f": "1927ca5f.webp", "00b9c591": "00b9c591.webp", "38efed4a": "38efed4a.webp", "4fe02087": "4fe02087.webp", "91989f79": "91989f79.webp", "50555d75": "50555d75.webp", "00691678": "00691678.webp", "7db58c86": "7db58c86.webp", "430e8217": "430e8217.webp", "325e0ec0": "325e0ec0.webp", "b18f7823": "b18f7823.webp", "dd67ea8f": "dd67ea8f.webp", "052d3885": "052d3885.webp", "b31a1c3e": "b31a1c3e.webp", "0e0bbf87": "0e0bbf87.webp", "aa69cfd0": "aa69cfd0.webp", "a55d2d0b": "a55d2d0b.webp", "f24ca299": "f24ca299.webp", "8fa5a67a": "8fa5a67a.webp", "df4c9f52": "df4c9f52.webp", "15348a3e": "15348a3e.webp", "66522ec1": "66522ec1.webp", "8c773887": "8c773887.webp", "01ece229": "01ece229.webp", "afce0caf": "afce0caf.webp", "249d4211": "249d4211.webp", "268183d8": "268183d8.webp", "89dd7be0": "89dd7be0.webp", "3d022f6e": "3d022f6e.webp", "ad77d9d1": "ad77d9d1.webp", "17cb9a67": "17cb9a67.webp", "f44de40f": "f44de40f.webp", "49d81387": "49d81387.webp", "7f6aeb8e": "7f6aeb8e.webp", "90c16dfc": "90c16dfc.webp", "c8022302": "c8022302.webp", "c3ae56b8": "c3ae56b8.webp", "0995fa4a": "0995fa4a.webp", "65b40bba": "65b40bba.webp", "890768cc": "890768cc.webp", "45adb00b": "45adb00b.webp", "bd410b97": "bd410b97.webp", "07e43fe2": "07e43fe2.webp", "893c17b4": "893c17b4.webp", "96ed815a": "96ed815a.webp", "d88870bd": "d88870bd.webp", "aae7782d": "aae7782d.webp", "9c2a38c7": "9c2a38c7.webp", "4bb38ff7": "4bb38ff7.webp", "92d8cc94": "92d8cc94.webp", "e0aa53c1": "e0aa53c1.webp", "bd496b6b": "bd496b6b.webp", "b1b68679": "b1b68679.webp", "6bb05552": "6bb05552.webp", "a4c7fe84": "a4c7fe84.webp", "49216877": "49216877.webp", "87b38e88": "87b38e88.webp", "fb74c845": "fb74c845.webp", "21871651": "21871651.webp", "048622bd": "048622bd.webp", "b10b1ba3": "b10b1ba3.webp", "76af3a6a": "76af3a6a.webp", "5e199298": "5e199298.webp", "02233c08": "02233c08.webp", "bbcfa223": "bbcfa223.webp", "ae02425a": "ae02425a.webp", "22b330d8": "22b330d8.webp", "b244328f": "b244328f.webp", "528517ce": "528517ce.webp", "bf067038": "bf067038.webp", "f00e0a82": "f00e0a82.webp", "5591793f": "5591793f.webp", "41acda97": "41acda97.webp", "e399a941": "e399a941.webp", "0a0d0d5b": "0a0d0d5b.webp", "bee14083": "bee14083.webp", "bdbf9ccc": "bdbf9ccc.webp", "2e7edc08": "2e7edc08.webp", "d09825d1": "d09825d1.webp", "a49022ab": "a49022ab.webp", "abc36243": "abc36243.webp", "c549a7dc": "c549a7dc.webp", "c72a7a0e": "c72a7a0e.webp", "ee7be279": "ee7be279.webp", "9a93ee7b": "9a93ee7b.webp", "b4cfc9e6": "b4cfc9e6.webp", "8084dbe5": "8084dbe5.webp", "9e818400": "9e818400.webp", "b47df80a": "b47df80a.webp", "cda48047": "cda48047.webp", "c831602c": "c831602c.webp", "de04d2a6": "de04d2a6.webp", "b624a6da": "b624a6da.webp", "b4b2a03f": "b4b2a03f.webp", "f4f12b0b": "f4f12b0b.webp", "cb722cbc": "cb722cbc.webp", "019a6eb5": "019a6eb5.webp", "5ce62f06": "5ce62f06.webp", "718869be": "718869be.webp", "cfeeae59": "cfeeae59.webp", "08d278c9": "08d278c9.webp", "cc5293e9": "cc5293e9.webp", "00ed75c0": "00ed75c0.webp", "737fcf0d": "737fcf0d.webp", "d1098e28": "d1098e28.webp", "fccaed6b": "fccaed6b.webp", "04825ab7": "04825ab7.webp", "9f11fb36": "9f11fb36.webp", "1818c0b0": "1818c0b0.webp", "fd80fc06": "fd80fc06.webp", "fe24cdc6": "fe24cdc6.webp", "5002f3c2": "5002f3c2.webp", "a1accb5b": "a1accb5b.webp", "d1475779": "d1475779.webp", "8b92daf9": "8b92daf9.webp", "9e03257b": "9e03257b.webp", "84ee8e9d": "84ee8e9d.webp", "73eea61d": "73eea61d.webp", "710d33cc": "710d33cc.webp", "859db3f7": "859db3f7.webp", "354020c0": "354020c0.webp", "607172c1": "607172c1.webp", "aad5bc13": "aad5bc13.webp", "6e2848e9": "6e2848e9.webp", "a1924c9f": "a1924c9f.webp", "927fea02": "927fea02.webp", "05f741e8": "05f741e8.webp", "2ddf8c86": "2ddf8c86.webp", "f47a6891": "f47a6891.webp", "06696574": "06696574.webp", "0576a387": "0576a387.webp", "afec31f7": "afec31f7.webp", "afe83b21": "afe83b21.webp", "be187059": "be187059.webp", "c208277b": "c208277b.webp", "0bfe47d6": "0bfe47d6.webp", "27beb629": "27beb629.webp", "2409216d": "2409216d.webp", "64ff091d": "64ff091d.webp", "e267d1a5": "e267d1a5.webp", "fa84d731": "fa84d731.webp", "b01fc55e": "b01fc55e.webp", "547c9aad": "547c9aad.webp", "2386ed1e": "2386ed1e.webp", "9620b650": "9620b650.webp", "b20d34fa": "b20d34fa.webp", "63f9861f": "63f9861f.webp", "ad50f310": "ad50f310.webp", "a6f4b7ba": "a6f4b7ba.webp", "98be03ca": "98be03ca.webp", "5c224020": "5c224020.webp", "2818b4d5": "2818b4d5.webp", "92d49f09": "92d49f09.webp", "e5492154": "e5492154.webp", "207bb5a6": "207bb5a6.webp", "a2a324e0": "a2a324e0.webp", "2fe9115f": "2fe9115f.webp", "0f9541fc": "0f9541fc.webp", "1e26823b": "1e26823b.webp", "7ee1e95e": "7ee1e95e.webp", "cfb97261": "cfb97261.webp", "3217f2a3": "3217f2a3.webp", "f30e447a": "f30e447a.webp", "852b69fb": "852b69fb.webp", "b6e73abe": "b6e73abe.webp", "c61b5df9": "c61b5df9.webp", "7f665ec1": "7f665ec1.webp", "77af6ceb": "77af6ceb.webp", "6d5b6c00": "6d5b6c00.webp", "7c16839d": "7c16839d.webp", "e764944e": "e764944e.webp", "399ce8f8": "399ce8f8.webp", "85c926d0": "85c926d0.webp", "7f72bf1e": "7f72bf1e.webp", "1df26c50": "1df26c50.webp", "e52253cd": "e52253cd.webp", "626cc7c5": "626cc7c5.webp", "43ecddc4": "43ecddc4.webp", "6718ece9": "6718ece9.webp", "54724fde": "54724fde.webp", "cd1a8275": "cd1a8275.webp", "68e3a93c": "68e3a93c.webp", "f6aa0099": "f6aa0099.webp", "9bcf915c": "9bcf915c.webp", "0ade0161": "0ade0161.webp", "c354be41": "c354be41.webp", "9867d25c": "9867d25c.webp", "626efa6b": "626efa6b.webp", "285d009c": "285d009c.webp", "34b99e92": "34b99e92.webp", "a6fe4c97": "a6fe4c97.webp", "048c06f9": "048c06f9.webp", "92494fa6": "92494fa6.webp", "1d696f2b": "1d696f2b.webp", "7d526eb7": "7d526eb7.webp", "08df1e8a": "08df1e8a.webp", "c8d7da0b": "c8d7da0b.webp", "9cd763ef": "9cd763ef.webp", "84ee16b4": "84ee16b4.webp", "53ebd337": "53ebd337.webp", "b5d79c5d": "b5d79c5d.webp", "57e7a7c6": "57e7a7c6.webp", "3968ce36": "3968ce36.webp", "b10b33f5": "b10b33f5.webp", "40775d2d": "40775d2d.webp", "42c3cbe9": "42c3cbe9.webp"};
diff --git a/site/little-red-riding-hood/img/sets/grandmaOut/house-soft.webp b/site/little-red-riding-hood/img/sets/grandmaOut/house-soft.webp
index 74c85ca..dbd99df 100644
Binary files a/site/little-red-riding-hood/img/sets/grandmaOut/house-soft.webp and b/site/little-red-riding-hood/img/sets/grandmaOut/house-soft.webp differ
diff --git a/site/little-red-riding-hood/img/sets/grandmaOut/house.webp b/site/little-red-riding-hood/img/sets/grandmaOut/house.webp
index fc9b950..218f70e 100644
Binary files a/site/little-red-riding-hood/img/sets/grandmaOut/house.webp and b/site/little-red-riding-hood/img/sets/grandmaOut/house.webp differ
diff --git a/site/little-red-riding-hood/index.html b/site/little-red-riding-hood/index.html
index 72e745c..c420301 100644
--- a/site/little-red-riding-hood/index.html
+++ b/site/little-red-riding-hood/index.html
@@ -63,7 +63,7 @@
<span class="tag">Paper-cutout stop motion</span>
<h1>Little Red Riding Hood</h1>
<p class="lede">Our second picture book, and the opposite bet to <a href="../three-little-pigs/">The Three Little Pigs</a>. No image model at all: every character, tree and cake is paper drawn in code, pinned at the joints and shot like a stop-motion film. It cost nothing in pictures, and any new movement is just a few more lines of code.</p>
- <a class="watch" href="ch01/">▶ Watch the film <small>4 minutes · narrated · music · tap and name things in the meadow</small></a>
+ <a class="watch" href="ch01/">▶ Watch the film <small>4 minutes · narrated · music · listen and find in the meadow</small></a>
</div>
</header>
@@ -79,7 +79,7 @@
<h2>What we set out to do</h2>
<p>The Three Little Pigs showed that an image model can paint a lovely world, but every new action needed a new round of drawings, and the characters had to be fought into consistency. This time we asked the opposite question: what if the characters stay simple shapes drawn in code, and we lean into that, so that they look like paper puppets on purpose?</p>
- <p>After the wolf runs off, the film stops in the meadow for children learning English: tap the sun, a cloud, a tree, a flower, the basket, the bird or the butterfly, and its name appears in big letters and is read aloud. Continue is always there; when everything has been tapped, it lights up.</p>
+ <p>After the wolf runs off, the film stops in the meadow for children learning English. Little Red Riding Hood asks for one thing at a time ("Can you find a flower for Grandma? Touch it!"), and every flower, tree, cloud and creature answers a tap with its name. Nothing is ever called wrong: each miss helps a little more, the thing she wants wiggles and paper stars circle it, and if nobody finds it she points it out herself. A flower you find flies into her bunch for Grandma.</p>
<p>The story is the Brothers Grimm version (1857), retold lightly: the wolf still talks his way into Grandma's house, but Grandma hides in the wardrobe, nobody gets eaten, and the wolf leaves through the window in Grandma's nightcap.</p>
<h2>Making it look like stop motion</h2>
@@ -102,13 +102,13 @@
<figure><img src="making/walk.webp" width="1400" height="350" alt="Six frames of the wolf's walk." loading="lazy"><figcaption>Six frames of the wolf's walk.</figcaption></figure>
<h2>Sets and the camera</h2>
- <p>Eight sets, each drawn as layers of paper: sky, distant hills, trees, the building, and plants close to the lens. As the camera moves, the layers slide past each other at different speeds, and in close-ups the background goes soft. Windows and doorways are real holes, so we can see people inside a house from outside. Reverse shots get their own sets, so the background behind a face is always what that person is looking at.</p>
+ <p>Nine sets, each drawn as layers of paper: sky, distant hills, trees, the building, and plants close to the lens. As the camera moves, the layers slide past each other at different speeds, and in close-ups the background goes soft. Windows and doorways are real holes, so we can see people inside a house from outside. Reverse shots get their own sets, so the background behind a face is always what that person is looking at.</p>
<figure><img src="making/sets.webp" width="1400" height="395" alt="Eight sets: Mother's cottage, the garden, two woods, Grandma's cottage, her bedroom and two reverse angles." loading="lazy"><figcaption>Mother's cottage and garden, the woods both ways, Grandma's cottage, her bedroom, and the bedroom seen from the bed and from the door.</figcaption></figure>
<figure><img src="making/layers.webp" width="1400" height="172" alt="Grandma's cottage taken apart into sky, far, mid, inside and house layers." loading="lazy"><figcaption>Grandma's cottage, layer by layer. "Inside" is the room seen through the door and window holes.</figcaption></figure>
<p>Shots change as in a film: wide shots to show where we are, two-shots for conversations, a close-up for whoever speaks, and each question to "Grandma" closer than the last. At a few scene changes, a big tree trunk sweeps across the frame, as in a paper theatre.</p>
<h2>Voices, music and sound</h2>
- <p>Six voices (the narrator, Little Red Riding Hood, Mother, the wolf, Grandma and the woodcutter) come from free text-to-speech, and every line's word timings drive the mouths. The music is the Three Little Pigs' score, reused. The six sound effects are synthesized in code from noise and tones: knocking, the axe, the wardrobe door, the umbrella on the wolf's head, a thud, and the window breaking.</p>
+ <p>Six voices (the narrator, Little Red Riding Hood, Mother, the wolf, Grandma and the woodcutter) are ElevenLabs voices that act: the wolf squeaks like a little girl at Grandma's door, quavers like an old lady in bed, and drops into his own roar on "EAT". The words in each line are timed by listening to it, and those times drive the mouths and the captions. The music is the Three Little Pigs' score, reused. Every sound effect is synthesized in code: beds for the woods, the meadow and the bedroom, footsteps and paws, the knock, the latch and the creaking door, the axe (muffled when we are indoors), the wardrobe slam, the sting before "EAT", the umbrella on the wolf's head and the window breaking.</p>
<h2>The rescue that didn't make sense</h2>
<p>In the first cut, the woodcutter appeared from nowhere, Grandma suddenly stood outside the wardrobe, and the wolf flew out of the window as if Grandma had superpowers. Every shot looked fine. The story didn't hold together. We rewrote it so that each moment causes the next:</p>
@@ -129,18 +129,28 @@
<dt>Puppets</dt><dd>Five characters, side and front sets each, with eyes, brows, nine mouths and fingers that stay live while the paper pieces are baked.</dd>
<dt>Sets</dt><dd>Eight layered sets, each with a blurred copy for close-ups.</dd>
<dt>Props</dt><dd>Basket with cake and apple juice, a bouquet that grows as she picks it, Grandma's nightcap and glasses, umbrella, axe and chopping block, quilt, doors that swing, window glass that shatters into falling shards, the spilled flowers.</dd>
- <dt>Sound</dt><dd>Six voices, nine mouth shapes per line, four music cues, six synthesized sound effects.</dd>
- <dt>Tools</dt><dd>A set drawer and baker; a puppet baker that turns all 154 paper pieces into images so the film starts at once; a sound synthesizer; voice, mouth and audio-joining scripts reused from the pigs; a cast lab for posing puppets; and contact sheets, a few frames of every shot side by side, checked before anyone else watched.</dd>
+ <dt>Sound</dt><dd>Six acted voices, nine mouth shapes per line, four music cues, three synthesized beds and about twenty effects.</dd>
+ <dt>Tools</dt><dd>A set drawer and baker; a puppet baker that turns all 230 paper pieces into images so the film starts at once; a sound synthesizer; voice, mouth and audio-joining scripts reused from the pigs; a cast lab for posing puppets; and contact sheets, a few frames of every shot side by side, checked before anyone else watched.</dd>
</dl>
<h2>The numbers</h2>
<div class="numbers">
<div><b>~3½ min</b><span>11 scenes</span></div>
<div><b>5 · 8</b><span>puppets · sets</span></div>
- <div><b>154</b><span>pieces of paper</span></div>
+ <div><b>230</b><span>pieces of paper</span></div>
<div><b>$0</b><span>for pictures</span></div>
</div>
+ <h2>The second version</h2>
+ <p>Twelve days later, <a href="../little-horse/">The Little Horse Crosses the River</a> set a higher bar, and we brought this film up to it. The script, the cast and the paper look stayed; the voices were redone with actors' delivery, and every scene was restaged by a team of agents, each taking one scene, with a director reviewing the whole film twice:</p>
+ <ul>
+ <li><b>The turning point is seen.</b> The wolf points at a real meadow; she looks at the path, a picture of Mother's raised finger flickers past, and then we see her foot step off the path. Before, she was sixty pixels high and never left it.</li>
+ <li><b>Every story point gets its shot.</b> The basket with the cake and juice, the three oaks (now three whole trees you can count), Grandma's cap and glasses left on the pillow, the wide-open door, the ears, the eyes and the teeth.</li>
+ <li><b>Grandma's escape reads.</b> We follow her hop into the wardrobe, and the wolf has his back to it, so a child can see why he never opens it.</li>
+ <li><b>The questions build.</b> She gets more worried each time, the music stops, and only then: "EAT".</li>
+ <li><b>The meadow stop became a game.</b> See above: the character asks, the picture answers.</li>
+ </ul>
+
<h2>Where this leaves us</h2>
<div class="verdict">
<p><b>New actions are cheap.</b> The pigs could only do what had been drawn. Here, the umbrella blow, the duck and the dive through the window were each a few lines, added on the last evening.</p>
@@ -150,6 +160,6 @@
<p>The limits are real too. The look is deliberately simple, the paper effect has to be baked ahead of time to play smoothly, and with no painter to hide behind, the story itself has to hold up. We plan to build the Papermorph Skill's picture-book method on this.</p>
<p><a class="watch" href="ch01/">▶ Watch the film</a></p>
</main>
-<footer>Story: the Brothers Grimm's <i>Little Red Cap</i> (1857), retold for this film. No image model: everything you see is drawn in code. Music from Google Lyria (made for The Three Little Pigs), voices with Microsoft Edge text-to-speech, sound effects synthesized. Part of <a href="../">Papermorph</a>.</footer>
+<footer>Story: the Brothers Grimm's <i>Little Red Cap</i> (1857), retold for this film. No image model: everything you see is drawn in code. Music from Google Lyria (made for The Three Little Pigs), voices by ElevenLabs (v4), sound effects synthesized. Part of <a href="../">Papermorph</a>.</footer>
</body>
</html>