@opengamehq/skills 1.4.0 → 1.5.0

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 (382) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +12 -4
  3. package/dist/.claude-plugin/marketplace.json +26 -0
  4. package/dist/skills/manifest.json +1406 -142
  5. package/dist/skills/opengame-accessibility/CHANGELOG.md +4 -0
  6. package/dist/skills/opengame-accessibility/SKILL.md +48 -32
  7. package/dist/skills/opengame-all-in-one/CHANGELOG.md +21 -0
  8. package/dist/skills/opengame-all-in-one/SKILL.md +195 -0
  9. package/dist/skills/opengame-all-in-one/references/opengame-accessibility/README.md +102 -0
  10. package/dist/skills/opengame-all-in-one/references/opengame-api/README.md +107 -0
  11. package/dist/skills/opengame-all-in-one/references/opengame-assets/README.md +168 -0
  12. package/dist/skills/opengame-all-in-one/references/opengame-assets/references/pipeline.md +164 -0
  13. package/dist/skills/opengame-all-in-one/references/opengame-audio/README.md +238 -0
  14. package/dist/skills/opengame-all-in-one/references/opengame-audio/helpers/audio-chain.js +325 -0
  15. package/dist/skills/opengame-all-in-one/references/opengame-audio/references/mix-notes.md +125 -0
  16. package/dist/skills/opengame-all-in-one/references/opengame-audio/references/qa-without-ears.md +177 -0
  17. package/dist/skills/opengame-all-in-one/references/opengame-capture/README.md +128 -0
  18. package/dist/skills/opengame-all-in-one/references/opengame-capture/references/pipeline.md +114 -0
  19. package/dist/skills/opengame-all-in-one/references/opengame-capture/references/threejs.md +161 -0
  20. package/dist/skills/opengame-all-in-one/references/opengame-characters/README.md +180 -0
  21. package/dist/skills/opengame-all-in-one/references/opengame-characters/references/first-person-body.md +108 -0
  22. package/dist/skills/opengame-all-in-one/references/opengame-characters/references/integration.md +144 -0
  23. package/dist/skills/opengame-all-in-one/references/opengame-characters/references/player-og.md +160 -0
  24. package/dist/skills/opengame-all-in-one/references/opengame-cli/README.md +189 -0
  25. package/dist/skills/opengame-all-in-one/references/opengame-deploy/README.md +223 -0
  26. package/dist/skills/opengame-all-in-one/references/opengame-deploy/references/json-events.md +63 -0
  27. package/dist/skills/opengame-all-in-one/references/opengame-deploy/references/manifest.md +89 -0
  28. package/dist/skills/opengame-all-in-one/references/opengame-deploy/references/packaging.md +119 -0
  29. package/dist/skills/opengame-all-in-one/references/opengame-depth/README.md +154 -0
  30. package/dist/skills/opengame-all-in-one/references/opengame-enemies/README.md +155 -0
  31. package/dist/skills/opengame-all-in-one/references/opengame-enemies/references/pacing-and-bots.md +108 -0
  32. package/dist/skills/opengame-all-in-one/references/opengame-enemies/references/threejs.md +193 -0
  33. package/dist/skills/opengame-all-in-one/references/opengame-front-end/README.md +185 -0
  34. package/dist/skills/opengame-all-in-one/references/opengame-front-end/references/launch.md +50 -0
  35. package/dist/skills/opengame-all-in-one/references/opengame-front-end/references/menus.md +81 -0
  36. package/dist/skills/opengame-all-in-one/references/opengame-game-feel/README.md +181 -0
  37. package/dist/skills/opengame-all-in-one/references/opengame-game-feel/helpers/spring.js +146 -0
  38. package/dist/skills/opengame-all-in-one/references/opengame-game-feel/references/feel-numbers.md +142 -0
  39. package/dist/skills/opengame-all-in-one/references/opengame-game-feel/references/killcam.md +88 -0
  40. package/dist/skills/opengame-all-in-one/references/opengame-jam/README.md +114 -0
  41. package/dist/skills/opengame-all-in-one/references/opengame-lighting/README.md +141 -0
  42. package/dist/skills/opengame-all-in-one/references/opengame-lighting/helpers/light-pool.js +185 -0
  43. package/dist/skills/opengame-all-in-one/references/opengame-loading/README.md +135 -0
  44. package/dist/skills/opengame-all-in-one/references/opengame-loading/helpers/loading-count.mjs +115 -0
  45. package/dist/skills/opengame-all-in-one/references/opengame-loading/references/threejs.md +141 -0
  46. package/dist/skills/opengame-all-in-one/references/opengame-look/README.md +181 -0
  47. package/dist/skills/opengame-all-in-one/references/opengame-look/references/matching-a-reference.md +73 -0
  48. package/dist/skills/opengame-all-in-one/references/opengame-look/references/painterly.md +69 -0
  49. package/dist/skills/opengame-all-in-one/references/opengame-look/references/post-and-lens.md +73 -0
  50. package/dist/skills/opengame-all-in-one/references/opengame-maps/README.md +74 -0
  51. package/dist/skills/opengame-all-in-one/references/opengame-maps/references/map-spec.md +77 -0
  52. package/dist/skills/opengame-all-in-one/references/opengame-mobile/README.md +86 -0
  53. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/README.md +183 -0
  54. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/briefs.md +293 -0
  55. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/day-one-questions.md +46 -0
  56. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/edge-cases.md +27 -0
  57. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/filmable.md +244 -0
  58. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/finishing.md +126 -0
  59. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/measure.md +282 -0
  60. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/montage-capture.md +151 -0
  61. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/montage-gates.md +84 -0
  62. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/montage-genres.md +198 -0
  63. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/montage-grammar.md +320 -0
  64. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/montage-ops.md +127 -0
  65. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/og-snipers-record.md +110 -0
  66. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/owner-eye.md +214 -0
  67. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/reference-study.md +293 -0
  68. package/dist/skills/opengame-all-in-one/references/opengame-montage-make/references/song.md +64 -0
  69. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/README.md +193 -0
  70. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/briefs.md +293 -0
  71. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/day-one-questions.md +46 -0
  72. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/filmable.md +244 -0
  73. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/measure.md +282 -0
  74. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/montage-capture.md +151 -0
  75. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/montage-gates.md +84 -0
  76. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/montage-genres.md +198 -0
  77. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/montage-grammar.md +320 -0
  78. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/montage-ops.md +127 -0
  79. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/og-snipers-record.md +110 -0
  80. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/owner-eye.md +214 -0
  81. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/reference-study.md +293 -0
  82. package/dist/skills/opengame-all-in-one/references/opengame-montage-plan/references/song.md +64 -0
  83. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/README.md +174 -0
  84. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/briefs.md +293 -0
  85. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/day-one-questions.md +46 -0
  86. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/filmable.md +244 -0
  87. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/finishing.md +126 -0
  88. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/measure.md +282 -0
  89. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/montage-capture.md +151 -0
  90. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/montage-gates.md +84 -0
  91. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/montage-genres.md +198 -0
  92. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/montage-grammar.md +320 -0
  93. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/montage-ops.md +127 -0
  94. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/og-snipers-record.md +110 -0
  95. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/owner-eye.md +214 -0
  96. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/reference-study.md +293 -0
  97. package/dist/skills/opengame-all-in-one/references/opengame-montage-review-and-improve/references/song.md +64 -0
  98. package/dist/skills/opengame-all-in-one/references/opengame-multiplayer/README.md +139 -0
  99. package/dist/skills/opengame-all-in-one/references/opengame-multiplayer/references/bot-lobbies.md +71 -0
  100. package/dist/skills/opengame-all-in-one/references/opengame-multiplayer/references/netcode.md +165 -0
  101. package/dist/skills/opengame-all-in-one/references/opengame-performance/README.md +177 -0
  102. package/dist/skills/opengame-all-in-one/references/opengame-performance/helpers/landing-pacer.mjs +86 -0
  103. package/dist/skills/opengame-all-in-one/references/opengame-performance/references/measuring.md +123 -0
  104. package/dist/skills/opengame-all-in-one/references/opengame-performance/references/webgpu.md +86 -0
  105. package/dist/skills/opengame-all-in-one/references/opengame-production/README.md +192 -0
  106. package/dist/skills/opengame-all-in-one/references/opengame-production/references/team.md +107 -0
  107. package/dist/skills/opengame-all-in-one/references/opengame-production/references/templates.md +153 -0
  108. package/dist/skills/opengame-all-in-one/references/opengame-quality-bar/README.md +170 -0
  109. package/dist/skills/opengame-all-in-one/references/opengame-quality-bar/references/cheap-tells.md +43 -0
  110. package/dist/skills/opengame-all-in-one/references/opengame-quality-bar/references/judges.md +95 -0
  111. package/dist/skills/opengame-all-in-one/references/opengame-quality-bar/references/review-prompt.md +32 -0
  112. package/dist/skills/opengame-all-in-one/references/opengame-rhythm/README.md +134 -0
  113. package/dist/skills/opengame-all-in-one/references/opengame-rhythm/references/charting.md +109 -0
  114. package/dist/skills/opengame-all-in-one/references/opengame-rhythm/references/timing.md +92 -0
  115. package/dist/skills/opengame-all-in-one/references/opengame-router/README.md +54 -0
  116. package/dist/skills/opengame-all-in-one/references/opengame-router/references/process.md +38 -0
  117. package/dist/skills/opengame-all-in-one/references/opengame-scene-audit/README.md +136 -0
  118. package/dist/skills/opengame-all-in-one/references/opengame-scene-audit/helpers/scene-audit.js +677 -0
  119. package/dist/skills/opengame-all-in-one/references/opengame-sdk/README.md +283 -0
  120. package/dist/skills/opengame-all-in-one/references/opengame-sdk/references/engines.md +93 -0
  121. package/dist/skills/opengame-all-in-one/references/opengame-sdk/references/frame.md +107 -0
  122. package/dist/skills/opengame-all-in-one/references/opengame-sdk/references/identity.md +111 -0
  123. package/dist/skills/opengame-all-in-one/references/opengame-sdk/references/leaderboards.md +115 -0
  124. package/dist/skills/opengame-all-in-one/references/opengame-sdk/references/radio.md +71 -0
  125. package/dist/skills/opengame-all-in-one/references/opengame-stability/README.md +112 -0
  126. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/README.md +160 -0
  127. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/archetypes.md +113 -0
  128. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/briefs.md +273 -0
  129. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/core.md +129 -0
  130. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/craft.md +299 -0
  131. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/edge-cases.md +27 -0
  132. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/filmable.md +244 -0
  133. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/finishing.md +126 -0
  134. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/gates.md +184 -0
  135. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/measure.md +282 -0
  136. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/music.md +148 -0
  137. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/og-clash-record.md +133 -0
  138. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/ops.md +154 -0
  139. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/owner-eye.md +214 -0
  140. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/review.md +141 -0
  141. package/dist/skills/opengame-all-in-one/references/opengame-trailer-make/references/title.md +92 -0
  142. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/README.md +172 -0
  143. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/archetypes.md +113 -0
  144. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/briefs.md +273 -0
  145. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/core.md +129 -0
  146. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/craft.md +299 -0
  147. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/edge-cases.md +27 -0
  148. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/filmable.md +244 -0
  149. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/finishing.md +126 -0
  150. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/gates.md +184 -0
  151. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/measure.md +282 -0
  152. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/music.md +148 -0
  153. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/og-clash-record.md +133 -0
  154. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/ops.md +154 -0
  155. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/owner-eye.md +214 -0
  156. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/reference-set.md +92 -0
  157. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/review.md +141 -0
  158. package/dist/skills/opengame-all-in-one/references/opengame-trailer-plan/references/title.md +92 -0
  159. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/README.md +141 -0
  160. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/archetypes.md +113 -0
  161. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/briefs.md +273 -0
  162. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/core.md +129 -0
  163. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/craft.md +299 -0
  164. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/edge-cases.md +27 -0
  165. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/filmable.md +244 -0
  166. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/finishing.md +126 -0
  167. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/gates.md +184 -0
  168. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/measure.md +282 -0
  169. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/music.md +148 -0
  170. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/og-clash-record.md +133 -0
  171. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/ops.md +154 -0
  172. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/owner-eye.md +214 -0
  173. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/review.md +141 -0
  174. package/dist/skills/opengame-all-in-one/references/opengame-trailer-review-and-improve/references/title.md +92 -0
  175. package/dist/skills/opengame-all-in-one/references/opengame-verification/README.md +197 -0
  176. package/dist/skills/opengame-all-in-one/references/opengame-verification/helpers/browser-evidence.mjs +74 -0
  177. package/dist/skills/opengame-all-in-one/references/opengame-weapons/README.md +179 -0
  178. package/dist/skills/opengame-all-in-one/references/opengame-weapons/references/handling-numbers.md +114 -0
  179. package/dist/skills/opengame-all-in-one/references/opengame-weapons/references/reloads-and-hands.md +96 -0
  180. package/dist/skills/opengame-all-in-one/references/opengame-weapons/references/sights-and-scopes.md +98 -0
  181. package/dist/skills/opengame-all-in-one/references/opengame-weapons/references/threejs.md +240 -0
  182. package/dist/skills/opengame-all-in-one/references/opengame-world-physics/README.md +141 -0
  183. package/dist/skills/opengame-all-in-one/references/opengame-world-physics/references/measured-failures.md +79 -0
  184. package/dist/skills/opengame-api/CHANGELOG.md +8 -0
  185. package/dist/skills/opengame-api/SKILL.md +39 -13
  186. package/dist/skills/opengame-assets/CHANGELOG.md +11 -0
  187. package/dist/skills/opengame-assets/SKILL.md +79 -31
  188. package/dist/skills/opengame-assets/references/pipeline.md +67 -0
  189. package/dist/skills/opengame-audio/CHANGELOG.md +11 -0
  190. package/dist/skills/opengame-audio/SKILL.md +129 -41
  191. package/dist/skills/opengame-audio/references/mix-notes.md +44 -1
  192. package/dist/skills/opengame-audio/references/qa-without-ears.md +177 -0
  193. package/dist/skills/opengame-capture/CHANGELOG.md +10 -0
  194. package/dist/skills/opengame-capture/SKILL.md +44 -20
  195. package/dist/skills/opengame-capture/references/pipeline.md +33 -1
  196. package/dist/skills/opengame-capture/references/threejs.md +17 -1
  197. package/dist/skills/opengame-characters/CHANGELOG.md +15 -0
  198. package/dist/skills/opengame-characters/SKILL.md +94 -39
  199. package/dist/skills/opengame-characters/references/first-person-body.md +108 -0
  200. package/dist/skills/opengame-characters/references/player-og.md +1 -1
  201. package/dist/skills/opengame-cli/CHANGELOG.md +12 -0
  202. package/dist/skills/opengame-cli/SKILL.md +11 -10
  203. package/dist/skills/opengame-deploy/CHANGELOG.md +20 -0
  204. package/dist/skills/opengame-deploy/SKILL.md +41 -21
  205. package/dist/skills/opengame-deploy/references/json-events.md +6 -5
  206. package/dist/skills/opengame-deploy/references/packaging.md +28 -26
  207. package/dist/skills/opengame-depth/CHANGELOG.md +8 -0
  208. package/dist/skills/opengame-depth/SKILL.md +61 -33
  209. package/dist/skills/opengame-enemies/CHANGELOG.md +10 -0
  210. package/dist/skills/opengame-enemies/SKILL.md +96 -40
  211. package/dist/skills/opengame-enemies/references/pacing-and-bots.md +108 -0
  212. package/dist/skills/opengame-enemies/references/threejs.md +59 -0
  213. package/dist/skills/opengame-front-end/CHANGELOG.md +4 -0
  214. package/dist/skills/opengame-front-end/SKILL.md +85 -39
  215. package/dist/skills/opengame-front-end/references/menus.md +42 -8
  216. package/dist/skills/opengame-game-feel/CHANGELOG.md +11 -0
  217. package/dist/skills/opengame-game-feel/SKILL.md +95 -47
  218. package/dist/skills/opengame-game-feel/references/feel-numbers.md +59 -0
  219. package/dist/skills/opengame-game-feel/references/killcam.md +88 -0
  220. package/dist/skills/opengame-jam/CHANGELOG.md +8 -0
  221. package/dist/skills/opengame-jam/SKILL.md +46 -31
  222. package/dist/skills/opengame-lighting/CHANGELOG.md +9 -0
  223. package/dist/skills/opengame-lighting/SKILL.md +85 -34
  224. package/dist/skills/opengame-loading/CHANGELOG.md +4 -0
  225. package/dist/skills/opengame-loading/SKILL.md +78 -38
  226. package/dist/skills/opengame-loading/helpers/loading-count.mjs +115 -0
  227. package/dist/skills/opengame-loading/references/threejs.md +32 -7
  228. package/dist/skills/opengame-look/CHANGELOG.md +9 -0
  229. package/dist/skills/opengame-look/SKILL.md +122 -51
  230. package/dist/skills/opengame-look/references/matching-a-reference.md +73 -0
  231. package/dist/skills/opengame-look/references/painterly.md +69 -0
  232. package/dist/skills/opengame-look/references/post-and-lens.md +10 -3
  233. package/dist/skills/opengame-maps/CHANGELOG.md +9 -0
  234. package/dist/skills/opengame-maps/SKILL.md +78 -0
  235. package/dist/skills/opengame-maps/references/map-spec.md +77 -0
  236. package/dist/skills/opengame-mobile/CHANGELOG.md +4 -0
  237. package/dist/skills/opengame-mobile/SKILL.md +18 -18
  238. package/dist/skills/opengame-montage-make/CHANGELOG.md +5 -0
  239. package/dist/skills/opengame-montage-make/SKILL.md +187 -0
  240. package/dist/skills/opengame-montage-make/references/briefs.md +293 -0
  241. package/dist/skills/opengame-montage-make/references/day-one-questions.md +46 -0
  242. package/dist/skills/opengame-montage-make/references/edge-cases.md +27 -0
  243. package/dist/skills/opengame-montage-make/references/filmable.md +244 -0
  244. package/dist/skills/opengame-montage-make/references/finishing.md +126 -0
  245. package/dist/skills/opengame-montage-make/references/measure.md +282 -0
  246. package/dist/skills/opengame-montage-make/references/montage-capture.md +151 -0
  247. package/dist/skills/opengame-montage-make/references/montage-gates.md +84 -0
  248. package/dist/skills/opengame-montage-make/references/montage-genres.md +198 -0
  249. package/dist/skills/opengame-montage-make/references/montage-grammar.md +320 -0
  250. package/dist/skills/opengame-montage-make/references/montage-ops.md +127 -0
  251. package/dist/skills/opengame-montage-make/references/og-snipers-record.md +110 -0
  252. package/dist/skills/opengame-montage-make/references/owner-eye.md +214 -0
  253. package/dist/skills/opengame-montage-make/references/reference-study.md +293 -0
  254. package/dist/skills/opengame-montage-make/references/song.md +64 -0
  255. package/dist/skills/opengame-montage-plan/CHANGELOG.md +5 -0
  256. package/dist/skills/opengame-montage-plan/SKILL.md +197 -0
  257. package/dist/skills/opengame-montage-plan/references/briefs.md +293 -0
  258. package/dist/skills/opengame-montage-plan/references/day-one-questions.md +46 -0
  259. package/dist/skills/opengame-montage-plan/references/filmable.md +244 -0
  260. package/dist/skills/opengame-montage-plan/references/measure.md +282 -0
  261. package/dist/skills/opengame-montage-plan/references/montage-capture.md +151 -0
  262. package/dist/skills/opengame-montage-plan/references/montage-gates.md +84 -0
  263. package/dist/skills/opengame-montage-plan/references/montage-genres.md +198 -0
  264. package/dist/skills/opengame-montage-plan/references/montage-grammar.md +320 -0
  265. package/dist/skills/opengame-montage-plan/references/montage-ops.md +127 -0
  266. package/dist/skills/opengame-montage-plan/references/og-snipers-record.md +110 -0
  267. package/dist/skills/opengame-montage-plan/references/owner-eye.md +214 -0
  268. package/dist/skills/opengame-montage-plan/references/reference-study.md +293 -0
  269. package/dist/skills/opengame-montage-plan/references/song.md +64 -0
  270. package/dist/skills/opengame-montage-review-and-improve/CHANGELOG.md +5 -0
  271. package/dist/skills/opengame-montage-review-and-improve/SKILL.md +178 -0
  272. package/dist/skills/opengame-montage-review-and-improve/references/briefs.md +293 -0
  273. package/dist/skills/opengame-montage-review-and-improve/references/day-one-questions.md +46 -0
  274. package/dist/skills/opengame-montage-review-and-improve/references/filmable.md +244 -0
  275. package/dist/skills/opengame-montage-review-and-improve/references/finishing.md +126 -0
  276. package/dist/skills/opengame-montage-review-and-improve/references/measure.md +282 -0
  277. package/dist/skills/opengame-montage-review-and-improve/references/montage-capture.md +151 -0
  278. package/dist/skills/opengame-montage-review-and-improve/references/montage-gates.md +84 -0
  279. package/dist/skills/opengame-montage-review-and-improve/references/montage-genres.md +198 -0
  280. package/dist/skills/opengame-montage-review-and-improve/references/montage-grammar.md +320 -0
  281. package/dist/skills/opengame-montage-review-and-improve/references/montage-ops.md +127 -0
  282. package/dist/skills/opengame-montage-review-and-improve/references/og-snipers-record.md +110 -0
  283. package/dist/skills/opengame-montage-review-and-improve/references/owner-eye.md +214 -0
  284. package/dist/skills/opengame-montage-review-and-improve/references/reference-study.md +293 -0
  285. package/dist/skills/opengame-montage-review-and-improve/references/song.md +64 -0
  286. package/dist/skills/opengame-multiplayer/CHANGELOG.md +15 -0
  287. package/dist/skills/opengame-multiplayer/SKILL.md +143 -0
  288. package/dist/skills/opengame-multiplayer/references/bot-lobbies.md +71 -0
  289. package/dist/skills/opengame-multiplayer/references/netcode.md +165 -0
  290. package/dist/skills/opengame-performance/CHANGELOG.md +8 -0
  291. package/dist/skills/opengame-performance/SKILL.md +106 -65
  292. package/dist/skills/opengame-performance/helpers/landing-pacer.mjs +86 -0
  293. package/dist/skills/opengame-performance/references/measuring.md +51 -0
  294. package/dist/skills/opengame-performance/references/webgpu.md +86 -0
  295. package/dist/skills/opengame-production/CHANGELOG.md +13 -0
  296. package/dist/skills/opengame-production/SKILL.md +119 -54
  297. package/dist/skills/opengame-production/references/team.md +107 -0
  298. package/dist/skills/opengame-production/references/templates.md +106 -16
  299. package/dist/skills/opengame-quality-bar/CHANGELOG.md +10 -0
  300. package/dist/skills/opengame-quality-bar/SKILL.md +94 -42
  301. package/dist/skills/opengame-quality-bar/references/cheap-tells.md +14 -7
  302. package/dist/skills/opengame-quality-bar/references/judges.md +95 -0
  303. package/dist/skills/opengame-quality-bar/references/review-prompt.md +10 -5
  304. package/dist/skills/opengame-rhythm/CHANGELOG.md +5 -0
  305. package/dist/skills/opengame-rhythm/SKILL.md +138 -0
  306. package/dist/skills/opengame-rhythm/references/charting.md +109 -0
  307. package/dist/skills/opengame-rhythm/references/timing.md +92 -0
  308. package/dist/skills/opengame-router/CHANGELOG.md +8 -0
  309. package/dist/skills/opengame-router/SKILL.md +14 -7
  310. package/dist/skills/opengame-scene-audit/CHANGELOG.md +15 -0
  311. package/dist/skills/opengame-scene-audit/SKILL.md +64 -47
  312. package/dist/skills/opengame-scene-audit/helpers/scene-audit.js +97 -19
  313. package/dist/skills/opengame-sdk/CHANGELOG.md +12 -0
  314. package/dist/skills/opengame-sdk/SKILL.md +26 -9
  315. package/dist/skills/opengame-sdk/references/engines.md +2 -2
  316. package/dist/skills/opengame-sdk/references/identity.md +10 -11
  317. package/dist/skills/opengame-stability/CHANGELOG.md +4 -0
  318. package/dist/skills/opengame-stability/SKILL.md +59 -27
  319. package/dist/skills/opengame-trailer-make/CHANGELOG.md +5 -0
  320. package/dist/skills/opengame-trailer-make/SKILL.md +164 -0
  321. package/dist/skills/opengame-trailer-make/references/archetypes.md +113 -0
  322. package/dist/skills/opengame-trailer-make/references/briefs.md +273 -0
  323. package/dist/skills/opengame-trailer-make/references/core.md +129 -0
  324. package/dist/skills/opengame-trailer-make/references/craft.md +299 -0
  325. package/dist/skills/opengame-trailer-make/references/edge-cases.md +27 -0
  326. package/dist/skills/opengame-trailer-make/references/filmable.md +244 -0
  327. package/dist/skills/opengame-trailer-make/references/finishing.md +126 -0
  328. package/dist/skills/opengame-trailer-make/references/gates.md +184 -0
  329. package/dist/skills/opengame-trailer-make/references/measure.md +282 -0
  330. package/dist/skills/opengame-trailer-make/references/music.md +148 -0
  331. package/dist/skills/opengame-trailer-make/references/og-clash-record.md +133 -0
  332. package/dist/skills/opengame-trailer-make/references/ops.md +154 -0
  333. package/dist/skills/opengame-trailer-make/references/owner-eye.md +214 -0
  334. package/dist/skills/opengame-trailer-make/references/review.md +141 -0
  335. package/dist/skills/opengame-trailer-make/references/title.md +92 -0
  336. package/dist/skills/opengame-trailer-plan/CHANGELOG.md +5 -0
  337. package/dist/skills/opengame-trailer-plan/SKILL.md +176 -0
  338. package/dist/skills/opengame-trailer-plan/references/archetypes.md +113 -0
  339. package/dist/skills/opengame-trailer-plan/references/briefs.md +273 -0
  340. package/dist/skills/opengame-trailer-plan/references/core.md +129 -0
  341. package/dist/skills/opengame-trailer-plan/references/craft.md +299 -0
  342. package/dist/skills/opengame-trailer-plan/references/edge-cases.md +27 -0
  343. package/dist/skills/opengame-trailer-plan/references/filmable.md +244 -0
  344. package/dist/skills/opengame-trailer-plan/references/finishing.md +126 -0
  345. package/dist/skills/opengame-trailer-plan/references/gates.md +184 -0
  346. package/dist/skills/opengame-trailer-plan/references/measure.md +282 -0
  347. package/dist/skills/opengame-trailer-plan/references/music.md +148 -0
  348. package/dist/skills/opengame-trailer-plan/references/og-clash-record.md +133 -0
  349. package/dist/skills/opengame-trailer-plan/references/ops.md +154 -0
  350. package/dist/skills/opengame-trailer-plan/references/owner-eye.md +214 -0
  351. package/dist/skills/opengame-trailer-plan/references/reference-set.md +92 -0
  352. package/dist/skills/opengame-trailer-plan/references/review.md +141 -0
  353. package/dist/skills/opengame-trailer-plan/references/title.md +92 -0
  354. package/dist/skills/opengame-trailer-review-and-improve/CHANGELOG.md +5 -0
  355. package/dist/skills/opengame-trailer-review-and-improve/SKILL.md +145 -0
  356. package/dist/skills/opengame-trailer-review-and-improve/references/archetypes.md +113 -0
  357. package/dist/skills/opengame-trailer-review-and-improve/references/briefs.md +273 -0
  358. package/dist/skills/opengame-trailer-review-and-improve/references/core.md +129 -0
  359. package/dist/skills/opengame-trailer-review-and-improve/references/craft.md +299 -0
  360. package/dist/skills/opengame-trailer-review-and-improve/references/edge-cases.md +27 -0
  361. package/dist/skills/opengame-trailer-review-and-improve/references/filmable.md +244 -0
  362. package/dist/skills/opengame-trailer-review-and-improve/references/finishing.md +126 -0
  363. package/dist/skills/opengame-trailer-review-and-improve/references/gates.md +184 -0
  364. package/dist/skills/opengame-trailer-review-and-improve/references/measure.md +282 -0
  365. package/dist/skills/opengame-trailer-review-and-improve/references/music.md +148 -0
  366. package/dist/skills/opengame-trailer-review-and-improve/references/og-clash-record.md +133 -0
  367. package/dist/skills/opengame-trailer-review-and-improve/references/ops.md +154 -0
  368. package/dist/skills/opengame-trailer-review-and-improve/references/owner-eye.md +214 -0
  369. package/dist/skills/opengame-trailer-review-and-improve/references/review.md +141 -0
  370. package/dist/skills/opengame-trailer-review-and-improve/references/title.md +92 -0
  371. package/dist/skills/opengame-verification/CHANGELOG.md +11 -0
  372. package/dist/skills/opengame-verification/SKILL.md +113 -48
  373. package/dist/skills/opengame-weapons/CHANGELOG.md +11 -0
  374. package/dist/skills/opengame-weapons/SKILL.md +129 -55
  375. package/dist/skills/opengame-weapons/references/handling-numbers.md +42 -0
  376. package/dist/skills/opengame-weapons/references/reloads-and-hands.md +96 -0
  377. package/dist/skills/opengame-weapons/references/sights-and-scopes.md +98 -0
  378. package/dist/skills/opengame-weapons/references/threejs.md +71 -0
  379. package/dist/skills/opengame-world-physics/CHANGELOG.md +9 -0
  380. package/dist/skills/opengame-world-physics/SKILL.md +55 -24
  381. package/dist/skills/opengame-world-physics/references/measured-failures.md +28 -1
  382. package/package.json +1 -1
