@amg555/frameforge-mcp 2.7.3 → 2.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (565) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/AGENTS.md +33 -0
  3. package/CHANGELOG.md +49 -0
  4. package/CLAUDE.md +17 -6
  5. package/GEMINI.md +63 -0
  6. package/README.md +216 -426
  7. package/START_HERE.md +4 -2
  8. package/package.json +5 -3
  9. package/plugins/ai-video-editor/README.md +32 -0
  10. package/plugins/ai-video-editor/SKILL.md +152 -0
  11. package/plugins/ai-video-editor/assets/fonts/fonts.css +2409 -0
  12. package/plugins/ai-video-editor/assets/fonts/ttf/anton-400.ttf +0 -0
  13. package/plugins/ai-video-editor/assets/fonts/ttf/archivo-800.ttf +0 -0
  14. package/plugins/ai-video-editor/assets/fonts/ttf/cabin-sketch-700.ttf +0 -0
  15. package/plugins/ai-video-editor/assets/fonts/ttf/dm-sans-700.ttf +0 -0
  16. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-600.ttf +0 -0
  17. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-700.ttf +0 -0
  18. package/plugins/ai-video-editor/assets/fonts/ttf/fredoka-700.ttf +0 -0
  19. package/plugins/ai-video-editor/assets/fonts/ttf/inter-700.ttf +0 -0
  20. package/plugins/ai-video-editor/assets/fonts/ttf/inter-800.ttf +0 -0
  21. package/plugins/ai-video-editor/assets/fonts/ttf/inter-tight-800.ttf +0 -0
  22. package/plugins/ai-video-editor/assets/fonts/ttf/kalam-700.ttf +0 -0
  23. package/plugins/ai-video-editor/assets/fonts/ttf/noto-sans-devanagari-700.ttf +0 -0
  24. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-400-normal.woff2 +0 -0
  25. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-500-normal.woff2 +0 -0
  26. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-600-normal.woff2 +0 -0
  27. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-700-normal.woff2 +0 -0
  28. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-800-normal.woff2 +0 -0
  29. package/plugins/ai-video-editor/engine/hidpi.js +117 -0
  30. package/plugins/ai-video-editor/engine/page.html +43 -0
  31. package/plugins/ai-video-editor/engine/player.js +145 -0
  32. package/plugins/ai-video-editor/references/example-story-warm-canvas.js +95 -0
  33. package/plugins/ai-video-editor/references/story-guide.md +112 -0
  34. package/plugins/ai-video-editor/requirements.txt +4 -0
  35. package/plugins/ai-video-editor/styles/chalk-talk/base.js +490 -0
  36. package/plugins/ai-video-editor/styles/chalk-talk/style.json +14 -0
  37. package/plugins/ai-video-editor/styles/chalk-talk/style.md +41 -0
  38. package/plugins/ai-video-editor/styles/clean-tech/base.js +447 -0
  39. package/plugins/ai-video-editor/styles/clean-tech/style.json +15 -0
  40. package/plugins/ai-video-editor/styles/clean-tech/style.md +38 -0
  41. package/plugins/ai-video-editor/styles/creator-motion-graphics/base.js +698 -0
  42. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.json +16 -0
  43. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.md +39 -0
  44. package/plugins/ai-video-editor/styles/data-story/base.js +432 -0
  45. package/plugins/ai-video-editor/styles/data-story/style.json +14 -0
  46. package/plugins/ai-video-editor/styles/data-story/style.md +38 -0
  47. package/plugins/ai-video-editor/styles/index.json +103 -0
  48. package/plugins/ai-video-editor/styles/pop-info/base.js +570 -0
  49. package/plugins/ai-video-editor/styles/pop-info/style.json +13 -0
  50. package/plugins/ai-video-editor/styles/pop-info/style.md +37 -0
  51. package/plugins/ai-video-editor/styles/software-walkthrough/base.js +544 -0
  52. package/plugins/ai-video-editor/styles/software-walkthrough/style.json +15 -0
  53. package/plugins/ai-video-editor/styles/software-walkthrough/style.md +38 -0
  54. package/plugins/ai-video-editor/styles/warm-canvas/base.js +610 -0
  55. package/plugins/ai-video-editor/styles/warm-canvas/style.json +14 -0
  56. package/plugins/ai-video-editor/styles/warm-canvas/style.md +37 -0
  57. package/plugins/aiinsight-shorts/CHANGELOG.md +6 -0
  58. package/plugins/aiinsight-shorts/README.md +43 -0
  59. package/plugins/aiinsight-shorts/SKILL.md +138 -0
  60. package/plugins/aiinsight-shorts/styles/deep-dive/STYLE.md +58 -0
  61. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/cues.json +140 -0
  62. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/lines.json +67 -0
  63. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.json +614 -0
  64. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.txt +102 -0
  65. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  66. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  67. package/plugins/aiinsight-shorts/styles/deep-dive/example/index.html +17 -0
  68. package/plugins/aiinsight-shorts/styles/deep-dive/example/script.json +27 -0
  69. package/plugins/aiinsight-shorts/styles/deep-dive/example/sheet.html +11 -0
  70. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  71. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  72. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  73. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  74. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  75. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  76. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  77. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  78. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  79. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/main.js +56 -0
  80. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  81. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/shots.js +136 -0
  82. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  83. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  84. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  85. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  86. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  87. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  88. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  89. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  90. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  91. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  92. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  93. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  94. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  95. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  96. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  97. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  98. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  99. package/plugins/aiinsight-shorts/styles/deep-dive/style-sheet.png +0 -0
  100. package/plugins/aiinsight-shorts/styles/inside-out/STYLE.md +97 -0
  101. package/plugins/aiinsight-shorts/styles/inside-out/example/data/cues.json +178 -0
  102. package/plugins/aiinsight-shorts/styles/inside-out/example/data/lines.json +73 -0
  103. package/plugins/aiinsight-shorts/styles/inside-out/example/data/words.json +662 -0
  104. package/plugins/aiinsight-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  105. package/plugins/aiinsight-shorts/styles/inside-out/example/index.html +17 -0
  106. package/plugins/aiinsight-shorts/styles/inside-out/example/script.json +26 -0
  107. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  108. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  109. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  110. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  111. package/plugins/aiinsight-shorts/styles/inside-out/example/src/main.js +62 -0
  112. package/plugins/aiinsight-shorts/styles/inside-out/example/src/shots.js +195 -0
  113. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  114. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/mix.py +172 -0
  115. package/plugins/aiinsight-shorts/styles/inside-out/style-sheet.png +0 -0
  116. package/plugins/aiinsight-shorts/styles/night-file/STYLE.md +36 -0
  117. package/plugins/aiinsight-shorts/styles/night-file/example/data/cues.json +146 -0
  118. package/plugins/aiinsight-shorts/styles/night-file/example/data/lines.json +73 -0
  119. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.json +572 -0
  120. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.txt +95 -0
  121. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  122. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  123. package/plugins/aiinsight-shorts/styles/night-file/example/index.html +18 -0
  124. package/plugins/aiinsight-shorts/styles/night-file/example/script.json +26 -0
  125. package/plugins/aiinsight-shorts/styles/night-file/example/sheet.html +13 -0
  126. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/board.js +62 -0
  127. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/captions.js +49 -0
  128. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/engine.js +65 -0
  129. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/human.js +128 -0
  130. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/kit.js +151 -0
  131. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/lib.js +44 -0
  132. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  133. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  134. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/timing.js +23 -0
  135. package/plugins/aiinsight-shorts/styles/night-file/example/src/main.js +56 -0
  136. package/plugins/aiinsight-shorts/styles/night-file/example/src/sheet.js +86 -0
  137. package/plugins/aiinsight-shorts/styles/night-file/example/src/shots.js +130 -0
  138. package/plugins/aiinsight-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  139. package/plugins/aiinsight-shorts/styles/night-file/example/tools/mix.py +172 -0
  140. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  141. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  142. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  143. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  144. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  145. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  146. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  147. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  148. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  149. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  150. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  151. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  152. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  153. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  154. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  155. package/plugins/aiinsight-shorts/styles/night-file/style-sheet.png +0 -0
  156. package/plugins/aiinsight-shorts/styles/paper-atlas/STYLE.md +30 -0
  157. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  158. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  159. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.json +614 -0
  160. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  161. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  162. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  163. package/plugins/aiinsight-shorts/styles/paper-atlas/example/index.html +15 -0
  164. package/plugins/aiinsight-shorts/styles/paper-atlas/example/script.json +26 -0
  165. package/plugins/aiinsight-shorts/styles/paper-atlas/example/sheet.html +12 -0
  166. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  167. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  168. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  169. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  170. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  171. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/main.js +62 -0
  172. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  173. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  174. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  175. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  176. package/plugins/aiinsight-shorts/styles/paper-atlas/style-sheet.png +0 -0
  177. package/plugins/aiinsight-shorts/styles/stick-story/STYLE.md +32 -0
  178. package/plugins/aiinsight-shorts/styles/stick-story/example/data/cues.json +182 -0
  179. package/plugins/aiinsight-shorts/styles/stick-story/example/data/lines.json +79 -0
  180. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.json +662 -0
  181. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.txt +110 -0
  182. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  183. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  184. package/plugins/aiinsight-shorts/styles/stick-story/example/index.html +13 -0
  185. package/plugins/aiinsight-shorts/styles/stick-story/example/script.json +27 -0
  186. package/plugins/aiinsight-shorts/styles/stick-story/example/sheet.html +10 -0
  187. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/board.js +62 -0
  188. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  189. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  190. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  191. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  192. package/plugins/aiinsight-shorts/styles/stick-story/example/src/main.js +62 -0
  193. package/plugins/aiinsight-shorts/styles/stick-story/example/src/sheet.js +64 -0
  194. package/plugins/aiinsight-shorts/styles/stick-story/example/src/shots.js +148 -0
  195. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  196. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/mix.py +172 -0
  197. package/plugins/aiinsight-shorts/styles/stick-story/style-sheet.png +0 -0
  198. package/plugins/aiinsight-shorts/styles/tall-tale/STYLE.md +51 -0
  199. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/cues.json +271 -0
  200. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/lines.json +127 -0
  201. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.json +908 -0
  202. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.txt +151 -0
  203. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  204. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  205. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  206. package/plugins/aiinsight-shorts/styles/tall-tale/example/index.html +19 -0
  207. package/plugins/aiinsight-shorts/styles/tall-tale/example/script.json +37 -0
  208. package/plugins/aiinsight-shorts/styles/tall-tale/example/sheet.html +13 -0
  209. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  210. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  211. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  212. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  213. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  214. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  215. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  216. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  217. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/main.js +56 -0
  218. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  219. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/shots.js +377 -0
  220. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  221. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  222. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  223. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  224. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  225. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  226. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  227. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  228. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  229. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  230. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  231. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  232. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  233. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  234. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  235. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  236. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  237. package/plugins/aiinsight-shorts/styles/tall-tale/style-sheet.png +0 -0
  238. package/plugins/faceless-shorts/README.md +34 -0
  239. package/plugins/faceless-shorts/SKILL.md +124 -0
  240. package/plugins/faceless-shorts/styles/deep-dive/STYLE.md +58 -0
  241. package/plugins/faceless-shorts/styles/deep-dive/example/data/cues.json +140 -0
  242. package/plugins/faceless-shorts/styles/deep-dive/example/data/lines.json +67 -0
  243. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.json +614 -0
  244. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.txt +102 -0
  245. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  246. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  247. package/plugins/faceless-shorts/styles/deep-dive/example/index.html +16 -0
  248. package/plugins/faceless-shorts/styles/deep-dive/example/script.json +27 -0
  249. package/plugins/faceless-shorts/styles/deep-dive/example/sheet.html +10 -0
  250. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  251. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  252. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  253. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  254. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  255. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  256. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  257. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  258. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  259. package/plugins/faceless-shorts/styles/deep-dive/example/src/main.js +56 -0
  260. package/plugins/faceless-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  261. package/plugins/faceless-shorts/styles/deep-dive/example/src/shots.js +136 -0
  262. package/plugins/faceless-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  263. package/plugins/faceless-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  264. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  265. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  266. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  267. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  268. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  269. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  270. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  271. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  272. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  273. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  274. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  275. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  276. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  277. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  278. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  279. package/plugins/faceless-shorts/styles/deep-dive/style-sheet.png +0 -0
  280. package/plugins/faceless-shorts/styles/inside-out/STYLE.md +97 -0
  281. package/plugins/faceless-shorts/styles/inside-out/example/data/cues.json +178 -0
  282. package/plugins/faceless-shorts/styles/inside-out/example/data/lines.json +73 -0
  283. package/plugins/faceless-shorts/styles/inside-out/example/data/words.json +662 -0
  284. package/plugins/faceless-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  285. package/plugins/faceless-shorts/styles/inside-out/example/index.html +16 -0
  286. package/plugins/faceless-shorts/styles/inside-out/example/script.json +26 -0
  287. package/plugins/faceless-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  288. package/plugins/faceless-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  289. package/plugins/faceless-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  290. package/plugins/faceless-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  291. package/plugins/faceless-shorts/styles/inside-out/example/src/main.js +62 -0
  292. package/plugins/faceless-shorts/styles/inside-out/example/src/shots.js +195 -0
  293. package/plugins/faceless-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  294. package/plugins/faceless-shorts/styles/inside-out/example/tools/mix.py +172 -0
  295. package/plugins/faceless-shorts/styles/inside-out/style-sheet.png +0 -0
  296. package/plugins/faceless-shorts/styles/night-file/STYLE.md +36 -0
  297. package/plugins/faceless-shorts/styles/night-file/example/data/cues.json +146 -0
  298. package/plugins/faceless-shorts/styles/night-file/example/data/lines.json +73 -0
  299. package/plugins/faceless-shorts/styles/night-file/example/data/words.json +572 -0
  300. package/plugins/faceless-shorts/styles/night-file/example/data/words.txt +95 -0
  301. package/plugins/faceless-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  302. package/plugins/faceless-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  303. package/plugins/faceless-shorts/styles/night-file/example/index.html +16 -0
  304. package/plugins/faceless-shorts/styles/night-file/example/script.json +26 -0
  305. package/plugins/faceless-shorts/styles/night-file/example/sheet.html +11 -0
  306. package/plugins/faceless-shorts/styles/night-file/example/src/core/board.js +62 -0
  307. package/plugins/faceless-shorts/styles/night-file/example/src/core/captions.js +49 -0
  308. package/plugins/faceless-shorts/styles/night-file/example/src/core/engine.js +65 -0
  309. package/plugins/faceless-shorts/styles/night-file/example/src/core/human.js +128 -0
  310. package/plugins/faceless-shorts/styles/night-file/example/src/core/kit.js +151 -0
  311. package/plugins/faceless-shorts/styles/night-file/example/src/core/lib.js +44 -0
  312. package/plugins/faceless-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  313. package/plugins/faceless-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  314. package/plugins/faceless-shorts/styles/night-file/example/src/core/timing.js +23 -0
  315. package/plugins/faceless-shorts/styles/night-file/example/src/main.js +56 -0
  316. package/plugins/faceless-shorts/styles/night-file/example/src/sheet.js +86 -0
  317. package/plugins/faceless-shorts/styles/night-file/example/src/shots.js +130 -0
  318. package/plugins/faceless-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  319. package/plugins/faceless-shorts/styles/night-file/example/tools/mix.py +172 -0
  320. package/plugins/faceless-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  321. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  322. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  323. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  324. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  325. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  326. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  327. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  328. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  329. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  330. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  331. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  332. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  333. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  334. package/plugins/faceless-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  335. package/plugins/faceless-shorts/styles/night-file/style-sheet.png +0 -0
  336. package/plugins/faceless-shorts/styles/paper-atlas/STYLE.md +30 -0
  337. package/plugins/faceless-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  338. package/plugins/faceless-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  339. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.json +614 -0
  340. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  341. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  342. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  343. package/plugins/faceless-shorts/styles/paper-atlas/example/index.html +13 -0
  344. package/plugins/faceless-shorts/styles/paper-atlas/example/script.json +26 -0
  345. package/plugins/faceless-shorts/styles/paper-atlas/example/sheet.html +10 -0
  346. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  347. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  348. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  349. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  350. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  351. package/plugins/faceless-shorts/styles/paper-atlas/example/src/main.js +62 -0
  352. package/plugins/faceless-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  353. package/plugins/faceless-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  354. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  355. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  356. package/plugins/faceless-shorts/styles/paper-atlas/style-sheet.png +0 -0
  357. package/plugins/faceless-shorts/styles/stick-story/STYLE.md +32 -0
  358. package/plugins/faceless-shorts/styles/stick-story/example/data/cues.json +182 -0
  359. package/plugins/faceless-shorts/styles/stick-story/example/data/lines.json +79 -0
  360. package/plugins/faceless-shorts/styles/stick-story/example/data/words.json +662 -0
  361. package/plugins/faceless-shorts/styles/stick-story/example/data/words.txt +110 -0
  362. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  363. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  364. package/plugins/faceless-shorts/styles/stick-story/example/index.html +12 -0
  365. package/plugins/faceless-shorts/styles/stick-story/example/script.json +27 -0
  366. package/plugins/faceless-shorts/styles/stick-story/example/sheet.html +9 -0
  367. package/plugins/faceless-shorts/styles/stick-story/example/src/core/board.js +62 -0
  368. package/plugins/faceless-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  369. package/plugins/faceless-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  370. package/plugins/faceless-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  371. package/plugins/faceless-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  372. package/plugins/faceless-shorts/styles/stick-story/example/src/main.js +62 -0
  373. package/plugins/faceless-shorts/styles/stick-story/example/src/sheet.js +64 -0
  374. package/plugins/faceless-shorts/styles/stick-story/example/src/shots.js +148 -0
  375. package/plugins/faceless-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  376. package/plugins/faceless-shorts/styles/stick-story/example/tools/mix.py +172 -0
  377. package/plugins/faceless-shorts/styles/stick-story/style-sheet.png +0 -0
  378. package/plugins/faceless-shorts/styles/tall-tale/STYLE.md +51 -0
  379. package/plugins/faceless-shorts/styles/tall-tale/example/data/cues.json +271 -0
  380. package/plugins/faceless-shorts/styles/tall-tale/example/data/lines.json +127 -0
  381. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.json +908 -0
  382. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.txt +151 -0
  383. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  384. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  385. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  386. package/plugins/faceless-shorts/styles/tall-tale/example/index.html +17 -0
  387. package/plugins/faceless-shorts/styles/tall-tale/example/script.json +37 -0
  388. package/plugins/faceless-shorts/styles/tall-tale/example/sheet.html +11 -0
  389. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  390. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  391. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  392. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  393. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  394. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  395. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  396. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  397. package/plugins/faceless-shorts/styles/tall-tale/example/src/main.js +56 -0
  398. package/plugins/faceless-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  399. package/plugins/faceless-shorts/styles/tall-tale/example/src/shots.js +377 -0
  400. package/plugins/faceless-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  401. package/plugins/faceless-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  402. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  403. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  404. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  405. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  406. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  407. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  408. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  409. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  410. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  411. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  412. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  413. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  414. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  415. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  416. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  417. package/plugins/faceless-shorts/styles/tall-tale/style-sheet.png +0 -0
  418. package/plugins/motion-styles/LIBRARY.md +896 -0
  419. package/plugins/motion-styles/README.md +29 -0
  420. package/plugins/motion-styles/SKILL.md +70 -0
  421. package/plugins/motion-styles/catalog.json +2253 -0
  422. package/plugins/motion-styles/prompts/bio-glow.md +149 -0
  423. package/plugins/motion-styles/prompts/blueprint.md +145 -0
  424. package/plugins/motion-styles/prompts/breaking-desk.md +147 -0
  425. package/plugins/motion-styles/prompts/callout-kit.md +147 -0
  426. package/plugins/motion-styles/prompts/chalk-talk.md +153 -0
  427. package/plugins/motion-styles/prompts/chat-story.md +143 -0
  428. package/plugins/motion-styles/prompts/clay-diorama.md +149 -0
  429. package/plugins/motion-styles/prompts/clean-tech.md +147 -0
  430. package/plugins/motion-styles/prompts/comic-panels.md +145 -0
  431. package/plugins/motion-styles/prompts/cosmic-scale.md +147 -0
  432. package/plugins/motion-styles/prompts/creator-motion.md +149 -0
  433. package/plugins/motion-styles/prompts/data-city.md +149 -0
  434. package/plugins/motion-styles/prompts/data-story.md +147 -0
  435. package/plugins/motion-styles/prompts/deep-layers.md +147 -0
  436. package/plugins/motion-styles/prompts/doc-cinema.md +145 -0
  437. package/plugins/motion-styles/prompts/evidence-board.md +145 -0
  438. package/plugins/motion-styles/prompts/exploded-view.md +149 -0
  439. package/plugins/motion-styles/prompts/glass-icons.md +147 -0
  440. package/plugins/motion-styles/prompts/glitch-pack.md +145 -0
  441. package/plugins/motion-styles/prompts/globe-arcs.md +147 -0
  442. package/plugins/motion-styles/prompts/headline-backdrop.md +145 -0
  443. package/plugins/motion-styles/prompts/iso-cutaway.md +147 -0
  444. package/plugins/motion-styles/prompts/isotype.md +145 -0
  445. package/plugins/motion-styles/prompts/karaoke-subs.md +145 -0
  446. package/plugins/motion-styles/prompts/low-poly-atlas.md +149 -0
  447. package/plugins/motion-styles/prompts/lower-thirds.md +147 -0
  448. package/plugins/motion-styles/prompts/marker-board.md +145 -0
  449. package/plugins/motion-styles/prompts/market-tape.md +145 -0
  450. package/plugins/motion-styles/prompts/math-canvas.md +145 -0
  451. package/plugins/motion-styles/prompts/myth-or-fact.md +145 -0
  452. package/plugins/motion-styles/prompts/neon-line.md +145 -0
  453. package/plugins/motion-styles/prompts/paper-craft.md +145 -0
  454. package/plugins/motion-styles/prompts/parchment-map.md +147 -0
  455. package/plugins/motion-styles/prompts/physics-toybox.md +147 -0
  456. package/plugins/motion-styles/prompts/pixel-quest.md +145 -0
  457. package/plugins/motion-styles/prompts/podcast-clip.md +147 -0
  458. package/plugins/motion-styles/prompts/pop-info.md +145 -0
  459. package/plugins/motion-styles/prompts/product-turntable.md +149 -0
  460. package/plugins/motion-styles/prompts/punch-captions.md +145 -0
  461. package/plugins/motion-styles/prompts/quiz-countdown.md +145 -0
  462. package/plugins/motion-styles/prompts/quote-cinema.md +145 -0
  463. package/plugins/motion-styles/prompts/recipe-steps.md +145 -0
  464. package/plugins/motion-styles/prompts/rubber-hose-reel.md +145 -0
  465. package/plugins/motion-styles/prompts/shadow-puppets.md +145 -0
  466. package/plugins/motion-styles/prompts/size-lineup.md +149 -0
  467. package/plugins/motion-styles/prompts/software-walkthrough.md +147 -0
  468. package/plugins/motion-styles/prompts/stack-split.md +145 -0
  469. package/plugins/motion-styles/prompts/sticker-pop.md +145 -0
  470. package/plugins/motion-styles/prompts/storybook.md +145 -0
  471. package/plugins/motion-styles/prompts/swiss-grid.md +145 -0
  472. package/plugins/motion-styles/prompts/synth-grid.md +147 -0
  473. package/plugins/motion-styles/prompts/tactics-board.md +145 -0
  474. package/plugins/motion-styles/prompts/terminal.md +145 -0
  475. package/plugins/motion-styles/prompts/tier-list.md +143 -0
  476. package/plugins/motion-styles/prompts/timeline-rail.md +145 -0
  477. package/plugins/motion-styles/prompts/top-5-countdown.md +145 -0
  478. package/plugins/motion-styles/prompts/versus-split.md +145 -0
  479. package/plugins/motion-styles/prompts/vhs-camcorder.md +145 -0
  480. package/plugins/motion-styles/prompts/visual-novel.md +145 -0
  481. package/plugins/motion-styles/prompts/warm-canvas.md +145 -0
  482. package/plugins/motion-styles/prompts/woodcut-tale.md +145 -0
  483. package/plugins/motion-styles/prompts/zine-collage.md +145 -0
  484. package/plugins/motion-styles/sources/bio-glow.html +639 -0
  485. package/plugins/motion-styles/sources/blueprint.html +617 -0
  486. package/plugins/motion-styles/sources/breaking-desk.html +585 -0
  487. package/plugins/motion-styles/sources/callout-kit.html +586 -0
  488. package/plugins/motion-styles/sources/chalk-talk.html +597 -0
  489. package/plugins/motion-styles/sources/chat-story.html +597 -0
  490. package/plugins/motion-styles/sources/clay-diorama.html +681 -0
  491. package/plugins/motion-styles/sources/clean-tech.html +554 -0
  492. package/plugins/motion-styles/sources/comic-panels.html +608 -0
  493. package/plugins/motion-styles/sources/cosmic-scale.html +628 -0
  494. package/plugins/motion-styles/sources/creator-motion.html +805 -0
  495. package/plugins/motion-styles/sources/data-city.html +613 -0
  496. package/plugins/motion-styles/sources/data-story.html +539 -0
  497. package/plugins/motion-styles/sources/deep-layers.html +624 -0
  498. package/plugins/motion-styles/sources/doc-cinema.html +590 -0
  499. package/plugins/motion-styles/sources/evidence-board.html +610 -0
  500. package/plugins/motion-styles/sources/exploded-view.html +618 -0
  501. package/plugins/motion-styles/sources/glass-icons.html +612 -0
  502. package/plugins/motion-styles/sources/glitch-pack.html +583 -0
  503. package/plugins/motion-styles/sources/globe-arcs.html +621 -0
  504. package/plugins/motion-styles/sources/headline-backdrop.html +584 -0
  505. package/plugins/motion-styles/sources/iso-cutaway.html +621 -0
  506. package/plugins/motion-styles/sources/isotype.html +588 -0
  507. package/plugins/motion-styles/sources/karaoke-subs.html +577 -0
  508. package/plugins/motion-styles/sources/low-poly-atlas.html +621 -0
  509. package/plugins/motion-styles/sources/lower-thirds.html +582 -0
  510. package/plugins/motion-styles/sources/marker-board.html +598 -0
  511. package/plugins/motion-styles/sources/market-tape.html +598 -0
  512. package/plugins/motion-styles/sources/math-canvas.html +592 -0
  513. package/plugins/motion-styles/sources/myth-or-fact.html +587 -0
  514. package/plugins/motion-styles/sources/neon-line.html +597 -0
  515. package/plugins/motion-styles/sources/paper-craft.html +612 -0
  516. package/plugins/motion-styles/sources/parchment-map.html +624 -0
  517. package/plugins/motion-styles/sources/physics-toybox.html +617 -0
  518. package/plugins/motion-styles/sources/pixel-quest.html +609 -0
  519. package/plugins/motion-styles/sources/podcast-clip.html +585 -0
  520. package/plugins/motion-styles/sources/pop-info.html +677 -0
  521. package/plugins/motion-styles/sources/product-turntable.html +611 -0
  522. package/plugins/motion-styles/sources/punch-captions.html +583 -0
  523. package/plugins/motion-styles/sources/quiz-countdown.html +593 -0
  524. package/plugins/motion-styles/sources/quote-cinema.html +581 -0
  525. package/plugins/motion-styles/sources/recipe-steps.html +599 -0
  526. package/plugins/motion-styles/sources/rubber-hose-reel.html +627 -0
  527. package/plugins/motion-styles/sources/shadow-puppets.html +609 -0
  528. package/plugins/motion-styles/sources/size-lineup.html +620 -0
  529. package/plugins/motion-styles/sources/software-walkthrough.html +651 -0
  530. package/plugins/motion-styles/sources/stack-split.html +588 -0
  531. package/plugins/motion-styles/sources/sticker-pop.html +587 -0
  532. package/plugins/motion-styles/sources/storybook.html +600 -0
  533. package/plugins/motion-styles/sources/swiss-grid.html +590 -0
  534. package/plugins/motion-styles/sources/synth-grid.html +614 -0
  535. package/plugins/motion-styles/sources/tactics-board.html +608 -0
  536. package/plugins/motion-styles/sources/terminal.html +593 -0
  537. package/plugins/motion-styles/sources/tier-list.html +600 -0
  538. package/plugins/motion-styles/sources/timeline-rail.html +598 -0
  539. package/plugins/motion-styles/sources/top-5-countdown.html +589 -0
  540. package/plugins/motion-styles/sources/versus-split.html +592 -0
  541. package/plugins/motion-styles/sources/vhs-camcorder.html +587 -0
  542. package/plugins/motion-styles/sources/visual-novel.html +623 -0
  543. package/plugins/motion-styles/sources/warm-canvas.html +742 -0
  544. package/plugins/motion-styles/sources/woodcut-tale.html +598 -0
  545. package/plugins/motion-styles/sources/zine-collage.html +594 -0
  546. package/plugins/video-pipeline/.claude-plugin/plugin.json +2 -2
  547. package/plugins/video-pipeline/skills/.upstream-skills.json +156 -143
  548. package/plugins/video-pipeline/skills/video-pipeline/references/mcp-tools.md +3 -3
  549. package/scripts/deep-validate.js +3 -2
  550. package/src/audio-mixer/mixer.js +69 -0
  551. package/src/cli/make.js +19 -0
  552. package/src/harness/lib/browser.mjs +22 -1
  553. package/src/harness/lib/capture.mjs +33 -11
  554. package/src/harness/lib/jobs.mjs +16 -1
  555. package/src/mcp-server/server.js +726 -10
  556. package/src/pipeline/providers.js +77 -17
  557. package/src/skills/sync-upstream.js +15 -3
  558. package/src/utils/media-downloader.js +7 -0
  559. package/src/utils/tool-installer.js +212 -0
  560. package/src/utils/transcribe.js +9 -1
  561. package/src/video-renderer/renderer.js +68 -38
  562. package/src/video-renderer/scene-animator.js +50 -15
  563. package/src/workflows/assets.js +49 -5
  564. package/src/workflows/render.js +2 -0
  565. package/src/workflows/script.js +14 -3