@@ -0,0 +1,161 @@
1
+ # Capture in three.js
2
+
3
+ Each section matches a rule in `SKILL.md`. API names were checked against three.js r185;
4
+ check the version the game pins before copying.
5
+
6
+ ## Drive the clock yourself
7
+
8
+ Every system takes `dt` from one function. Nothing reads `performance.now()`, `Date.now()`
9
+ or a `THREE.Clock` on its own.
10
+
11
+ ```js
12
+ const sim = { time: 0, scale: 1 }
13
+
14
+ function step(dt) {
15
+ const scaled = dt * sim.scale
16
+ sim.time += scaled
17
+ physics.step(scaled) // fixed internal step, sub-stepped, see below
18
+ mixer.update(scaled) // AnimationMixer takes the delta you give it
19
+ effects.uniforms.uTime.value = sim.time
20
+ cameraRig.update(scaled) // smoothing reads the same delta
21
+ audioDirector.update(sim.time) // cues are logged in simulation time
22
+ }
23
+
24
+ if (!captureMode) {
25
+ const timer = new THREE.Timer() // core since recent releases; older ones ship three/addons/misc/Timer.js
26
+ renderer.setAnimationLoop((now) => { timer.update(now); step(timer.getDelta()); renderer.render(scene, camera) })
27
+ } else {
28
+ window.__capture = {
29
+ ready, // the promise from "Ready means resident"
30
+ async frame(dt) { step(dt); renderer.render(scene, camera); return readFrame() },
31
+ }
32
+ }
33
+ ```
34
+
35
+ - Slow motion is a smaller `dt` passed to `frame`, so a 1/240 step at 60 output fps is
36
+ 0.25x. Keep `sim.scale` for gameplay effects such as hitstop, and turn those off with the
37
+ cinematic flag.
38
+ - Physics: Rapier's `world.timestep` and `world.step()`, or cannon-es `world.step(fixed, dt,
39
+ maxSubSteps)`. Interpolate body transforms for render so a step smaller than the physics
40
+ step does not hold a pose and then jump.
41
+ - Shaders: feed effects a time uniform you own. TSL's built-in `time` and `deltaTime` nodes
42
+ follow the renderer's own frame timing, not your step.
43
+ - Seeds: replace `Math.random()` in game systems with a seeded generator per system,
44
+ derived from one global seed. `THREE.MathUtils.seededRandom(seed)` exists for quick use;
45
+ a small PRNG per system (mulberry32 or similar) keeps systems from consuming each other's
46
+ numbers.
47
+ - Code you do not own: replace `performance.now`, `Date.now` and `requestAnimationFrame`
48
+ with Playwright's `page.addInitScript` before the game loads, and prepend the same shim
49
+ to every worker script. OC found that a page-level fake clock froze timers and that
50
+ virtual time did not reach workers, so workers need their own shim.
51
+
52
+ ## Cuts and temporal effects
53
+
54
+ - `TAARenderPass` (`three/addons/postprocessing/TAARenderPass.js`): set
55
+ `accumulateIndex = -1` on a cut to restart accumulation.
56
+ - Other temporal passes (TRAA, SSR or SSAO history, temporal upscalers): clear the history
57
+ render target on a cut. Read the pass's source to find it; there is no shared reset call.
58
+ - Velocity-based motion blur: on a cut, copy the current camera and object matrices into
59
+ the previous-frame matrices so velocity is zero for that frame. Tie the shutter to the
60
+ step: OC set blur strength to 60 times the step in seconds.
61
+ - Auto exposure: set the adapted luminance straight to the new shot's target.
62
+ - Clean feed: put world markers on their own layer and hide them with
63
+ `camera.layers.disable(n)`. Give each DOM HUD element a `data-hud` name and hide by mask
64
+ with a class on the root.
65
+
66
+ ## Ready
67
+
68
+ ```js
69
+ const ready = (async () => {
70
+ await assetsLoaded // your loader's promise, or DefaultLoadingManager.onLoad
71
+ for (const texture of allTextures) renderer.initTexture(texture) // upload before the first frame
72
+ await renderer.compileAsync(scene, camera) // pipelines and programs
73
+ await soundBanksDecoded
74
+ quality.lock() // no dynamic resolution while capturing
75
+ return { build: BUILD_ID }
76
+ })()
77
+ ```
78
+
79
+ With `WebGPURenderer`, `await renderer.init()` before any of this.
80
+
81
+ ## Probe
82
+
83
+ After `scene.updateMatrixWorld()`, `bone.getWorldPosition(v)` gives the joint the skinning
84
+ used this frame. `v.clone().project(camera)` gives normalised device coordinates; map to
85
+ pixels with the drawing buffer size. Draw those points over the captured frame on day one.
86
+
87
+ ## Reading frames
88
+
89
+ - WebGL: `new THREE.WebGLRenderer({ preserveDrawingBuffer: true })` keeps the last frame
90
+ readable after the browser composites. It is set at context creation and can cost
91
+ performance, so choose it at boot from the capture flag. Without it, read in the same task
92
+ right after `renderer.render()`.
93
+ - WebGPU: `await renderer.readRenderTargetPixelsAsync(target, x, y, w, h)` from a render
94
+ target, or build a `VideoFrame` from the canvas right after rendering. If you configure the
95
+ canvas context yourself, add `GPUTextureUsage.COPY_SRC` to its usage; OC read its swapchain
96
+ with `copyTextureToBuffer` and `mapAsync` in 30.4 ms at 4K.
97
+ - Headless WebGPU: read the canvas with `canvas.toBlob()` in the same task that rendered
98
+ it, one copy per frame, and hand frames to the host in batches (LC returned 20 at a
99
+ time). On LC, `drawImage` of the WebGPU canvas into a 2D canvas, `captureStream()`, the
100
+ CDP screencast and `page.screenshot` all returned black (79 of 79), so prove the path on
101
+ one frame and check its mean before a batch:
102
+
103
+ ```js
104
+ async function captureFrame(dt) { // capture mode only, behind its flag
105
+ step(dt)
106
+ renderer.render(scene, camera) // the read below must be in this task
107
+ const blob = await new Promise((r) => renderer.domElement.toBlob(r, 'image/png'))
108
+ return blob // check the first one is not near black
109
+ }
110
+ ```
111
+
112
+ - `canvas.captureStream(0)` with `track.requestFrame()` after each render feeds a
113
+ `MediaRecorder`. Its timestamps are wall time, so use it for real-time previews only,
114
+ and check it is not black on a WebGPU canvas.
115
+ - Refuse a software rasteriser. WebGL: read `UNMASKED_RENDERER_WEBGL` through
116
+ `WEBGL_debug_renderer_info` and stop on SwiftShader or llvmpipe. WebGPU: inspect
117
+ `adapter.info`, including `isFallbackAdapter` where the browser reports it.
118
+ - Headless runs: Playwright with `viewport: { width: 3840, height: 2160 }` and
119
+ `deviceScaleFactor: 1` for native 4K.
120
+
121
+ ## Encoding with WebCodecs
122
+
123
+ ```js
124
+ const config = {
125
+ codec: 'hvc1.1.6.L153.B0', width: 3840, height: 2160, // HEVC Main, level 5.1
126
+ bitrate: 300_000_000, framerate: 60, hardwareAcceleration: 'prefer-hardware',
127
+ }
128
+ if (!(await VideoEncoder.isConfigSupported(config)).supported) throw new Error('encoder config not supported')
129
+ const encoder = new VideoEncoder({ output: (chunk, meta) => muxer.addVideoChunk(chunk, meta), error: (e) => { throw e } })
130
+ encoder.configure(config)
131
+
132
+ // per stepped frame i
133
+ const frame = new VideoFrame(nv12, {
134
+ format: 'NV12', codedWidth: 3840, codedHeight: 2160,
135
+ timestamp: Math.round(i * 1e6 / 60), duration: Math.round(1e6 / 60),
136
+ colorSpace: { primaries: 'bt709', transfer: 'bt709', matrix: 'bt709', fullRange: false },
137
+ })
138
+ encoder.encode(frame, { keyFrame: i % 120 === 0 })
139
+ frame.close()
140
+ while (encoder.encodeQueueSize > 4) await new Promise((r) => setTimeout(r, 0))
141
+ ```
142
+
143
+ - `nv12` is a buffer you produce with a GPU pass that converts the rendered RGB to NV12 with
144
+ the BT.709 matrix. A `VideoFrame` built straight from the canvas lets the encoder pick the
145
+ matrix, and OC's came out tagged BT.601.
146
+ - Mux with a library such as Mediabunny. Timestamps come from the frame index, never from
147
+ the clock, which is what makes a slow capture play back at full speed.
148
+ - Check the file with `ffprobe -show_streams`: size, rate, `color_space=bt709`,
149
+ `color_transfer=bt709`, `color_primaries=bt709`.
150
+
151
+ ## Audio
152
+
153
+ three.js audio runs on a real-time `AudioContext`, which cannot be stepped.
154
+
155
+ - 1x takes: connect the master gain to a `MediaStreamAudioDestinationNode` and record it, or
156
+ tap it with an `AudioWorklet`, then trim the output latency against a sync cue.
157
+ - Stepped and slow-motion takes: keep the cue log (cue id, simulation time, gain, position
158
+ relative to the camera) and render it afterwards in an `OfflineAudioContext`, which runs
159
+ faster than real time and gives the same result every run. This is a suggestion for
160
+ three.js; OC drained its own mixer's ring buffer instead, `sampleRate * step` samples per
161
+ frame.
@@ -0,0 +1,180 @@
1
+ > Carried from `opengame-characters` 1.2.1. Read it when: Bring generated or imported 3D characters into a browser game so they hold up in play. Covers clips audited on each figure's own rig, a first-person body never see-through, captured motion with IK only for contact, natural joint bands, holds from photographs, generated people, eased gaits and planted feet, mitten hands, canon sheets, instant customisation and the OG spec. Use when a character T-poses, tears, jitters, bends wrong, slides, clips the gun, drifts from the art, or shows an OG.
2
+
3
+
4
+ # Characters
5
+
6
+ A character is finished when it is right in the live spawn path, from the gameplay
7
+ camera, while moving, including from behind. A model that loads, a rig that binds and
8
+ a clip that plays are three separate facts, and none of them proves the visible
9
+ character is correct. LC's owner raised the player's body, hands and holds more than
10
+ anything else, about 19 times; solver-posed arms were rejected three times in 17 hours,
11
+ and a joint check that read "0 faults" passed wrists the owner called inhuman.
12
+
13
+ Rules carry five tags; `opengame-quality-bar` explains them and the game codes.
14
+ Generation and Meshy specifics are in `opengame-assets`. LC's first-person body, joint
15
+ limits and generated-people numbers are in
16
+ [references/first-person-body.md](references/first-person-body.md).
17
+
18
+ ## Rules
19
+
20
+ ### Bodies keep their volume and their surface in every clip, on their own rig
21
+ - **Invariant:** No character or creature pinches, hourglasses, splits, tears or bends wrong at the waist, hips, shoulders or neck in any clip at any level of detail, every clip plays on the rig it was made or captured for, and this is checked when the asset is imported and again in motion.
22
+ - **Technique:** Auto-rig each generated figure and play library actions on that rig rather than retargeting onto a shared one. At import, pose every figure, clip and frame offline with the game's own skinning: measure the posed waist width against the bind waist, and count edges stretched or squeezed past a limit, listing failing clips and never playing them. Check that no thigh weight reaches above the hip or crosses to the other leg, that hoods and collars are not weighted into the head, that skirts and aprons follow the hips, that normals agree with face winding, and that left and right parts match. Spread twist over several torso bones. Then watch a turntable of every clip, because the numbers pass before the eye does.
23
+ - **Reference configuration:** OC passes a waist at 0.95 or more of rest, and below 0.90 is a visible pinch. Two zombie types sat at 0.81 and 0.79; after reweighting all 20 heroes reached 0.957 or more and the zombies 0.97 to 0.99. A bind waist at 63 to 65% of hip depth reads as an hourglass even with good weights. One waist kept 65% of its width before the fix and 98% after; an apron weighted to the thighs filled the gap between the legs; a hook was weighted to the thigh instead of the hand; one shoe was 27% longer than its pair. The owner sent three messages in about 30 minutes ("we cant have that on any character or creature!"), and the defect was declared fixed by numbers while screenshots still showed it. LC's shared rig with retargeted clips "failed every clip: 2 to 17% of the surface strained and edges pulled 40 to 150 times. That is what the owner saw." On each figure's own rig 572 of 572 clips passed, where torn means an edge over 3x or under 0.25x its bind length and a clip fails above 1% torn at any level of detail. Dual quaternion skinning measured worse (5.1% strained against 4.0%).
24
+ - **Applies when:** Every skinned character or creature, generated or bought, with a motion library.
25
+ - **Verify:** The import report lists the waist ratio and torn share per clip for every body, worst-frame sheets are opened large, and a turntable of each clip in play shows no pinch.
26
+
27
+ ### A generated body is measured against a human before it is animated
28
+ - **Invariant:** Every generated figure has human proportions at the size it fills the player's screen, a crowd's statures vary, and no weight stretches an edge past a limit over a joint's range.
29
+ - **Technique:** Print a proportions sheet per figure (stature, head, arm, upper arm against forearm, hand, wrist) and fix it before rigging. Vary stature across a crowd. Weight by a diffused field over a welded shell rather than by distance from the bone, and gate edge stretch per joint over its whole range. Judge figures in the game's light at arm's length.
30
+ - **Reference configuration:** LC's owner: "the characters and their meshes and zomebis are all fucked up and like dismorph and the way joins turn not all [photorealistic". Every zombie had stood exactly 1.80 m with heads 25 to 35% too big, the other soldier's arm was 26.1% of his height (a man's is 33.4%), and the hands were "0.132 x 0.075 m against a man's 0.095 x 0.03". After: stature 1.64 to 1.90 m, head 0.135 to 0.145 of height, arm 33%, upper arm 1.2x the forearm, wrist 0.55 of the forearm's width; edges over 2x at the hip went from 116 to 0, after "three rules by distance from the bone failed". OC's canon doc said 2.2 heads tall while its measured turnaround was 2.7 (below).
31
+ - **Applies when:** Every game using generated or bought humanoids. Stylised characters measure against their own canon sheet instead.
32
+ - **Verify:** The proportions sheet and worst-edge list per figure, and a lit sheet at arm's length.
33
+
34
+ ### Generated people are ordered for skinning, prepared, then rigged
35
+ - **Invariant:** Generated human figures arrive in a pose and outfit that rigging can handle, are reduced with their faces and hands intact, and are rigged only after that preparation, on the mesh the game ships.
36
+ - **Technique:** Ask for an A-pose with the arms held well out from the body, in close-fitting clothes, and look at the picture before paying for the mesh. Re-bake to a target triangle count with the head and hands dense, the head on its own texture sheet and its own reduction budget, and one unwrap shared by every level of detail. Rig the prepared mesh, never the raw one, and refuse a mesh that drifts from its rig's mesh. Long coats and capes fail on automatic rigs: avoid them or rig them by hand. Spend only with the person's own account and their yes on the cost (`opengame-assets`).
37
+ - **Reference configuration:** LC's dead cost about $2.44 to $2.66 a person with 27 actions: an A-pose concept, image-to-3D at 600k to 1M triangles, re-baked to about 11,500 (head share 0.27, hands 0.13) with levels at about 3,900 and 1,200 to 1,700, colour, normal and roughness at 2048, 2048 and 1024, and the head on its own 1024 sheet ("collapsing 700k triangles to 12k drags the texture across the raw atlas's seams"); the packer refuses a mesh more than 10 mm off its rig's mesh. One face had 18 triangles where it needed 400 ("the collapse spends the head's share on its curls"). OS gave its 52 generated OGs three levels of detail with an attribute-aware simplifier, since UV seams had locked plain simplification near 9k triangles.
38
+ - **Applies when:** Games using image-to-3D or text-to-3D humans.
39
+ - **Verify:** Every head sheet opened after preparation, and the deformation audit above passing on every clip.
40
+
41
+ ### The player's own body is never see-through
42
+ - **Invariant:** Every drawn part of the first-person body, clothing, gloves and weapon is opaque and whole at every reachable view angle.
43
+ - **Technique:** Keep parts away from the lens by pose, never by cutting geometry near the camera. Use a small near plane and no alpha test, dissolve, dither or near-fade on the player's own materials; make cloth closed and double-sided. Hide whole pieces (head, neck), never triangles. Keep post effects off anything very close to the lens. Hide the third-person body rather than shrink it. When something looks wrong close up, check whether the camera is inside a part.
44
+ - **Reference configuration:** LC's owner: "u shouldnt be ablet o see through ur body parts..." with two screenshots. A near-lens cut on every operator material dropped geometry within 7 to 20 cm of the lens, which sits on the chest, so the torso became a ring of ragged shards around a hole and the sleeves blades. After: a near plane of about 2.5 cm, post effects that skip anything within 1.2 m of the lens, and a playtest that saw no see-through frame at any angle. A "pale lining" on a sleeve was the camera inside the sleeve for 67% of the picture. OC's shrunken first-person head and arms spread white shards under the camera (below).
45
+ - **Applies when:** First person with a visible body.
46
+ - **Verify:** Scripted looks down, left, right and up, aiming, reloading and sprinting; a mask of the player's own materials fails on any alpha below 1.
47
+
48
+ ### Captured motion drives the body, and IK only makes contact
49
+ - **Invariant:** A first-person or armed body moves from captured motion on a whole rigged body; solvers only close hands and feet onto what they touch; and when a target cannot be reached within the joint limits, the held object moves, never the anatomy.
50
+ - **Technique:** Rig a whole body (legs, trunk, arms) with a third-person debug view, even when the player sees only arms. Drive stance, gait and reloads from captured clips blended by speed and gait, turn the chest to the aim, and let IK finish the grip with the elbow placed a set share of the way from hanging toward the captured elbow. Never solve an arm by the shortest arc from rest; give the forearm twist joints so it carries part of the hand's roll. Fix a bent wrist by moving the elbow, not the hand. Pick library clips from previews, not their names.
51
+ - **Reference configuration:** LC's owner: "why are the hands bent and look so fucking weird ... u also should have a body not just floating arms and hands... with legs body etc." Solver-only holds were rejected three times in 17 hours, and the rule written after the second was "motion capture drives the body, the solver only finishes the hands". Its operator has 22 joints and 32 captured clips, with two-bone arm IK and the elbow a third of the way from hanging toward the captured elbow: "the weapon moves, never the anatomy". Shortest-arc solves had wrung the forearm 36 degrees at the ready, 61 on the sights and 105 at one support elbow; ten twist joints per sleeve, the forearm carrying 0.6 of the hand's roll, took ring twist from 24 to 12 degrees. Five hand placements left a wrist at 23 to 44 degrees; moving the elbow under it gave 9 to 22. OS: a clip named "Chest Pound Taunt" was a sword taunt.
52
+ - **Applies when:** First-person arms and bodies, and any armed character.
53
+ - **Verify:** A third-person film of every weapon and state beside reference photographs, and the joint sweep in the next rule.
54
+
55
+ ### Joints stay inside natural bands, checked in the build
56
+ - **Invariant:** Wrists, elbows, shoulders and knees stay inside human limits on every frame of every hold, action and change between two, and inside a narrower natural band at rest and on the sights; a frame that leaves either raises an error in the build.
57
+ - **Technique:** Give every visible joint two gates, the impossible limit and a natural band for rest and aim, and check both per frame in the running build with a console error. Sweep every weapon and state while the joints are visible. Bound the natural, not only the impossible: a hold that passes "possible" can still read as wrong. Measure on the game's own rig.
58
+ - **Reference configuration:** LC's limits were a wrist about 70 degrees back, 80 forward and 20 to 30 to the side, later flexion 80, extension 70, radial 25, ulnar 40 and twist 85; the natural band is 20 degrees either way at rest and on the sights. Its check read "0 joint faults over 1,825 arm-states" and a playtest called it fixed, then the owner: "hands also still look fucked up holding the gun and pistol both hands just are angled not photorealistic and humanly". Wrists at 67 to 78 degrees had passed the first check's limit near 95, and the natural band came too late. Later, "when u ads and move aronud ur elbow and forearm like swivle out randomly ... u cant have weird angles of hands or arms etc anywhere"; one wrist's side-bend went from 51 to 22 degrees after about ten mends. A forearm twist weight of 0.5 (0.65 left a ring at the cuff) and a wrist cross-section never under 0.85 of rest kept the cuff whole.
59
+ - **Applies when:** First-person arms, and any armed or close-up character.
60
+ - **Verify:** A sweep of every weapon and state with a per-joint table against both gates, and a third-person film.
61
+
62
+ ### Holds are copied from photographs of trained people
63
+ - **Invariant:** How a character holds, aims, moves with and reloads a weapon or tool is copied from photographs and footage of trained people doing it, with one grip and one elbow place per hold, never invented or taken from generated pictures.
64
+ - **Technique:** Collect real photographs per weapon class and stance (rest, ready, aim, reload) before posing, and pose beside them. Use generated pictures for mood only. Keep one grip and one elbow place per hold, so the grip does not shift as the look moves. Set handedness once. Begin and end every action with a hand travelling, eased, so nothing appears or vanishes. Judge from the player's own picture at speed.
65
+ - **Reference configuration:** LC's first owner screenshot was a crop of the director's own composite, praised ten minutes earlier: a glove splayed flat on top of the fore-end, no firing hand, no shoulder. The owner: "thats nt how someone holds a gun this looks very unnatural and how u hold it and move wiht it and zoom in and out and all that stuff needs to be perfect and look photorealistic and how a real soldier would hold". Then "how come as u look further down where u grip the gun changes?.." (one grip per hold since), and "rn the gun is pointed from left to right idle i think it should be opposite to be realistic no?" (right-handed, the firing forearm from the lower right). A reload where the arm "randomly goes away" became a hand travel of about a third of a second in and out, and that pistol reload was the one explicit acceptance in the record. A library of eight grip poses arrived at the end and went unused.
66
+ - **Applies when:** Any character that holds a weapon or tool, in first or third person.
67
+ - **Verify:** A sheet per weapon class, photograph beside build at the same angle, at rest, ready, aimed and mid-reload.
68
+
69
+ ### No pose weight ever changes in one frame
70
+ - **Invariant:** Gait choice, direction switches and layer weights ease over time, so a third-person body never pops, flips or jitters while running, strafing, stopping or idling.
71
+ - **Technique:** Pick the locomotion clip from a smoothed speed, never the raw one. Damp every blend weight, add hysteresis to direction thresholds, unwrap angle channels before clamping, cross-fade loop joins, and sample gait keys on a spline. Replace every boolean pose gate (grounded, armed, aiming) with an eased weight. When a body jitters, measure the body on its own before touching the camera or world (see `opengame-game-feel`).
72
+ - **Reference configuration:** OC's third-person jitter, raised 6 or more times over 3.5 days, came from a gait clip picked on raw speed; an ease of about 80 ms and spline-sampled gait keys ended it. A toe-yaw clamp flipped 51 degrees in 2 to 3 frames; a strafe switch without hysteresis turned the legs 137 degrees in one frame; a grounded gate dropped the hips 3 cm in one frame and an armed gate popped the arms on every swap; the idle loop's join was 68 times the median frame step.
73
+ - **Applies when:** Every animated character seen in third person or by other players.
74
+ - **Verify:** Record running, stopping, strafing and idling at the display rate; plot the second difference of root and head and the body's screen position per frame, and flag arm jumps over the game's threshold.
75
+
76
+ ### Locomotion is authored; procedural motion is a small layer
77
+ - **Invariant:** Walking, running, idling and actions come from authored or captured clips blended by speed, with feet planted and legs still at idle; procedural passes add small corrections on top and never replace a limb's pose.
78
+ - **Technique:** Buy or capture a locomotion set before writing procedural legs or arms. Blend clips by measured speed with matched phase, set cadence from distance travelled, and fix bad channels in the clip data at the source. Audit each procedural pass by turning it off and comparing. Library clips fail on sight more often than not: pick and trim them from side and front contact sheets before they reach the game.
79
+ - **Reference configuration:** OC: mocap clips at walk 1.4, jog 3.4, run 4.8 and sprint 6.2 m/s, crossfades of at least 0.15 s; 40 clips cost about $2.40. Cadence by distance (1.05 m per walking cycle) cut foot skate from 84% to 30%. The "mannequin arms" the owner disliked came from a procedural arm pass that pulled the arms level. A knee and foot channel swap was fixed in 11 clips at the source. The owner asked 7 to 10 times, including "not even moving and my characters legs are moving". LC's library gave a knockdown that back-flips, a side-walk sliding 18 mm a frame, deaths that kneel or kick and a lunge that turns its back.
80
+ - **Applies when:** Every walking character. A stylised procedural walk is a style choice, made once and checked against the concept.
81
+ - **Verify:** Stand still, walk, run and sprint in play and record the feet: planted feet do not slide and idle legs do not move. Turn each procedural layer off and confirm the base clip already reads right.
82
+
83
+ ### Gaits blend by phase, and feet are planted by distance travelled
84
+ - **Invariant:** Feet do not slide or pop: transitions blend, a new gait starts where the old one's feet were, stride phase follows the ground covered, a planted foot stays put heel then toe, and steps match the ground at every speed and on slopes.
85
+ - **Technique:** Crossfade every transition, starting the new clip at the old clip's normalised phase. Advance stride phase by metres travelled over stride length, or set playback rate from displacement after collision divided by stride over clip length, clamped per clip. Lock a foot while its heel is down, then its toe; step a foot home when it is left far out; sample the ground ahead for the swinging foot. Scale a first-person figure so the camera height is its own. Pick the gait from measured motion relative to facing, not from the key pressed, and gate it against a table of how people walk.
86
+ - **Reference configuration:** SR and MC crossfade 0.14 to 0.16 s, ladders and mantles 0.22 to 0.30 s. Gait thresholds walk above 0.4 m/s and run above 6 m/s. DK varies each actor's idle speed (0.55 + (id % 7) * 0.04) so a horde never moves in lockstep. OC crossfades in at least 0.15 s at a matched phase and sets `timeScale` from velocity. LC's owner: "ur legs/feet positoin and hwo they move while u walk and run is very unnatural and not aaa". Its operator had slid planted feet 21 to 38 mm a frame walking, 66 to 130 sprinting and 255 mm in one frame stopping; after, under 5 mm a frame, heel first, 0.95 to 1.01 m steps at 2.9 a second, the figure scaled to 1.70 m. Its person table: knee 0 to 5 degrees at heel strike, about 15 loading, 60 in swing; hip bob 4 cm walking, 6 to 10 running.
87
+ - **Applies when:** Every walking character, including a first-person body seen looking down.
88
+ - **Verify:** Record feet against the ground at slow, normal and sprint speed, against a wall, on stairs and through a stop; per-frame slide stays under the game's bar while planted.
89
+
90
+ ### Hands are a thumb and a mitten, fixed to the posed gun
91
+ - **Invariant:** First-person and held-item hands are simple closed shapes that rig and pose easily, attach to the item's posed transform, never pass into it, and never cover the sight, unless the game's style needs fingers.
92
+ - **Technique:** Model the hand as a thumb plus a single mitten body, cuff-wide, as one closed mesh. Parent it to the gun's posed transform, not the unposed one. Test penetration numerically per reload phase (`opengame-weapons` has the check) and keep sleeves from stretching to reach. When the style is photoreal, build five-finger gloves and solve each finger onto the grip, which is the larger job.
93
+ - **Reference configuration:** The owner on OC: "basically a thumb and then a blob for hands ... It should be easier to then rig it and animate it with the guns versus having five fingers", and later "We don't need five fingers. If anything you just need a thumb". Before that it took 4 first-person passes and 5 glove redesigns. OC's sleeves are about 0.17 m across; a hold constant stretched them 16%; a glove covered 35% of one gun's aimed centre. OS's owner settled on "glvoe/mit style hands" after about 20 notes and 45 to 60 discarded finger builds, then ended the work: "im fine with the fists/hands view as is". LC's photoreal style needed scripted five-finger gloves and a finger solver held to 1.5 mm (`opengame-weapons`).
94
+ - **Applies when:** First-person games and any character holding tools.
95
+ - **Verify:** Capture hip, aimed and every reload for each gun; measure penetration and the covered share of the aimed centre.
96
+
97
+ ### One canon sheet per character stops drift
98
+ - **Invariant:** Each character's identity (proportions, head count, eyes, outfit, colours) comes from one canon sheet of turnarounds, scene paintings guide composition and light only, and every round compares the build with the sheet.
99
+ - **Technique:** Write the canon on day one, with turnarounds, measured proportions, the eye and face rules and the materials. Generate 3D only from the turnarounds, never from scene paintings. Put a side-by-side of build and canon in every round's report, measured where it can be.
100
+ - **Reference configuration:** OC's canon doc said 2.2 heads tall while the measured turnaround was 2.7. Scene concepts had invented different outfits, helms and horns, and assets generated from scene frames inherited the drift. Eyes: an open eye is a black oval with a small white oval at the bottom and a glint, no rim; a closed eye is a thick tapered lid; eye-white albedo about 0.02. Several eye shader edits never reached the build. All five early character sheets were rejected; after the canon pass the harsher canon critic rose from 3.6 to 5.3. The owner: "make sure we dont drift like that".
101
+ - **Applies when:** Every game with designed characters, above all when generating them.
102
+ - **Verify:** A sheet per character per round, canon beside build at the same angles, with the head-count ratio and eye crop measured.
103
+
104
+ ### Customisation shows on the next frame
105
+ - **Invariant:** Every customisation choice appears on the next frame, on the first click, in any order, and the screen never shows a wrong or half-built character while it loads.
106
+ - **Technique:** Make colour and eyes material parameters over a baked mask. Build shapes and outfits from parts imported ahead of time into a small resident pool, preload the neighbours of the current choice, and spread imports over frames so preloading does not stutter. Keep the previous complete character on screen until the exact new one is ready. Persist the last avatar and show it on the title, select and spawn.
107
+ - **Reference configuration:** OC's target was every row within about 0.1 s. At one point a change took 1.2 to 12.8 s; colour later took 2 to 86 ms and heads 51 to 135 ms, and outfits still took 0.8 to 2.8 s at the end. A pool of 4 pre-imported looks hit in 15 to 31 ms within 24 MB; three background workers were the limit (five slowed imports 2.5x); warm imports paused for 20 frames after any change; eager preloading caused 38 hitches against 16. Head bakes took 1.7 to 2.7 s each. The owner, 5 or more times: "customizing OGs MUST be instant!" and "it cant be that fucking hard".
108
+ - **Applies when:** Games with character creators, outfit pickers or loadout previews.
109
+ - **Verify:** Reload the page, then click every row cold in a random order with a frame recording; time each click to its final frame and count hitched frames.
110
+
111
+ ### Gate every stage
112
+ - **Invariant:** Each stage of a character (reference, mesh, remesh, rig, skin check, clips, sockets, play) is inspected and passed before the next one is paid for.
113
+ - **Technique:** Keep a short stage list per character with the evidence for each: the reference image, a turntable of the mesh, the polygon count after remesh, a rest-pose capture of the rig, a stretch pose for skinning, each clip looped three times, each socket with its equipment, and a capture in play.
114
+ - **Reference configuration:** ST gates characters this way, and MC found that two soldiers generated with identical parameters came back at different quality, so each one is checked rather than assumed. LC checked the concept picture before paying for each mesh and opened every head sheet after preparation.
115
+ - **Applies when:** Every generated or imported rigged character.
116
+ - **Verify:** The stage list has evidence for every stage of every character in the game.
117
+
118
+ ### Pilot two bodies before making many
119
+ - **Invariant:** The pipeline is proven on two anatomically different characters before it runs for the rest.
120
+ - **Technique:** Pick the two most different bodies the game needs (a heavy and a slight one, a biped and a creature) and take both all the way to play first. Rigs from one generator are not interchangeable; budget a per-character solve for stances, grips and contact.
121
+ - **Reference configuration:** ST pilots two before forty. MC found its generator's rigs were not interchangeable between soldiers and that stance correction was a third per-soldier solve. LC's own-rig audit was proven on 14 people and 405 clips before it covered 21 people and 572 clips.
122
+ - **Applies when:** Any game with more than a couple of characters.
123
+ - **Verify:** Both pilots pass every gate in play before a batch is started.
124
+
125
+ ### No T-poses, no primitive stand-ins
126
+ - **Invariant:** No character is ever seen in its bind pose, and nothing a character holds is a primitive.
127
+ - **Technique:** Start every character in an idle clip before its first render; give held items their own models with grip markers. A missing clip falls back to idle, never to the bind pose. Raise an error in the build when a figure is seen in its rest pose.
128
+ - **Reference configuration:** Our originals require a rig and at minimum idle, locomotion and the game's one signature action on every character mesh. ST's review fails a T-pose anywhere. LC's owner saw its dead "just go t pose when they die"; its build now logs an error on any rest pose (`opengame-enemies`).
129
+ - **Applies when:** Every game with characters.
130
+ - **Verify:** Capture every character on its first visible frame after spawn, after a respawn and after a death.
131
+
132
+ ### One owner of movement
133
+ - **Invariant:** The controller moves the character's root through the world; animation never moves it, so the body, the collision capsule and the equipment stay together.
134
+ - **Technique:** Strip net horizontal travel from locomotion clips while keeping bob and sway, normalise rest height and forward once, and use a positive uniform scale on animated ancestors. Correct gait clips only, never actions, jumps or deaths. Strip root motion from additive hit reactions too.
135
+ - **Reference configuration:** AW rebases the hips of its mocap; ST's `prepareLocomotionClip` removes travel and checks three loops for drift. SR's death clip moves the hips more than two metres, so SR samples it once to set a conservative bound and culling stays on. LC's additive hit clips carried up to 84 cm of root motion, so struck figures slid sideways and snapped back (`opengame-enemies`).
136
+ - **Applies when:** Every animated character driven by a controller.
137
+ - **Verify:** Loop each gait three times in place: no drift, no snap at the loop, no separation from the capsule.
138
+
139
+ ### Hands hold the real grip
140
+ - **Invariant:** A held weapon or tool follows the animated body, both hands sit on its real grips through movement, aim, recoil and reload, and the shot leaves from its real muzzle.
141
+ - **Technique:** Attach rigid equipment to a bone with the inverse of the bone's rest transform so it keeps its fitted pose. Author grip and muzzle markers on the actual model, animate a pivot rather than the frozen carry matrix, then close each arm onto its grip as a two-bone chain over the captured pose, with a stable elbow pole, inside the joint bands; when a grip is out of reach, move the weapon, never stretch the arm.
142
+ - **Reference configuration:** MC's weapon IK, AW's hand-on-weapon validator, SR's weapon mount and DK's gear attachment by inverse rest matrix. SR validated 540 hand-grip poses across four outfits and every weapon. OC's default IK pole gave a 52 degree elbow where 17 to 18 was the target, and its third-person gun canted left twice. LC's finger solve passes at 1.5 mm counted over every vertex on the game's own rig (`opengame-weapons`).
143
+ - **Applies when:** Characters that hold things, in third person or in any view that shows them from outside.
144
+ - **Verify:** Capture both palms against the grips at several aim angles and through a reload; muzzle flash and shot origin coincide.
145
+
146
+ ### Judge from the gameplay camera, and from every camera that sees the body
147
+ - **Invariant:** A character is accepted on how it looks in play, from the camera the player uses and from every side the player sees, including how other players see the same body doing the same action.
148
+ - **Technique:** Capture rest, movement, the signature action and its return, from the gameplay camera, including rear views, and compare against the concept at the same camera. For a player body, also film it from outside as a teammate or rival sees it, with every first-person action expressed in the body's own frame. Judge motion as a frame sequence at a quarter speed and then at speed, not as a still.
149
+ - **Reference configuration:** ST compares player-camera captures with the selected concept and sends actual pixels to an adversarial reviewer; SR's character review lists native shoulder-camera appearance as outstanding until it is seen in play. OC's third-person gun was "hidden behind the body in every follow view"; the owner asked to see the hold "in EVERY camera hangle". LC's owner: "continue making sure that multiplayer how u see other soldiers/players is perfect with whatever movement and animation they are doing should look like a real person"; its co-op friend is the player's own figure, whole.
150
+ - **Applies when:** Every game with characters.
151
+ - **Verify:** A reviewer with fresh context passes the captures, rear and outside views included.
152
+
153
+ ### Fair bodies and fair budgets
154
+ - **Invariant:** Hitboxes are fair across characters, and every character fits the game's frame budget.
155
+ - **Technique:** Normalise heights so a tall character is not easier to hit, keep the hit capsule independent of cosmetic equipment, set polygon counts before rigging, and share geometry and materials across instances. Clone skinned characters with `SkeletonUtils.clone` so each owns its bones.
156
+ - **Reference configuration:** ST budgets 150k triangles per character and 30k per prop. MC sets a 22,000 target before rigging so its rig does not bind to a mesh that is later remeshed. SR's four outfits add 1,140 to 1,320 triangles each and one mesh per actor without changing the hit capsule. LC's co-op friend is 28,994 triangles with levels of detail under 12 m and from 12 to 40 m.
157
+ - **Applies when:** Games with several characters on screen, competitive games above all.
158
+ - **Verify:** Read triangle counts and draw calls with the busiest crowd on screen; compare hit capsules across characters.
159
+
160
+ ### The OG identity spec outranks art feedback
161
+ - **Invariant:** Wherever a game draws OpenGame avatars, each keeps what the SDK's spec lists under "What makes it an OG" (a big head in its own colour, a face made of eyes, mittens with a thumb, the outfit as chosen), a player's SDK avatar replaces the default, a crowd is generated rather than taken from other players, and no art pass, judge or critic removes any of it.
162
+ - **Technique:** Vendor the SDK's model and spec unchanged with a provenance note, split the figure into rigid parts, and read recipes live (next rule). Put the spec in every brief and every judge's rubric. Measure the head's share through the real game lens at play size, not on the model. Seed generated crowd members per place, with a test that forbids the features the spec leaves out. Ease crowd members aside rather than culling them. The spec covers OGs only; it does not license restyling other characters to match.
163
+ - **Reference configuration:** OH: "also where did our OGs go?... the og sdk identity stuff characters [screenshot] we need to keep those", after judge-driven passes had added a mouth and brows and made the crowd faceless, seven passes before the spec reached them; one later pass removed the thumbs and the next restored them. "also default og color should be white not orange" and "when someone brings their og/avatar throuhg the opengame sdk ofc it should be their colors"; the white head took nine passes to land on plain white. OH's figure has 16 parts; a face test over 40 seeds x 20 members forbids mouths, noses, brows and beards in its generated crowd; a head built at 51% of height read at 41 to 44% through the lens, against the spec's about 40%; 12 to 16 members per place, where culling had once left 3 to 7. OS went the other way once: a concept agent forced white mittens on first-person gloves "to match the OG character canon" after its owner had called white blob hands slop.
164
+ - **Applies when:** Any game drawing OpenGame avatars, as the player's OG or as a crowd.
165
+ - **Verify:** The face test; three recipes at play size after every art pass; the head share as seen, and the members per side per place.
166
+
167
+ ### The player's OG is theirs, read fresh and never kept
168
+ - **Invariant:** A game that offers the player's OpenGame OG builds it from `og.player.avatar` each session, never stores it or anything built from it, asks for it or relays it to other players, falls back to its own default for anything missing or unknown, and shows the same OG as "Your OG" in every scene and point of view.
169
+ - **Technique:** Remembering that the player picked "Your OG" is fine; the recipe is not. Read it through `watchAvatar` from `@opengamehq/sdk/avatar`, which names the parts with the shared layout (`readAvatar` does the same for one recipe); never split the recipe by position. Map each part through the game's own table with a default per part, and draw it to `AVATAR-SPEC.md` in the SDK package, or start from the SDK's Three.js example in `examples/avatar-threejs`. For a menu, a scoreboard or a 2D game, `portraitUrl(avatar)` gives the head as OpenGame draws it. Start building the model off the main thread as soon as the SDK names the player, under the loading screen, and import it only in menus. List "Your OG" first, labelled, equipped once loaded, removed after sign-out. Give first person separate sleeves and hands in the same colors as the third-person OG rather than a shrunken body, keep a shoulder camera's OG to one side, give every OG the same hitbox in competitive play, and light menus separately from the level. The recipe format, the portrait, the 21-joint contract, the page-bake pattern and each view's settings are in [references/player-og.md](references/player-og.md).
170
+ - **Reference configuration:** OG Clash bakes the OG to a GLB in a Web Worker and drops it into its Kaigen engine; its shoulder camera sits 2.6 m back and 1.15 m right with a 58 degree lens and keeps the OG's center within 0.30 of the frame width from the left. Shrinking the body's head and arms for first person spread white shards under the camera, live portraits in a list froze the game at the 39th quick switch, and opening "Your OG" with 4 to 8 workers added 861 MB and crashed an iPhone.
171
+ - **Applies when:** Any game on OpenGame that shows the player as a character.
172
+ - **Verify:** Capture every view as a guest and with `?og-dev-player=signed-in`, including first person looking down while downed, then grep the game for any write of the recipe, or of a model or image built from it, to storage, network or logs.
173
+
174
+ ## Further reading
175
+
176
+ Meshy's rig skeleton, animation library and the traps MC hit integrating them are in
177
+ `opengame-assets`. Root-motion, carry-frame, grip, skin-check, eased gait and customise-pool code sketches:
178
+ [references/integration.md](references/integration.md). LC's chest-camera body, joint
179
+ limits, foot planting and generated-people pipeline:
180
+ [references/first-person-body.md](references/first-person-body.md).
@@ -0,0 +1,108 @@
1
+ # A first-person body, and generated people
2
+
3
+ LC's numbers for the rules on the player's body, captured motion, joint bands, foot
4
+ planting and generated people in `SKILL.md`. LC is a photoreal body-camera survival
5
+ shooter in three.js WebGPU: the lens sits on the player's chest, and the dead are
6
+ generated people. Its owner raised the body, hands and holds about 19 times. Measure your
7
+ own; a stylised game keeps the method and sets its own numbers.
8
+
9
+ ## The whole body
10
+
11
+ - A full rig even when the player sees only arms: 22 joints, legs, trunk and arms, with a
12
+ third-person debug view. Floating arms were the owner's first note ("u also should have
13
+ a body not just floating arms and hands... with legs body etc.").
14
+ - 32 captured clips blended by speed and gait. The chest turns to the aim; the hips are
15
+ set so the chest point is the lens; leg IK keeps the feet on the ground.
16
+ - Arms by two-bone IK over the captured pose, the elbow a third of the way from hanging
17
+ toward the captured elbow. "When a target cannot be reached within the limits the
18
+ weapon moves, never the anatomy."
19
+ - The figure is scaled to 1.70 m so the lens height is its own body's.
20
+ - The lens on the breastbone: 1.30 m standing, 1.105 crouch-walking, 0.895 crouched;
21
+ the shoulders 0.22 m behind it. Looking down bends the trunk at the hips and the lens
22
+ rides it. Placement and feel numbers are in `opengame-game-feel`.
23
+
24
+ ## Never see-through
25
+
26
+ - Near plane about 2.5 cm. No alpha test, dissolve, dither or near-fade on the player's
27
+ own materials; closed, double-sided cloth.
28
+ - Hide the head and neck whole. Never cut triangles near the lens: a cut of everything
29
+ within 7 to 20 cm turned the torso into a ring of shards.
30
+ - Post effects skip everything within 1.2 m of the lens.
31
+ - When something close up looks wrong, check whether the camera is inside it: a "pale
32
+ lining" was the inside of a sleeve filling 67% of the picture, and a "hole" in the
33
+ shoulder, mended three times as a hole, was unlit cloth.
34
+
35
+ ## Joint limits and the natural band
36
+
37
+ | Joint | Impossible beyond | Natural band at rest and aim |
38
+ |---|---|---|
39
+ | Wrist flexion | 80 degrees | within 20 either way |
40
+ | Wrist extension | 70 degrees | within 20 either way |
41
+ | Wrist radial / ulnar | 25 / 40 degrees | within 20 either way |
42
+ | Forearm twist | 85 degrees | |
43
+
44
+ Check both gates on every frame in the running build, with a console error: the limits
45
+ on every frame, the band at rest and on the sights. LC's reload bar used a simpler pair,
46
+ 70 degrees bent and 30 to the side, on top of these. LC's first
47
+ check bounded only the impossible: "0 joint faults over 1,825 arm-states" while wrists at
48
+ 67 to 78 degrees looked wrong to the owner.
49
+
50
+ - Fix a bent wrist by the elbow's place, not the hand's: five hand placements left 23 to
51
+ 44 degrees; the elbow under the wrist gave 9 to 22.
52
+ - No shortest-arc arm solves: they wrung the forearm 36 degrees at the ready, 61 on the
53
+ sights and 105 at one support elbow. Ten twist joints per sleeve, the forearm carrying
54
+ 0.6 of the hand's roll (at most 1.2 rad), faded in over 15 to 50 degrees of bend: ring
55
+ twist from 24 to 12 degrees. A plain hinge fix opened a hole at the shoulder.
56
+ - Forearm twist weight 0.5; 0.65 left a ring at 0.56 of the cuff's area. The sleeve's
57
+ cuff rides the twist bone, the glove's cuff the hand, and a wrist cross-section never
58
+ falls under 0.85 of rest.
59
+
60
+ ## Holds
61
+
62
+ - One grip and one elbow place per hold, so the grip never shifts as the look moves.
63
+ - Right-handed: the firing forearm enters from the lower right.
64
+ - Every action begins and ends with a hand travelling, about a third of a second in and
65
+ out, eased.
66
+ - Copy holds from photographs and footage of trained people. LC's first rejected hold was
67
+ built against a composite of its own renders.
68
+
69
+ ## Feet
70
+
71
+ - Stride phase advanced by metres travelled over stride length: walk 1.48 m per two
72
+ steps x the square root of the speed ratio; runs of 1.73, 1.99, 2.43 and 2.94 m at 2.2,
73
+ 2.7, 3.8 and 5.5 m/s.
74
+ - Lock a foot while its heel is down, then its toe. A foot left more than 20 cm out steps
75
+ home. A turn past 49 degrees is a stepping turn. Sample the ground ahead for the
76
+ swinging foot. Jump phase comes from vertical velocity, not a fixed clip.
77
+ - Gate against a person table at 60 Hz: planted slide under 5 mm a frame; knee 0 to 5
78
+ degrees at heel strike, about 15 loading, 60 in swing; hip bob 4 cm walking and 6 to 10
79
+ running. Before: 21 to 38 mm a frame walking, 66 to 130 sprinting, 255 mm in one frame
80
+ on a stop.
81
+
82
+ ## Proportions
83
+
84
+ A human table for generated figures, at arm's length in the game's light: stature 1.64
85
+ to 1.90 m, head 0.135 to 0.145 of height, arm 33% of height, upper arm 1.2x the forearm,
86
+ wrist 0.55 of the forearm's width. No edge stretched over 2.0 to 2.2x across a joint's
87
+ range (hip: 116 edges over 2x to 0), with weights from a diffused field over the welded
88
+ shell.
89
+
90
+ ## Generated people, step by step (about $2.66 a person)
91
+
92
+ 1. An A-pose concept in close-fitting clothes, arms held well out. Look at it before
93
+ paying for the mesh.
94
+ 2. Image-to-3D at 4K, 600k to 1M triangles.
95
+ 3. Prepare: re-bake to about 11,500 triangles (head share 0.27, hands 0.13), a new
96
+ unwrap on a smoothed copy, 2048 bakes, the head on its own 1024 sheet with its own
97
+ reduction budget.
98
+ 4. Levels of detail at about 3,900 and 1,200 to 1,700 triangles, on the same unwrap.
99
+ 5. Rig the prepared mesh, not the raw one.
100
+ 6. Play 27 library actions on each figure's own rig.
101
+ 7. A packer refuses a mesh more than 10 mm off its rig's mesh.
102
+ 8. Audit every clip (torn: an edge over 3x or under 0.25x rest; fail above 1% torn) and
103
+ list the failing ones out.
104
+
105
+ Results: 56 of 56 clips failed on a shared skeleton; 405 clips on 14 people, then 572 of
106
+ 572 on 21 people, passed on their own rigs. Long coats and capes failed on automatic
107
+ rigs. Library motion still fails on sight: film it from the side, at a quarter speed,
108
+ before keeping it.
@@ -0,0 +1,144 @@
1
+ # Integration sketches
2
+
3
+ Adapted from the Studio's character integration notes (ST), which were written from
4
+ World at War, Modern Claudefare, Skybreak and Der Koloss. Adjust bone names to the
5
+ actual skeleton; names such as `Hips` and `RightHand` are not universal.
6
+
7
+ ## Cadence from real motion
8
+
9
+ ```js
10
+ // World positions, dt > 0. Reset `previous` on spawn, teleport and resume.
11
+ const speed = Math.hypot(current.x - previous.x, current.z - previous.z) / dt
12
+ const rate = THREE.MathUtils.clamp(speed * clip.duration / strideMetres, minRate, maxRate)
13
+ walk.setEffectiveTimeScale(rate) // strideMetres: measured full-cycle foot travel
14
+ previous.copy(current)
15
+ ```
16
+
17
+ Use separate authored walk and run clips. A clamped rate cannot repair a wrong stride.
18
+
19
+ ## Equipment on a bone, keeping its fitted pose
20
+
21
+ ```js
22
+ function attachBone(THREE, bone, object) {
23
+ for (let p = bone; p; p = p.parent) if (p === object) throw Error('Attachment cycle')
24
+ bone.updateWorldMatrix(true, false)
25
+ object.updateWorldMatrix(true, false)
26
+ const det = bone.matrixWorld.determinant()
27
+ if (!Number.isFinite(det) || det === 0) throw Error('Singular bone frame')
28
+ const local = bone.matrixWorld.clone().invert().multiply(object.matrixWorld)
29
+ bone.add(object)
30
+ object.matrix.copy(local)
31
+ object.matrixAutoUpdate = false // keep the exact inverse; do not decompose shear
32
+ object.matrixWorldNeedsUpdate = true
33
+ }
34
+ ```
35
+
36
+ Call it once, at rest. Put the weapon under a pivot inside a carry group attached to the
37
+ chest, animate the pivot, and throw if the model has no grip markers:
38
+
39
+ ```js
40
+ const grips = ['grip_right', 'grip_left'].map(name => weapon.getObjectByName(name))
41
+ if (grips.some(grip => !grip)) throw Error('Author both grip markers on the actual model')
42
+ ```
43
+
44
+ ## Order of operations each frame
45
+
46
+ ```js
47
+ controller.step(dt) // collision-resolved root transform
48
+ selectGaitAndCadence(dt) // from actual distance, keeping gait phase
49
+ mixer.update(dt) // the authored base pose for this frame
50
+ applyTorsoAimAndWeaponPose(dt) // carry follows chest; aim and recoil on the pivot
51
+ actorRoot.updateMatrixWorld(true)
52
+ solveArmsToWeaponGrips(grips) // two-bone chains; update matrices after each joint
53
+ orientWristsAndPoseFingers() // grip shape, not just hand position
54
+ actorRoot.updateMatrixWorld(true)
55
+ ```
56
+
57
+ Restore procedural bone overlays before the next mixer step if the clip does not write
58
+ those bones. Never accumulate IK or recoil into yesterday's pose: MC's spazzing head was
59
+ an additive layer that was not idempotent.
60
+
61
+ ## Contact and rendering
62
+
63
+ - A bone's axis is not the sole of the shoe. Verify foot contact on the final skinned
64
+ mesh against the ground, per motion phase.
65
+ - Base colour and emissive textures in sRGB; normal, roughness, metalness and occlusion
66
+ linear. Texture factors must not erase their maps.
67
+ - Judge imported and procedural surfaces together under the game's own lighting, at the
68
+ size they appear on screen.
69
+ - MC's floating corpse came from a ground-lock solver that could only push up. Test the
70
+ death pose on slopes and stairs.
71
+
72
+ ## Waist check at import (OC)
73
+
74
+ Pose each clip offline and compare the waist's width with the bind pose. OC passes 0.95
75
+ and treats anything under 0.90 as a visible pinch.
76
+
77
+ ```js
78
+ // mesh: THREE.SkinnedMesh; waist: indices of vertices in a band at waist height
79
+ function waistWidth(mesh, waist) {
80
+ const v = new THREE.Vector3()
81
+ let min = Infinity, max = -Infinity
82
+ for (const i of waist) {
83
+ mesh.getVertexPosition(i, v) // skinned position in the mesh's local space
84
+ v.applyMatrix4(mesh.matrixWorld)
85
+ min = Math.min(min, v.x); max = Math.max(max, v.x)
86
+ }
87
+ return max - min
88
+ }
89
+ mesh.skeleton.pose(); root.updateMatrixWorld(true) // the bind pose
90
+ const bind = waistWidth(mesh, waist)
91
+ for (let t = 0; t < clip.duration; t += 1 / 30) {
92
+ mixer.setTime(t)
93
+ root.updateMatrixWorld(true) // bones' world matrices drive getVertexPosition
94
+ if (waistWidth(mesh, waist) / bind < 0.95) report(clip.name, t)
95
+ }
96
+ ```
97
+
98
+ Run the same loop for depth as well as width; an hourglass can show in either. Also
99
+ report thigh weights on vertices above the hip and weights that cross from one leg to the
100
+ other.
101
+
102
+ ## Gait choice from smoothed speed (OC)
103
+
104
+ ```js
105
+ // Raw speed picked the clip in OC and the body jittered; about 80 ms of easing ended it.
106
+ const k = 1 / 0.08
107
+ smoothSpeed += (rawSpeed - smoothSpeed) * (1 - Math.exp(-k * dt))
108
+ const want = pickGait(smoothSpeed, current) // thresholds with hysteresis around `current`
109
+ if (want !== current) {
110
+ next = actions[want]
111
+ next.reset().setEffectiveWeight(1).play()
112
+ next.time = (actions[current].time / actions[current].getClip().duration) * next.getClip().duration
113
+ actions[current].crossFadeTo(next, 0.2, false)
114
+ current = want
115
+ }
116
+ ```
117
+
118
+ Never write `action.weight = grounded ? 1 : 0`. Ease every such weight toward its target
119
+ with the same exponential.
120
+
121
+ ## A customise pool that does not stutter (OC)
122
+
123
+ ```js
124
+ // Parts are parsed ahead of time and kept hidden; a change swaps visibility.
125
+ const pool = new Map() // partId -> Object3D, parsed and compiled
126
+ const queue = [] // parts to warm, nearest choices first
127
+ let quietFrames = 0
128
+
129
+ function onChoice(partId) {
130
+ const part = pool.get(partId)
131
+ if (part) show(part) // next frame
132
+ else keepCurrentAndQueue(partId) // the old complete figure stays on screen
133
+ quietFrames = 20 // OC paused warm imports 20 frames after a change
134
+ }
135
+
136
+ function tick() { // once per frame
137
+ if (quietFrames > 0) { quietFrames--; return }
138
+ const job = queue.shift()
139
+ if (job) warmOne(job) // one part per frame: loadAsync, clone, compileAsync
140
+ }
141
+ ```
142
+
143
+ Colours and eyes are uniforms over a baked mask, never a rebuild. Clone skinned parts with
144
+ `SkeletonUtils.clone` and bind them to the character's skeleton.