@@ -0,0 +1,340 @@
1
+ // The Tall Tale world: a sunny, saturated, slightly old-timey cartoon world built in 3D with painted canvas textures.
2
+ // sky(scene, { top, horizon, sunset }) · sunlight(scene, opts) · clouds(scene, list)
3
+ // mainStreet(E, opts) -> { scene, sun, people: [...] } a small-town street with shops, poles, wires, hills
4
+ // interior(E, opts) -> { scene, sun, counter, window } a wallpapered shop/office room with a counter and a window
5
+ // meadow(E, opts) -> { scene, sun } grass, hills, fence, trees, flowers (day or sunset)
6
+ // Textures: planks, wallpaper, brick, dirt, grass, siding, facade(name, ...), sign(text) — all drawn in code.
7
+ import * as THREE from 'three';
8
+ import { lightRig } from './engine.js';
9
+ import { Toon } from './toon.js';
10
+
11
+ const rnd = (i) => { const x = Math.sin(i * 127.1 + 311.7) * 43758.5453; return x - Math.floor(x); };
12
+ const TEX = {};
13
+ export function canvasTex(key, w, h, draw, rep = [1, 1]) {
14
+ let t = TEX[key];
15
+ if (!t) {
16
+ const c = document.createElement('canvas'); c.width = w; c.height = h; draw(c.getContext('2d'), w, h);
17
+ t = new THREE.CanvasTexture(c); t.colorSpace = THREE.SRGBColorSpace; t.wrapS = t.wrapT = THREE.RepeatWrapping; t.anisotropy = 8; TEX[key] = t;
18
+ }
19
+ const u = t.clone(); u.repeat.set(rep[0], rep[1]); u.needsUpdate = true; return u;
20
+ }
21
+ const shade = (hex, k) => { const c = new THREE.Color(hex); c.multiplyScalar(k); return '#' + c.getHexString(); };
22
+ export const mat = (o = {}) => new THREE.MeshStandardMaterial({ roughness: 0.85, metalness: 0, ...o });
23
+ const box = (w, h, d, m, x = 0, y = 0, z = 0, parent) => { const b = new THREE.Mesh(new THREE.BoxGeometry(w, h, d), m); b.position.set(x, y, z); b.castShadow = b.receiveShadow = true; if (parent) parent.add(b); return b; };
24
+ const cyl = (r1, r2, h, m, x, y, z, parent, seg = 12) => { const c = new THREE.Mesh(new THREE.CylinderGeometry(r1, r2, h, seg), m); c.position.set(x, y, z); c.castShadow = c.receiveShadow = true; if (parent) parent.add(c); return c; };
25
+
26
+ // ---------- painted textures ----------
27
+ export const T = {
28
+ planks: (col = '#A8693E', rep = [1, 1]) => canvasTex('planks' + col, 512, 512, (g, w, h) => {
29
+ const n = 8, ph = h / n;
30
+ for (let i = 0; i < n; i++) {
31
+ g.fillStyle = shade(col, 0.86 + rnd(i * 3) * 0.24); g.fillRect(0, i * ph, w, ph);
32
+ g.strokeStyle = shade(col, 0.7); g.globalAlpha = 0.35; g.lineWidth = 2;
33
+ for (let k = 0; k < 4; k++) { g.beginPath(); const y = i * ph + 8 + rnd(i * 7 + k) * (ph - 16); g.moveTo(0, y); g.bezierCurveTo(w * 0.3, y + 6, w * 0.6, y - 6, w, y + 2); g.stroke(); }
34
+ g.globalAlpha = 1; g.fillStyle = shade(col, 0.45); g.fillRect(0, i * ph, w, 4);
35
+ const jx = rnd(i * 11) * w; g.fillRect(jx, i * ph, 4, ph);
36
+ g.fillStyle = shade(col, 0.5); [jx - 14, jx + 18].forEach((x) => { g.beginPath(); g.arc(x, i * ph + ph / 2, 3, 0, 7); g.fill(); });
37
+ }
38
+ }, rep),
39
+ wallpaper: (col = '#9E2E3A', motif = '#B8414C', rep = [1, 1]) => canvasTex('wp' + col + motif, 256, 256, (g, w, h) => {
40
+ g.fillStyle = col; g.fillRect(0, 0, w, h); g.fillStyle = motif; g.strokeStyle = motif; g.lineWidth = 5;
41
+ const fleur = (x, y, s) => { g.save(); g.translate(x, y); g.scale(s, s); g.beginPath(); g.moveTo(0, -40); g.bezierCurveTo(18, -20, 18, 0, 0, 14); g.bezierCurveTo(-18, 0, -18, -20, 0, -40); g.fill(); g.beginPath(); g.arc(-22, 4, 12, 0, 7); g.arc(22, 4, 12, 0, 7); g.fill(); g.fillRect(-3, 10, 6, 26); g.restore(); };
42
+ [[64, 64], [192, 192], [192, 64 - 256], [64, 192]].forEach(([x, y], i) => i < 2 && fleur(x, y, 0.9));
43
+ g.globalAlpha = 0.5; for (let i = 0; i < 4; i++) { g.beginPath(); g.arc(i % 2 ? 192 : 64, i < 2 ? 192 : 64, 6, 0, 7); g.fill(); } g.globalAlpha = 1;
44
+ }, rep),
45
+ brick: (col = '#B5553C', rep = [1, 1]) => canvasTex('brick' + col, 512, 512, (g, w, h) => {
46
+ g.fillStyle = shade(col, 0.6); g.fillRect(0, 0, w, h); const bh = 32, bw = 85;
47
+ for (let r = 0; r < h / bh; r++) for (let c = -1; c < w / bw + 1; c++) { const x = c * bw + (r % 2) * bw / 2; g.fillStyle = shade(col, 0.85 + rnd(r * 31 + c) * 0.3); g.fillRect(x + 3, r * bh + 3, bw - 6, bh - 6); }
48
+ }, rep),
49
+ siding: (col = '#6FA3B8', rep = [1, 1]) => canvasTex('siding' + col, 256, 256, (g, w, h) => {
50
+ for (let i = 0; i < 8; i++) { const y = i * 32; const gr = g.createLinearGradient(0, y, 0, y + 32); gr.addColorStop(0, shade(col, 1.06)); gr.addColorStop(1, shade(col, 0.86)); g.fillStyle = gr; g.fillRect(0, y, w, 32); g.fillStyle = shade(col, 0.6); g.fillRect(0, y + 30, w, 2); }
51
+ }, rep),
52
+ dirt: (col = '#C8763F', rep = [1, 1], tracks = true) => canvasTex('dirt' + col + tracks, 512, 512, (g, w, h) => {
53
+ g.fillStyle = col; g.fillRect(0, 0, w, h);
54
+ for (let i = 0; i < 2600; i++) { g.fillStyle = shade(col, 0.75 + rnd(i) * 0.5); g.globalAlpha = 0.5; g.beginPath(); g.arc(rnd(i * 2.1) * w, rnd(i * 3.7) * h, 1 + rnd(i * 5.3) * 2.5, 0, 7); g.fill(); }
55
+ g.globalAlpha = 0.18; g.fillStyle = shade(col, 0.6);
56
+ if (tracks) [0.3, 0.38, 0.62, 0.7].forEach((x) => g.fillRect(x * w, 0, 14, h));
57
+ g.globalAlpha = 1;
58
+ }, rep),
59
+ grass: (col = '#6DBB4A', rep = [1, 1]) => canvasTex('grass' + col, 512, 512, (g, w, h) => {
60
+ g.fillStyle = col; g.fillRect(0, 0, w, h);
61
+ for (let i = 0; i < 5000; i++) { const x = rnd(i * 1.3) * w, y = rnd(i * 2.9) * h; g.strokeStyle = shade(col, 0.7 + rnd(i * 7.7) * 0.6); g.lineWidth = 2; g.beginPath(); g.moveTo(x, y); g.lineTo(x + (rnd(i) - 0.5) * 6, y - 6 - rnd(i * 9) * 8); g.stroke(); }
62
+ }, rep),
63
+ felt: (col = '#1F5A45') => canvasTex('felt' + col, 256, 256, (g, w, h) => { g.fillStyle = col; g.fillRect(0, 0, w, h); for (let i = 0; i < 3000; i++) { g.fillStyle = shade(col, 0.85 + rnd(i) * 0.3); g.fillRect(rnd(i * 3) * w, rnd(i * 7) * h, 2, 2); } }),
64
+ };
65
+
66
+ /** a painted shopfront (front face of a building) */
67
+ export function facade(name, { wall = '#C9603F', kind = 'brick', trim = '#F2E6CF', sign = '#2E4E3F', signText = '#F2D37A', awning = null, w = 5, h = 7, seed = 1 } = {}) {
68
+ const px = 110, cw = Math.round(w * px), ch = Math.round(h * px);
69
+ return canvasTex('fac' + name + wall + w + h + seed, cw, ch, (g) => {
70
+ if (kind === 'brick') { const b = T.brick(wall).image; for (let y = 0; y < ch; y += 512) for (let x = 0; x < cw; x += 512) g.drawImage(b, x, y); }
71
+ else { const b = T.siding(wall).image; for (let y = 0; y < ch; y += 256) for (let x = 0; x < cw; x += 256) g.drawImage(b, x, y); }
72
+ // cornice
73
+ g.fillStyle = trim; g.fillRect(0, 0, cw, 40); g.fillStyle = shade(trim, 0.7); g.fillRect(0, 40, cw, 10);
74
+ for (let x = 10; x < cw; x += 34) { g.fillStyle = trim; g.fillRect(x, 50, 16, 16); }
75
+ // upper windows
76
+ const nw = Math.max(2, Math.round(w / 1.6)), ww = cw / nw;
77
+ for (let i = 0; i < nw; i++) {
78
+ const x = i * ww + ww * 0.22, y = ch * 0.16, wd = ww * 0.56, ht = ch * 0.22;
79
+ g.fillStyle = trim; g.fillRect(x - 10, y - 14, wd + 20, ht + 28);
80
+ const gr = g.createLinearGradient(x, y, x + wd, y + ht); gr.addColorStop(0, '#7FB3D8'); gr.addColorStop(0.5, '#3F6E9A'); gr.addColorStop(1, '#2B4A70'); g.fillStyle = gr; g.fillRect(x, y, wd, ht);
81
+ g.fillStyle = 'rgba(255,255,255,0.35)'; g.beginPath(); g.moveTo(x + wd * 0.1, y + ht); g.lineTo(x + wd * 0.45, y); g.lineTo(x + wd * 0.6, y); g.lineTo(x + wd * 0.25, y + ht); g.fill();
82
+ g.fillStyle = trim; g.fillRect(x + wd / 2 - 4, y, 8, ht); g.fillRect(x, y + ht / 2 - 4, wd, 8);
83
+ if (rnd(seed * 13 + i) > 0.5) { g.fillStyle = shade(wall, 0.8); g.fillRect(x, y, wd, ht * 0.35); }
84
+ }
85
+ // sign board
86
+ const sy = ch * 0.47, sh = ch * 0.1;
87
+ g.fillStyle = sign; g.fillRect(cw * 0.06, sy, cw * 0.88, sh); g.strokeStyle = signText; g.lineWidth = 5; g.strokeRect(cw * 0.06 + 8, sy + 8, cw * 0.88 - 16, sh - 16);
88
+ g.fillStyle = signText; g.textAlign = 'center'; g.textBaseline = 'middle'; let fs = sh * 0.56; g.font = `700 ${fs}px Caladea, Georgia, serif`;
89
+ while (g.measureText(name).width > cw * 0.78 && fs > 10) { fs -= 2; g.font = `700 ${fs}px Caladea, Georgia, serif`; }
90
+ g.fillText(name, cw / 2, sy + sh / 2 + 2);
91
+ // shop window + door
92
+ const by = sy + sh + 16, bh = ch - by;
93
+ g.fillStyle = shade(trim, 0.9); g.fillRect(0, by, cw, bh);
94
+ const dw = cw * 0.2, dx = rnd(seed) > 0.5 ? cw * 0.08 : cw * 0.72;
95
+ g.fillStyle = '#5A3A26'; g.fillRect(dx, by + 14, dw, bh - 14); g.fillStyle = '#3F6E9A'; g.fillRect(dx + 12, by + 30, dw - 24, bh * 0.4);
96
+ g.fillStyle = '#E8C060'; g.beginPath(); g.arc(dx + dw - 18, by + bh * 0.62, 6, 0, 7); g.fill();
97
+ const wx = dx < cw / 2 ? dx + dw + 20 : cw * 0.06, wwid = cw * 0.66 - 20;
98
+ const gr = g.createLinearGradient(wx, by, wx + wwid, by + bh); gr.addColorStop(0, '#9CC7E4'); gr.addColorStop(0.45, '#4C7FA8'); gr.addColorStop(1, '#2A4565');
99
+ g.fillStyle = '#4A2E1E'; g.fillRect(wx - 8, by + 14, wwid + 16, bh * 0.7 + 16); g.fillStyle = gr; g.fillRect(wx, by + 22, wwid, bh * 0.7);
100
+ for (let i = 0; i < 5; i++) { g.fillStyle = ['#E7B04A', '#D8584A', '#7DB36A', '#F2E6CF', '#8A6FC0'][(i + seed) % 5]; g.fillRect(wx + 16 + i * (wwid - 32) / 5, by + bh * 0.55, (wwid - 32) / 5 - 10, bh * 0.2); }
101
+ g.fillStyle = 'rgba(255,255,255,0.3)'; g.beginPath(); g.moveTo(wx + wwid * 0.15, by + 22 + bh * 0.7); g.lineTo(wx + wwid * 0.4, by + 22); g.lineTo(wx + wwid * 0.52, by + 22); g.lineTo(wx + wwid * 0.27, by + 22 + bh * 0.7); g.fill();
102
+ if (awning) { const ay = by - 4; for (let x = 0, i = 0; x < cw; x += 40, i++) { g.fillStyle = i % 2 ? '#F4EFE4' : awning; g.fillRect(x, ay, 40, 46); g.beginPath(); g.arc(x + 20, ay + 46, 20, 0, Math.PI); g.fill(); } }
103
+ });
104
+ }
105
+
106
+ /** a flat painted sign (plank board with text) as a plane mesh */
107
+ export function signBoard(text, { w = 2, h = 0.5, bg = '#2E4E3F', fg = '#F2D37A', font = 'Caladea' } = {}) {
108
+ const t = canvasTex('sign' + text + bg + fg + w + h, Math.round(w * 200), Math.round(h * 200), (g, cw, ch) => {
109
+ g.fillStyle = bg; g.fillRect(0, 0, cw, ch); g.strokeStyle = fg; g.lineWidth = 6; g.strokeRect(10, 10, cw - 20, ch - 20);
110
+ g.fillStyle = fg; g.textAlign = 'center'; g.textBaseline = 'middle'; let fs = ch * 0.5; g.font = `700 ${fs}px ${font}, Georgia, serif`;
111
+ while (g.measureText(text).width > cw * 0.86) { fs -= 2; g.font = `700 ${fs}px ${font}, Georgia, serif`; }
112
+ g.fillText(text, cw / 2, ch / 2 + 3);
113
+ });
114
+ const m = new THREE.Mesh(new THREE.BoxGeometry(w, h, 0.05), [mat({ color: shade(bg, 0.7) }), mat({ color: shade(bg, 0.7) }), mat({ color: shade(bg, 0.7) }), mat({ color: shade(bg, 0.7) }), mat({ map: t }), mat({ color: shade(bg, 0.7) })]);
115
+ m.castShadow = true; return m;
116
+ }
117
+
118
+ // ---------- sky, sun, clouds ----------
119
+ export function sky(scene, { top = '#3D8EE0', horizon = '#BFE4F7', ground = '#BFE4F7', r = 380 } = {}) {
120
+ const m = new THREE.ShaderMaterial({ side: THREE.BackSide, depthWrite: false, fog: false, toneMapped: false,
121
+ uniforms: { top: { value: new THREE.Color(top) }, hor: { value: new THREE.Color(horizon) }, gnd: { value: new THREE.Color(ground) } },
122
+ vertexShader: 'varying vec3 vP; void main(){ vP = normalize(position); gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); }',
123
+ fragmentShader: 'uniform vec3 top, hor, gnd; varying vec3 vP; void main(){ float y = vP.y; vec3 c = y > 0.0 ? mix(hor, top, pow(clamp(y * 1.6, 0.0, 1.0), 0.7)) : gnd; gl_FragColor = vec4(c, 1.0); }' });
124
+ const s = new THREE.Mesh(new THREE.SphereGeometry(r, 32, 16), m); s.renderOrder = -10; scene.add(s); return s;
125
+ }
126
+ let cloudT = null;
127
+ function cloudTex() {
128
+ if (cloudT) return cloudT;
129
+ const c = document.createElement('canvas'); c.width = 512; c.height = 256; const g = c.getContext('2d');
130
+ const puffs = [[110, 175, 58], [185, 140, 80], [285, 118, 96], [380, 150, 70], [250, 178, 70], [440, 180, 44], [70, 190, 36]];
131
+ g.filter = 'blur(3px)';
132
+ g.fillStyle = '#B9CCE6'; puffs.forEach(([x, y, r]) => { g.beginPath(); g.arc(x + 4, y + 14, r, 0, 7); g.fill(); });
133
+ g.fillStyle = '#FFFFFF'; puffs.forEach(([x, y, r]) => { g.beginPath(); g.arc(x - 2, y - 2, r * 0.92, 0, 7); g.fill(); });
134
+ g.globalCompositeOperation = 'destination-out'; g.filter = 'blur(10px)'; g.fillRect(0, 214, 512, 60);
135
+ cloudT = new THREE.CanvasTexture(c); cloudT.colorSpace = THREE.SRGBColorSpace; return cloudT;
136
+ }
137
+ export function clouds(scene, list, tint = '#FFFFFF') {
138
+ const out = [];
139
+ list.forEach(([x, y, z, s]) => { const sp = new THREE.Sprite(new THREE.SpriteMaterial({ map: cloudTex(), color: tint, fog: false, toneMapped: false, depthWrite: false })); sp.position.set(x, y, z); sp.scale.set(s * 2, s, 1); scene.add(sp); out.push(sp); });
140
+ return out;
141
+ }
142
+ export function sunlight(scene, E, { col = '#FFF0D6', i = 2.6, pos = [6, 10, 6], target = [0, 0, 0], box = 12, sky = '#CFE6FF', ground = '#C48A5A', hemi = 1.25, env = 0.25 } = {}) {
143
+ scene.environment = E.envMap; scene.environmentIntensity = env;
144
+ const r = lightRig(scene, { key: col, keyI: i, keyPos: pos, target, shadowBox: box, rimCol: '#FFFFFF', rimI: 0.4, sky, ground, hemiI: hemi });
145
+ r.key.shadow.camera.far = 80; r.key.shadow.bias = -0.0006; r.key.shadow.camera.updateProjectionMatrix();
146
+ return r;
147
+ }
148
+
149
+ // ---------- reusable bits ----------
150
+ export function hills(scene, { col = '#79C25A', z = -90, list } = {}) {
151
+ const g = new THREE.Group(); scene.add(g);
152
+ (list || [[-40, z, 34, 12], [10, z - 10, 46, 16], [60, z + 4, 36, 11], [-90, z + 10, 40, 10]]).forEach(([x, zz, r, h], i) => {
153
+ const m = new THREE.Mesh(new THREE.SphereGeometry(1, 32, 16), mat({ color: shade(col, 0.92 + rnd(i) * 0.16), map: T.grass(col, [6, 3]) }));
154
+ m.scale.set(r, h, r * 0.6); m.position.set(x, -h * 0.25, zz); g.add(m);
155
+ for (let k = 0; k < 6; k++) { const a = rnd(i * 9 + k) * 2 - 1; const t = tree(0.5 + rnd(k) * 0.4); t.position.set(x + a * r * 0.6, h * (0.75 - Math.abs(a) * 0.45) - 1, zz + r * 0.25); t.scale.multiplyScalar(2.2); g.add(t); }
156
+ });
157
+ return g;
158
+ }
159
+ export function tree(s = 1, col = '#4E9A3C', kind = 'round') {
160
+ const g = new THREE.Group();
161
+ cyl(0.12 * s, 0.18 * s, 1.6 * s, mat({ color: '#7A5234' }), 0, 0.8 * s, 0, g);
162
+ const lm = mat({ color: col });
163
+ if (kind === 'cypress') { const c = new THREE.Mesh(new THREE.SphereGeometry(1, 16, 12), lm); c.scale.set(0.7 * s, 2.6 * s, 0.7 * s); c.position.y = 3.2 * s; c.castShadow = true; g.add(c); }
164
+ else [[0, 2.3, 0, 1.0], [0.6, 2.0, 0.2, 0.75], [-0.6, 2.0, -0.1, 0.8], [0.1, 2.9, -0.2, 0.75], [0.2, 2.2, 0.6, 0.7]].forEach(([x, y, z, r], i) => {
165
+ const m = new THREE.Mesh(new THREE.IcosahedronGeometry(r * s, 2), mat({ color: shade(col, 0.9 + rnd(i) * 0.2) })); m.position.set(x * s, y * s, z * s); m.castShadow = true; g.add(m);
166
+ });
167
+ return g;
168
+ }
169
+ export function pole(h = 7) {
170
+ const g = new THREE.Group(), w = mat({ color: '#6E4E36' });
171
+ cyl(0.09, 0.12, h, w, 0, h / 2, 0, g, 8); box(1.8, 0.1, 0.1, w, 0, h - 0.6, 0, g); box(1.2, 0.08, 0.08, w, 0, h - 1.1, 0, g);
172
+ [-0.8, -0.3, 0.3, 0.8].forEach((x) => cyl(0.03, 0.03, 0.12, mat({ color: '#CFE3E8' }), x, h - 0.5, 0, g, 6));
173
+ return g;
174
+ }
175
+ export function wire(a, b, sag = 0.6, col = '#2A2A33') {
176
+ const pts = []; for (let i = 0; i <= 20; i++) { const t = i / 20; const p = new THREE.Vector3().lerpVectors(a, b, t); p.y -= Math.sin(t * Math.PI) * sag; pts.push(p); }
177
+ const m = new THREE.Mesh(new THREE.TubeGeometry(new THREE.CatmullRomCurve3(pts), 20, 0.015, 4), new THREE.MeshBasicMaterial({ color: col })); return m;
178
+ }
179
+ export function lamp() {
180
+ const g = new THREE.Group(), m = mat({ color: '#2E3A35', metalness: 0.3, roughness: 0.5 });
181
+ cyl(0.05, 0.07, 3.2, m, 0, 1.6, 0, g, 8); cyl(0.18, 0.1, 0.3, m, 0, 3.3, 0, g, 8);
182
+ const b = new THREE.Mesh(new THREE.SphereGeometry(0.14, 12, 8), new THREE.MeshStandardMaterial({ color: '#FFF3C8', emissive: '#FFE7A0', emissiveIntensity: 0.6 })); b.position.y = 3.15; g.add(b);
183
+ return g;
184
+ }
185
+ export function barrel() { const g = new THREE.Group(); cyl(0.33, 0.33, 0.8, mat({ color: '#9A6337', map: T.planks('#9A6337') }), 0, 0.4, 0, g, 16); [0.12, 0.68].forEach((y) => cyl(0.345, 0.345, 0.05, mat({ color: '#3A3A3F', metalness: 0.4 }), 0, y, 0, g, 16)); return g; }
186
+ export function crate(s = 0.6) { const g = new THREE.Group(); box(s, s, s, mat({ map: T.planks('#B07A48', [0.5, 0.5]) }), 0, s / 2, 0, g); return g; }
187
+ export function car(col = '#2C3A4A') {
188
+ const g = new THREE.Group(), m = mat({ color: col, roughness: 0.4, metalness: 0.2 }), dark = mat({ color: '#1E1E24', roughness: 0.6 });
189
+ box(1.5, 0.5, 3.2, m, 0, 0.75, 0, g); box(1.3, 0.8, 1.4, m, 0, 1.4, -0.3, g);
190
+ box(1.2, 0.5, 0.05, mat({ color: '#9CC7E4', roughness: 0.1 }), 0, 1.5, 0.41, g);
191
+ [[-0.78, 1.1], [0.78, 1.1], [-0.78, -1.1], [0.78, -1.1]].forEach(([x, z]) => { const w = cyl(0.36, 0.36, 0.22, dark, x, 0.36, z, g, 16); w.rotation.z = Math.PI / 2; const hub = cyl(0.12, 0.12, 0.24, mat({ color: '#D9D2C2' }), x, 0.36, z, g, 10); hub.rotation.z = Math.PI / 2; });
192
+ [-0.5, 0.5].forEach((x) => { const l = new THREE.Mesh(new THREE.SphereGeometry(0.12, 10, 8), mat({ color: '#FFF3C8', emissive: '#FFE7A0', emissiveIntensity: 0.3 })); l.position.set(x, 0.95, 1.62); g.add(l); });
193
+ return g;
194
+ }
195
+ export function fence(len = 10, col = '#F4EFE4') {
196
+ const g = new THREE.Group(), m = mat({ color: col });
197
+ for (let x = 0; x <= len; x += 1.5) box(0.1, 1.0, 0.1, m, x, 0.5, 0, g);
198
+ [0.45, 0.85].forEach((y) => box(len, 0.08, 0.06, m, len / 2, y, 0, g));
199
+ return g;
200
+ }
201
+ export function bunting(a, b, cols = ['#D8343F', '#F4EFE4', '#3C6FB6', '#F2C230']) {
202
+ const g = new THREE.Group(); g.add(wire(a, b, 0.5, '#3A2A2A'));
203
+ const n = Math.round(a.distanceTo(b) / 0.5);
204
+ for (let i = 1; i < n; i++) {
205
+ const t = i / n, p = new THREE.Vector3().lerpVectors(a, b, t); p.y -= Math.sin(t * Math.PI) * 0.5;
206
+ const tri = new THREE.Mesh(new THREE.BufferGeometry().setFromPoints([new THREE.Vector3(-0.16, 0, 0), new THREE.Vector3(0.16, 0, 0), new THREE.Vector3(0, -0.32, 0)]), new THREE.MeshBasicMaterial({ color: cols[i % cols.length], side: THREE.DoubleSide }));
207
+ tri.position.copy(p); tri.lookAt(p.x + (b.z - a.z), p.y, p.z - (b.x - a.x)); g.add(tri);
208
+ }
209
+ return g;
210
+ }
211
+ const LOOKS = [
212
+ { body: '#5C8FD6', hat: 'bowler', hatCol: '#3B3346' }, { body: '#E8734A', hat: 'cap', hatCol: '#6E8A4F' }, { body: '#F2B8C6', hat: 'flower', pattern: 'apron' },
213
+ { body: '#9BC46A', hat: 'boater', hatCol: '#E8C77A' }, { body: '#8C6FC9', hat: 'tophat', hatCol: '#2A2638' }, { body: '#F2C230', hat: 'beanie', hatCol: '#D8343F', pattern: 'overalls' },
214
+ { body: '#4FB3A9', hat: 'none', neck: 'tie' }, { body: '#D8584A', hat: 'cap', hatCol: '#3B3346', pattern: 'stripes' },
215
+ ];
216
+ /** cheap background extras: small cut-outs at low resolution */
217
+ export function extras(scene, spots, moodFn) {
218
+ return spots.map(([x, z, k, mood], i) => { const p = new Toon(LOOKS[(k ?? i) % LOOKS.length], { height: 1.7, res: 0.5 }); p.set({ mood: mood || 'neutral', armL: [8, 6], armR: [8, 6] }); p.at(x, 0, z); scene.add(p.group); return p; });
219
+ }
220
+
221
+ // ---------- SETS ----------
222
+ const SHOPS = [['BAKERY', '#C9603F', 'brick', '#D8343F'], ['GENERAL STORE', '#6FA3B8', 'wood', null], ['BARBER', '#E3C16F', 'wood', '#3C6FB6'], ['GRAND HOTEL', '#9E4A3A', 'brick', null],
223
+ ['POST OFFICE', '#7FA36A', 'wood', null], ['TAILOR', '#B98ACF', 'wood', '#2E4E3F'], ['HARDWARE', '#B5553C', 'brick', '#F2C230'], ['CAFE', '#E58A6A', 'wood', '#2E4E3F'],
224
+ ['BANK', '#C7B79A', 'brick', null], ['PHARMACY', '#5FA39A', 'wood', '#D8343F'], ['SHOES', '#D9A34A', 'wood', null], ['THEATER', '#A3485A', 'brick', '#F2C230']];
225
+
226
+ /** a small-town main street running along -z. The road is x -4..4; boardwalks x ±4..6; shop fronts at x ±6. */
227
+ export function mainStreet(E, { len = 70, people = true, cars = true, dusk = false, shops = SHOPS } = {}) {
228
+ const buildings = [];
229
+ const scene = new THREE.Scene();
230
+ sky(scene, dusk ? { top: '#3B3F8F', horizon: '#F59C6B' } : {});
231
+ const sun = sunlight(scene, E, dusk ? { col: '#FFB27A', i: 2.0, pos: [-8, 5, -14], sky: '#B9A2D8', ground: '#7A4A3A', hemi: 0.9 } : { pos: [9, 13, 5], box: 16 });
232
+ clouds(scene, [[-30, 26, -100, 16], [20, 34, -110, 20], [55, 22, -90, 12], [-60, 30, -80, 14], [5, 20, -70, 9]], dusk ? '#FFC9B0' : '#FFFFFF');
233
+ hills(scene, { z: -len - 30 });
234
+ const road = new THREE.Mesh(new THREE.PlaneGeometry(8, len + 40), mat({ map: T.dirt('#C98A52', [2, (len + 40) / 8]) })); road.rotation.x = -Math.PI / 2; road.position.set(0, 0, -len / 2 + 10); road.receiveShadow = true; scene.add(road);
235
+ const ground = new THREE.Mesh(new THREE.PlaneGeometry(300, 300), mat({ map: T.grass('#79C25A', [60, 60]) })); ground.rotation.x = -Math.PI / 2; ground.position.y = -0.02; ground.receiveShadow = true; scene.add(ground);
236
+ [-1, 1].forEach((s) => {
237
+ const walk = box(2.2, 0.18, len + 20, mat({ map: T.planks('#A8693E', [(len + 20) / 3, 1]) }), s * 5.1, 0.09, -len / 2 + 5, scene);
238
+ walk.material.map.rotation = Math.PI / 2;
239
+ let z = 8, k = s > 0 ? 0 : 5;
240
+ while (z > -len) {
241
+ const [name, wall, kind, aw] = shops[k % shops.length]; const w = 5 + rnd(k) * 2.5, h = 6 + rnd(k * 3) * 3.5; k++;
242
+ const front = mat({ map: facade(name, { wall, kind, awning: aw, w, h, seed: k }) }), side = mat({ color: shade(wall, 0.85) });
243
+ const b = new THREE.Mesh(new THREE.BoxGeometry(6, h, w), s < 0 ? [front, side, side, side, side, side] : [side, front, side, side, side, side]);
244
+ b.position.set(s * 9.2, h / 2, z - w / 2); b.castShadow = b.receiveShadow = true; scene.add(b); buildings.push({ name, side: s, z: z - w / 2, w, h, x: s * 6.2 });
245
+ if (aw) { const a = box(1.4, 0.06, w - 0.4, mat({ color: aw }), s * 5.6, 2.9, z - w / 2, scene); a.rotation.z = s * 0.35; }
246
+ z -= w + 0.15;
247
+ }
248
+ for (let zz = 4; zz > -len; zz -= 12) { const p = pole(7.5); p.position.set(s * 4.4, 0, zz); scene.add(p); }
249
+ for (let zz = -2; zz > -len; zz -= 16) { const l = lamp(); l.position.set(s * 4.3, 0.18, zz); scene.add(l); }
250
+ });
251
+ for (let zz = 4; zz > -len + 12; zz -= 12) [-1, 1].forEach((s) => [-0.8, -0.3, 0.3, 0.8].forEach((dx) => scene.add(wire(new THREE.Vector3(s * 4.4 + dx, 6.95, zz), new THREE.Vector3(s * 4.4 + dx, 6.95, zz - 12), 0.45))));
252
+ for (let zz = -6; zz > -len; zz -= 22) scene.add(bunting(new THREE.Vector3(-4.4, 6.2, zz), new THREE.Vector3(4.4, 6.2, zz - 2)));
253
+ [[-4.6, -3], [4.7, -9], [-4.8, -20], [4.6, -27]].forEach(([x, z], i) => { const o = i % 2 ? barrel() : crate(); o.position.set(x, 0.18, z); scene.add(o); });
254
+ const carsList = [];
255
+ if (cars) [[2, -14, '#2C3A4A'], [-2, -30, '#7A2E2E'], [2, -44, '#2E5A44']].forEach(([x, z, c]) => { const v = car(c); v.position.set(x, 0, z); if (x < 0) v.rotation.y = Math.PI; scene.add(v); carsList.push(v); });
256
+ const crowd = people ? extras(scene, [[-5.3, -6], [5.0, -10, 2], [-5.0, -15], [5.4, -18, 4], [-5.4, -24, 3], [4.9, -31, 5], [-5.0, -36, 6], [5.3, -42, 7], [-5.2, -48, 1]]) : [];
257
+ if (dusk) crowd.forEach((p) => p.tint('#D9B9C9'));
258
+ return { scene, sun, people: crowd, cars: carsList, buildings, faceAll(cam) { crowd.forEach((p) => p.face(cam)); } };
259
+ }
260
+
261
+ /** a shop / office interior. Back wall z = -depth, window in it; counter along the right side. */
262
+ export function interior(E, { w = 8, depth = 7, h = 4.2, wall = '#9E2E3A', motif = '#B8414C', floor = '#A8693E', ceiling = '#24524A', view = null, bulbs = true, signText = 'NO CREDIT · CASH ONLY', picture = true, counterOn = true, litter = true } = {}) {
263
+ const scene = new THREE.Scene(); scene.background = new THREE.Color('#1A1418');
264
+ scene.environment = E.envMap; scene.environmentIntensity = 0.35;
265
+ const fl = new THREE.Mesh(new THREE.PlaneGeometry(w, depth + 2), mat({ map: T.planks(floor, [w / 2.5, (depth + 2) / 2.5]) })); fl.rotation.x = -Math.PI / 2; fl.position.z = -depth / 2 + 1; fl.receiveShadow = true; scene.add(fl);
266
+ fl.material.map.rotation = Math.PI / 2;
267
+ const wp = (len) => mat({ map: T.wallpaper(wall, motif, [len / 1.4, h / 1.4]) });
268
+ const wain = (len) => mat({ map: T.planks('#6B3E26', [len / 2, 0.5]) });
269
+ // back wall with a window hole: 4 boxes around the opening
270
+ const ww = 3.2, wh = 1.9, wy = 1.1;
271
+ const back = new THREE.Group(); back.position.z = -depth; scene.add(back);
272
+ box((w - ww) / 2, h, 0.2, wp((w - ww) / 2), -(w + ww) / 4, h / 2, 0, back); box((w - ww) / 2, h, 0.2, wp((w - ww) / 2), (w + ww) / 4, h / 2, 0, back);
273
+ box(ww, wy, 0.2, wain(ww), 0, wy / 2, 0, back); box(ww, h - wy - wh, 0.2, wp(ww), 0, h - (h - wy - wh) / 2, 0, back);
274
+ const frameM = mat({ color: '#2F5C52' });
275
+ box(ww + 0.2, 0.14, 0.3, frameM, 0, wy, 0.05, back); box(ww + 0.2, 0.14, 0.3, frameM, 0, wy + wh, 0.05, back); box(0.12, wh, 0.3, frameM, -ww / 2, wy + wh / 2, 0.05, back); box(0.12, wh, 0.3, frameM, ww / 2, wy + wh / 2, 0.05, back); box(0.06, wh, 0.1, frameM, 0, wy + wh / 2, 0.05, back);
276
+ const viewPlane = new THREE.Mesh(new THREE.PlaneGeometry(ww * 2.6, wh * 2.6), new THREE.MeshBasicMaterial({ color: '#BFE4F7', toneMapped: false })); viewPlane.position.set(0, wy + wh / 2, -2.5); back.add(viewPlane);
277
+ if (view) { viewPlane.material.map = view; viewPlane.material.color.set('#FFFFFF'); }
278
+ [-1, 1].forEach((s) => { const sw = box(0.2, h, depth + 2, wp(depth + 2), s * w / 2, h / 2, -depth / 2 + 1, scene); sw.material.map.repeat.set((depth + 2) / 1.4, h / 1.4); });
279
+ [-1, 1].forEach((s) => box(0.24, 1.0, depth + 2, wain(depth + 2), s * (w / 2 - 0.02), 0.5, -depth / 2 + 1, scene));
280
+ box((w - ww) / 2, 1.0, 0.24, wain(2), -(w + ww) / 4, 0.5, -depth + 0.02, scene); box((w - ww) / 2, 1.0, 0.24, wain(2), (w + ww) / 4, 0.5, -depth + 0.02, scene);
281
+ const ceil = box(w, 0.2, depth + 2, mat({ map: T.wallpaper(ceiling, shade(ceiling, 1.25), [w / 1.2, (depth + 2) / 1.2]) }), 0, h + 0.1, -depth / 2 + 1, scene);
282
+ box(w, 0.16, 0.3, mat({ color: '#E8DCC0' }), 0, h - 0.08, -depth + 0.1, scene);
283
+ // counter on the right
284
+ const counter = new THREE.Group(); counter.position.set(w / 2 - 1.3, 0, -depth / 2 + 0.6); if (counterOn) scene.add(counter);
285
+ box(1.0, 1.1, depth - 1.5, mat({ map: T.planks('#7A3E24', [1, 2]) }), 0, 0.55, 0, counter);
286
+ box(1.2, 0.08, depth - 1.3, mat({ map: T.felt('#1F5A45') }), 0, 1.14, 0, counter);
287
+ box(0.1, 0.06, depth - 1.3, mat({ color: '#C9A13B', metalness: 0.6, roughness: 0.3 }), -0.62, 1.12, 0, counter);
288
+ // picture frame + sign
289
+ const pic = canvasTex('pic', 256, 200, (g) => { g.fillStyle = '#E9DCC0'; g.fillRect(0, 0, 256, 200); g.strokeStyle = '#3A2A22'; g.lineWidth = 6; g.beginPath(); g.moveTo(40, 140); g.quadraticCurveTo(90, 60, 140, 120); g.quadraticCurveTo(170, 80, 220, 140); g.stroke(); g.fillStyle = '#C9603F'; g.beginPath(); g.arc(190, 60, 22, 0, 7); g.fill(); });
290
+ if (picture) { const pf = box(0.9, 0.7, 0.05, [mat({ color: '#C9A13B' }), mat({ color: '#C9A13B' }), mat({ color: '#C9A13B' }), mat({ color: '#C9A13B' }), mat({ map: pic }), mat({ color: '#C9A13B' })], -w / 2 + 0.13, 2.4, -depth / 2, scene); pf.rotation.y = Math.PI / 2; }
291
+ if (signText) { const sb = signBoard(signText, { w: 2.2, h: 0.4, bg: '#3A2A2A', fg: '#F2E6CF' }); sb.position.set(w / 2 - 0.13, 2.9, -depth / 2 + 0.6); sb.rotation.y = -Math.PI / 2; scene.add(sb); }
292
+ // light: warm sun through the window + bulbs
293
+ const sun = new THREE.DirectionalLight('#FFE4B8', 2.4); sun.position.set(-2, 6, -depth - 6); sun.target.position.set(0.5, 0, -1); sun.castShadow = true;
294
+ sun.shadow.mapSize.set(2048, 2048); Object.assign(sun.shadow.camera, { left: -8, right: 8, top: 8, bottom: -8, near: 0.5, far: 30 }); sun.shadow.bias = -0.0006; sun.shadow.camera.updateProjectionMatrix(); sun.shadow.radius = 4;
295
+ scene.add(sun, sun.target); scene.add(new THREE.HemisphereLight('#FFE9D2', '#5A3A2A', 1.1));
296
+ const fill = new THREE.PointLight('#FFD9A8', 6, 12, 1.4); fill.position.set(0, 3.2, -1); scene.add(fill);
297
+ if (bulbs) [[-1.5, -2.2], [1.6, -4.5]].forEach(([x, z]) => {
298
+ const cord = cyl(0.008, 0.008, 1.0, new THREE.MeshBasicMaterial({ color: '#C9A13B' }), x, h - 0.5, z, scene, 4);
299
+ const b = new THREE.Mesh(new THREE.SphereGeometry(0.1, 12, 8), new THREE.MeshStandardMaterial({ color: '#FFF6DA', emissive: '#FFE7A0', emissiveIntensity: 2.2 })); b.position.set(x, h - 1.05, z); scene.add(b);
300
+ const pl = new THREE.PointLight('#FFD9A0', 3, 6, 1.6); pl.position.set(x, h - 1.15, z); scene.add(pl);
301
+ });
302
+ // floor litter (betting slips / paper) for life
303
+ const slips = new THREE.InstancedMesh(new THREE.PlaneGeometry(0.16, 0.1), new THREE.MeshStandardMaterial({ color: '#F2E6CF', side: THREE.DoubleSide }), 140);
304
+ const m4 = new THREE.Matrix4(), q = new THREE.Quaternion(), e = new THREE.Euler();
305
+ for (let i = 0; i < 140; i++) { e.set(-Math.PI / 2, 0, rnd(i * 3) * 6.3); q.setFromEuler(e); m4.compose(new THREE.Vector3((rnd(i) - 0.5) * (w - 1), 0.005 + i * 0.00005, -rnd(i * 7) * depth + 0.8), q, new THREE.Vector3(1, 1, 1)); slips.setMatrixAt(i, m4); slips.setColorAt(i, new THREE.Color(['#F2E6CF', '#E9D7A5', '#F4C7B0', '#CFE3D0'][i % 4])); }
306
+ slips.receiveShadow = true; if (litter) scene.add(slips);
307
+ return { scene, sun: { key: sun }, counter, window: viewPlane, w, depth, h };
308
+ }
309
+
310
+ /** grass, hills, a fence, trees, flowers. sunset: true = pink/orange evening */
311
+ export function meadow(E, { sunset = false, flowers = true, fenceOn = true, treesOn = true } = {}) {
312
+ const scene = new THREE.Scene();
313
+ sky(scene, sunset ? { top: '#5B4FA8', horizon: '#FF9E6E' } : { top: '#3D8EE0', horizon: '#CBEAF8' });
314
+ const sun = sunlight(scene, E, sunset ? { col: '#FFB27A', i: 2.4, pos: [-12, 4, -18], sky: '#C9A6E0', ground: '#6A4A3A', hemi: 1.0, box: 14 } : { pos: [8, 12, 6], box: 14 });
315
+ clouds(scene, [[-30, 22, -90, 14], [25, 30, -100, 18], [60, 18, -80, 11], [-5, 16, -60, 8]], sunset ? '#FFB8A0' : '#FFFFFF');
316
+ const geo = new THREE.PlaneGeometry(200, 200, 100, 100); const p = geo.attributes.position;
317
+ for (let i = 0; i < p.count; i++) { const x = p.getX(i), y = p.getY(i); p.setZ(i, Math.sin(x * 0.08) * 0.6 + Math.cos(y * 0.06 + 1) * 0.8 + (Math.abs(x) < 6 && Math.abs(y) < 10 ? 0 : 0)); }
318
+ geo.computeVertexNormals();
319
+ const ground = new THREE.Mesh(geo, mat({ map: T.grass(sunset ? '#7DB55A' : '#6DBB4A', [50, 50]) })); ground.rotation.x = -Math.PI / 2; ground.position.y = -0.5; ground.receiveShadow = true; scene.add(ground);
320
+ const flat = new THREE.Mesh(new THREE.CircleGeometry(12, 48), mat({ map: T.grass(sunset ? '#7DB55A' : '#6DBB4A', [6, 6]) })); flat.rotation.x = -Math.PI / 2; flat.receiveShadow = true; scene.add(flat);
321
+ hills(scene, { z: -70, col: sunset ? '#86B860' : '#79C25A' });
322
+ (treesOn ? [[-7, -9, 'round'], [8, -14, 'round'], [-14, -20, 'cypress'], [-11, -22, 'cypress'], [14, -26, 'cypress'], [17, -25, 'cypress']] : []).forEach(([x, z, k], i) => { const t = tree(1.1 + rnd(i) * 0.4, '#4E9A3C', k); t.position.set(x, 0, z); scene.add(t); });
323
+ if (fenceOn) { const f = fence(16); f.position.set(-8, 0, -6); scene.add(f); }
324
+ if (flowers) {
325
+ const fl = new THREE.InstancedMesh(new THREE.IcosahedronGeometry(0.05, 0), new THREE.MeshStandardMaterial({ roughness: 0.6 }), 1600), m4 = new THREE.Matrix4();
326
+ for (let i = 0; i < 1600; i++) { const a = rnd(i) * 6.28, r = 2 + rnd(i * 3.3) * 22; m4.makeTranslation(Math.cos(a) * r, 0.1, Math.sin(a) * r - 4); fl.setMatrixAt(i, m4); fl.setColorAt(i, new THREE.Color(['#F2D23A', '#F29BB5', '#FFFFFF', '#B98ACF', '#F28C4A'][i % 5])); }
327
+ scene.add(fl);
328
+ const tufts = new THREE.InstancedMesh(new THREE.ConeGeometry(0.025, 0.16, 3), mat({ color: sunset ? '#6FA650' : '#5DA83E' }), 4000);
329
+ for (let i = 0; i < 4000; i++) { const a = rnd(i * 1.7) * 6.28, r = 1 + rnd(i * 5.1) * 14; m4.makeTranslation(Math.cos(a) * r, 0.07, Math.sin(a) * r - 3); tufts.setMatrixAt(i, m4); }
330
+ scene.add(tufts);
331
+ }
332
+ return { scene, sun };
333
+ }
334
+
335
+ /** render a set into a texture once (for windows, picture-in-picture, spyglass views) */
336
+ export function snapshot(E, scene, cam, w = 1024, h = 768) {
337
+ const rt = new THREE.WebGLRenderTarget(w, h, { samples: 4, type: THREE.HalfFloatType });
338
+ const r = E.renderer; const prev = r.getRenderTarget(); r.setRenderTarget(rt); r.render(scene, cam); r.setRenderTarget(prev);
339
+ return rt.texture;
340
+ }
@@ -0,0 +1,56 @@
1
+ // Boot: fonts → script + timing → 3D engine + sets → captions → shots. draw(t) renders film time t (pure function of t):
2
+ // the shot renders its 3D frame into the hidden WebGL canvas, which is copied onto the 2D canvas, then the 2D layer
3
+ // (labels, counters) and the captions go on top. window.OP is the API tools/capture.mjs drives.
4
+ import { W, H, setCtx, ctx, clamp } from './core/lib.js';
5
+ import { T, loadTiming } from './core/timing.js';
6
+ import { buildCaptions, drawCaption, captionList } from './core/captions.js';
7
+ import { makeEngine, RES, AA } from './core/engine.js';
8
+ import { buildShots } from './shots.js';
9
+
10
+ const cv = document.getElementById('cv'), GL = document.getElementById('gl');
11
+ setCtx(cv.getContext('2d'));
12
+ const OP = (window.OP = { ready: false });
13
+
14
+ function draw(t) {
15
+ t = clamp(t, 0, T.dur - 1e-4);
16
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.letterSpacing = '0px';
17
+ const S = OP._shots; let i = S.length - 1; while (i > 0 && S[i].at > t) i--;
18
+ const sh = S[i], end = i < S.length - 1 ? S[i + 1].at : T.dur, d = end - sh.at, lt = t - sh.at;
19
+ const blit = () => ctx.drawImage(GL, 0, 0, W, H);
20
+ ctx.save(); sh.draw(lt, d, t, blit); ctx.restore();
21
+ ctx.globalAlpha = 1; ctx.letterSpacing = '0px';
22
+ const fade = Math.min(clamp(t / 0.25), clamp((T.dur - t) / 0.4));
23
+ if (fade < 1) { ctx.fillStyle = '#000'; ctx.globalAlpha = 1 - fade; ctx.fillRect(0, 0, W, H); ctx.globalAlpha = 1; }
24
+ drawCaption(t);
25
+ }
26
+
27
+ (async () => {
28
+ try {
29
+ await document.fonts.load('900 100px Inter'); await document.fonts.load('900 100px Inter', 'മലയാളം').catch(() => {}); await document.fonts.load('800 100px Inter'); await document.fonts.load('800 100px Inter', 'മലയാളം').catch(() => {});
30
+ const script = await (await fetch('script.json', { cache: 'no-store' })).json();
31
+ await loadTiming();
32
+ buildCaptions(script);
33
+ GL.width = Math.round(1080 * RES); GL.height = Math.round(1920 * RES);
34
+ const E = makeEngine(GL, { w: GL.width, h: GL.height, samples: AA });
35
+ const { shots, cues } = buildShots(E);
36
+ shots.sort((a, b) => a.at - b.at);
37
+ OP._shots = shots; OP.script = script;
38
+ OP.duration = () => T.dur;
39
+ OP.draw = draw;
40
+ OP.frame = (t, q = 0.92) => { draw(t); return cv.toDataURL('image/jpeg', q); };
41
+ OP.shots = () => shots.map((s, i) => ({ id: s.id, at: +s.at.toFixed(3), end: +(i < shots.length - 1 ? shots[i + 1].at : T.dur).toFixed(3), note: s.note || '' }));
42
+ OP.captions = () => captionList().map((c) => ({ s: +c.s.toFixed(3), e: +c.e.toFixed(3), text: c.words.map((w) => (w.hi ? '*' : '') + w.txt).join(' ') }));
43
+ OP.cues = () => cues.slice().sort((a, b) => a.t - b.t);
44
+ OP.ready = true;
45
+ const q = new URLSearchParams(location.search);
46
+ if (!q.has('capture')) {
47
+ if (q.has('t')) draw(+q.get('t'));
48
+ else {
49
+ const audio = new Audio('data/mix.wav'); let t0 = null; const btn = document.getElementById('play'); btn.hidden = false;
50
+ btn.onclick = () => { btn.hidden = true; t0 = performance.now(); audio.currentTime = 0; audio.play().catch(() => {}); };
51
+ const loop = (now) => { const t = t0 == null ? 0 : (now - t0) / 1000; draw(t); if (t0 != null && t > T.dur) { t0 = null; btn.hidden = false; } requestAnimationFrame(loop); };
52
+ requestAnimationFrame(loop);
53
+ }
54
+ }
55
+ } catch (e) { OP.bootError = String(e && e.stack || e); console.error(e); }
56
+ })();
@@ -0,0 +1,99 @@
1
+ // The Tall Tale style sheet: every picture is drawn by the style's own engine (3D sets + 2D cut-out people).
2
+ import * as THREE from 'three';
3
+ import { ctx } from './core/lib.js';
4
+ import { startBoard, panel, frame, small, rules } from './core/board.js';
5
+ import { makeEngine, camera } from './core/engine.js';
6
+ import * as WD from './core/world.js';
7
+ import { Toon, drawToon, PROPS } from './core/toon.js';
8
+ import { captionText } from './core/captions.js';
9
+
10
+ await document.fonts.load('900 40px Inter'); await document.fonts.load('800 40px Inter'); await document.fonts.load('700 40px Caladea');
11
+ const GL = document.getElementById('gl'), GL2 = document.getElementById('gl2');
12
+ GL.width = 648; GL.height = 1152;
13
+ const E = makeEngine(GL, { w: 648, h: 1152, samples: 0 }), E2 = makeEngine(GL2, { w: 1280, h: 860, samples: 0 });
14
+ const cam = camera(36);
15
+ const B = startBoard(document.getElementById('cv'), { title: 'TALL TALE 3D: VIDEO STYLE SHEET', bg: '#1B1A22', line: '#43414F', head: '#FFF6E6', accent: '#F2C230' });
16
+ const shot = (x, y, w, renderFn, over) => frame(x, y, w, () => { renderFn(); ctx.drawImage(GL, 0, 0, 1080, 1920); if (over) over(); });
17
+ const wide = (box, renderFn, over) => { renderFn(); B.save(); B.beginPath(); B.roundRect(box.x, box.y, box.w, box.h, 12); B.clip(); B.drawImage(GL2, box.x, box.y, box.w, box.h); B.restore(); if (over) over(); };
18
+
19
+ export const CAST = {
20
+ hero: { body: '#E8734A', hat: 'cap', hatCol: '#6E8A4F', neck: 'scarf', neckCol: '#F2C230' },
21
+ skeptic: { body: '#8C6FC9', hat: 'bowler', hatCol: '#3B3346', neck: 'tie', neckCol: '#E2B33C', pattern: 'check', patCol: '#6A50A8', extra: ['mustache'] },
22
+ clerk: { body: '#4FB3A9', hat: 'visor', hatCol: '#2F8F5B', neck: 'collar', pattern: 'vest', patCol: '#2B5E73', extra: ['pencil'] },
23
+ neighbor: { body: '#F2B8C6', hat: 'flower', pattern: 'apron', extra: ['glasses'] },
24
+ kid: { body: '#F2C230', hat: 'beanie', hatCol: '#D8343F', pattern: 'overalls', extra: ['freckles'] },
25
+ boss: { body: '#5C8FD6', hat: 'tophat', hatCol: '#2A2638', neck: 'bowtie', neckCol: '#D8343F', dots: 1, extra: ['monocle'] },
26
+ };
27
+
28
+ // sets
29
+ const S = WD.mainStreet(E);
30
+ const hero = new Toon(CAST.hero); S.scene.add(hero.group);
31
+
32
+ // 1 · hero frame
33
+ let b = panel(20, 80, 540, 520, 1, 'HERO FRAME');
34
+ shot(b.x + 4, b.y, 246, () => {
35
+ hero.at(-1.0, 0, -3); hero.set({ mood: 'smug', armR: [30, -84], holdR: PROPS.mirror });
36
+ cam.position.set(-0.45, 1.5, 0.1); cam.lookAt(-0.95, 1.3, -3); hero.face(cam); S.faceAll(cam);
37
+ E.render(S.scene, cam, { focus: 3.1, aperture: 0.0012, maxblur: 0.008, bloom: 0.15 });
38
+ }, () => captionText('smiling,'));
39
+ [['2D CARTOON PEOPLE', 'thick ink outlines'], ['INSIDE A 3D WORLD', 'sun, shadows, depth'], ['CAMERA ALWAYS MOVES', 'push-ins, pans, fly-overs'], ['A FUNNY TRUE STORY', 'told like a tale'], ['ONE WORD AT A TIME', 'white, centre screen']]
40
+ .forEach(([a, c], i) => { small(a, b.x + 270, b.y + 34 + i * 86, 'left', 16, '#FFF6E6'); small(c.toUpperCase(), b.x + 270, b.y + 58 + i * 86, 'left', 12, '#A9A6B8'); });
41
+
42
+ // 2 · cast
43
+ b = panel(570, 80, 690, 520, 2, 'THE CAST');
44
+ {
45
+ const g = B; g.save(); g.beginPath(); g.roundRect(b.x, b.y, b.w, b.h - 8, 12); g.clip();
46
+ const gr = g.createLinearGradient(0, b.y, 0, b.y + b.h); gr.addColorStop(0, '#9FD3F0'); gr.addColorStop(0.72, '#CDEBF8'); gr.addColorStop(0.72, '#E3B07A'); gr.addColorStop(1, '#C98A52');
47
+ g.fillStyle = gr; g.fillRect(b.x, b.y, b.w, b.h);
48
+ const roles = [['hero', 'THE HERO', { mood: 'smug', armR: [30, -84], holdR: PROPS.mirror }], ['skeptic', 'THE SKEPTIC', { mood: 'laugh', armL: [150, 20] }], ['clerk', 'THE CLERK', { mood: 'shock', armL: [40, -40], armR: [40, -40] }],
49
+ ['neighbor', 'NEIGHBOR', { mood: 'worried', armR: [20, -110] }], ['kid', 'THE KID', { mood: 'happy', legs: 'jump', armL: [140, 10], armR: [140, 10] }], ['boss', 'THE BOSS', { mood: 'proud', armL: [30, -70], holdL: PROPS.stack }]];
50
+ roles.forEach(([k, name, st], i) => { g.save(); g.translate(b.x + 6 + i * 110, b.y + 40); g.scale(0.22, 0.22); drawToon(g, CAST[k], st); g.restore(); small(name, b.x + 62 + i * 110, b.y + b.h - 30, 'center', 13, '#2A2638'); });
51
+ g.restore();
52
+ small('RECIPE: ROUND WHITE HEAD · BEAN BODY · STICK LIMBS · ONE HAT + ONE NECK THING', b.x + b.w / 2, b.y + b.h + 6, 'center', 12, '#A9A6B8');
53
+ }
54
+
55
+ // 3 · faces
56
+ b = panel(1270, 80, 630, 520, 3, 'FACES DO THE ACTING');
57
+ {
58
+ const moods = ['neutral', 'smug', 'happy', 'laugh', 'shock', 'worried', 'angry', 'sad', 'sly', 'proud', 'tired', 'dizzy'];
59
+ moods.forEach((m, i) => {
60
+ const cx = b.x + 52 + (i % 6) * 100, cy = b.y + 20 + Math.floor(i / 6) * 215;
61
+ B.save(); B.beginPath(); B.roundRect(cx - 46, cy, 92, 150, 10); B.fillStyle = '#2A2833'; B.fill(); B.clip();
62
+ B.translate(cx - 75, cy + 4); B.scale(0.29, 0.29); drawToon(B, CAST.hero, { mood: m, look: m === 'sly' ? [1, 0] : [0, 0] }); B.restore();
63
+ small(m.toUpperCase(), cx, cy + 176, 'center', 13, '#FFF6E6');
64
+ });
65
+ }
66
+
67
+ // 4 · worlds
68
+ b = panel(20, 610, 760, 456, 4, 'WORLDS');
69
+ const sw = 206, sx = (i) => b.x + 14 + i * (sw + 40);
70
+ const I = WD.interior(E, { view: WD.snapshot(E, S.scene, (() => { const c = new THREE.PerspectiveCamera(40, 4 / 3, 0.1, 800); c.position.set(0, 1.8, 9); c.lookAt(0, 2.4, -20); S.faceAll(c); return c; })()) });
71
+ shot(sx(0), b.y, sw, () => { hero.at(0.6, 0, -6); hero.set({ mood: 'happy', legs: 'walk', phase: 0.8 }); cam.position.set(-1.6, 2.6, 4); cam.lookAt(0.6, 1.6, -14); hero.face(cam); S.faceAll(cam); E.render(S.scene, cam, { focus: 10, aperture: 0.0004, bloom: 0.15 }); });
72
+ {
73
+ const clerk = new Toon(CAST.clerk), h3 = new Toon(CAST.hero); I.scene.add(clerk.group, h3.group);
74
+ clerk.at(2.75, 0, -3.4); clerk.set({ mood: 'shock', armL: [40, -40], armR: [40, -40] }); h3.at(1.25, 0, -2.6); h3.set({ mood: 'smug', armR: [26, -72], holdR: PROPS.stack });
75
+ shot(sx(1), b.y, sw, () => { cam.position.set(0.1, 1.65, 2.2); cam.lookAt(1.9, 1.25, -3.2); clerk.face(cam); h3.face(cam); E.render(I.scene, cam, { focus: 4.6, aperture: 0.0008, bloom: 0.3 }); });
76
+ }
77
+ const M = WD.meadow(E, { sunset: true });
78
+ {
79
+ const k = new Toon(CAST.kid); M.scene.add(k.group); k.at(0, 0, -2); k.set({ mood: 'happy', armL: [150, 10] }); k.tint('#FFE6DA');
80
+ shot(sx(2), b.y, sw, () => { cam.position.set(0.9, 1.0, 2.6); cam.lookAt(0, 1.4, -2); k.face(cam); E.render(M.scene, cam, { focus: 4.8, aperture: 0.0012, bloom: 0.35 }); });
81
+ }
82
+ ['(A) MAIN STREET', '(B) INSIDE THE SHOP', '(C) THE MEADOW, SUNSET'].forEach((t, i) => small(t, sx(i) + sw / 2, b.y + sw * 16 / 9 + 24, 'center', 14));
83
+
84
+ // 5 · captions
85
+ b = panel(790, 610, 520, 456, 5, 'CAPTIONS');
86
+ wide({ x: b.x, y: b.y, w: b.w, h: b.h - 10 }, () => {
87
+ hero.at(-0.2, 0, -3); hero.set({ mood: 'shock', look: [0.6, 0] });
88
+ const c3 = new THREE.PerspectiveCamera(32, 1280 / 860, 0.05, 800); c3.position.set(0.5, 1.5, 0.6); c3.lookAt(-0.2, 1.4, -3); hero.face(c3); S.faceAll(c3);
89
+ E2.render(S.scene, c3, { focus: 3.4, aperture: 0.003, maxblur: 0.012, bloom: 0.15 });
90
+ }, () => {
91
+ const mid = b.x + b.w / 2;
92
+ [['He bet', 60], ['everything', 160], ['a single', 260]].forEach(([w, y]) => { B.save(); B.translate(mid, b.y + y); B.scale(0.5, 0.5); captionText(w, 0, 0); B.restore(); });
93
+ small('ONE WORD AT A TIME · WHITE · BLACK EDGE · CENTRE', mid, b.y + b.h - 34, 'center', 13, '#FFFFFF');
94
+ });
95
+
96
+ // 6 · rules
97
+ b = panel(1320, 610, 580, 456, 6, 'RULES');
98
+ rules(b, ['OPEN ON THE ENDING: "HE BET IT ALL..."', 'THEN REWIND AND SHOW THE TRICK, STEP BY STEP.', 'NEW SHOT EVERY 1.5-3 S; THE CAMERA NEVER STOPS.', 'FACES REACT ON EVERY BEAT (SMUG, SHOCK, LAUGH).', 'SHORT LINES OF DIALOGUE FROM THE CROWD.', 'BRIGHT SUN BY DAY, PINK SUNSETS, WARM ROOMS.', 'END ON A PUNCHLINE THAT FLIPS THE START.'], b.y + 26, 16, 52);
99
+ window.SHEET_READY = true;