@genex-ai/cli-demo 1.22.0-dev.605 → 1.23.0-dev.606

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genex-ai/cli-demo",
3
- "version": "1.22.0-dev.605",
3
+ "version": "1.23.0-dev.606",
4
4
  "description": "Set up your project's agent workspace (.claude/.codex/.cursor in the game folder), authorize, create a game project, generate AI assets, and publish (genex CLI).",
5
5
  "type": "module",
6
6
  "bin": {
@@ -217,6 +217,19 @@ the same ladder through
217
217
  KTX2-capable games can also pass `ktx2Load` to `loadTextureWithFallback` so
218
218
  textures use their `.ktx2` variants.
219
219
 
220
+ **A texture that arrived through a `.ktx2` rung is NOT drawable.** Its `.image`
221
+ is `{ width, height, mipmaps }`, never an `HTMLImageElement` — so
222
+ `ctx.drawImage(tex.image, …)` throws *"The provided value is not of type
223
+ '(CSSImageValue or HTMLCanvasElement or …)'"*. MEASURED 2026-09-07: a village
224
+ build wrote its own `capTextures()` pass to cap every texture's long edge and
225
+ cast `tex.image as CanvasImageSource` to silence the type error. All ten of its
226
+ generated buildings and both villager bodies then failed to load behind a
227
+ swallowed warning — a fully generated, fully wired world that rendered EMPTY,
228
+ and scored 1/9 with the assets sitting in R2. **Do not hand-roll a texture
229
+ downscaler: the rungs ARE the downscaler**, and `@1024` already did it before
230
+ the bytes left our side. If you must touch pixels, skip the compressed ones
231
+ first — `if ((tex as THREE.CompressedTexture).isCompressedTexture) return;`.
232
+
220
233
  Every generated GLB ladders — `genex model` including its `segment` / `rig` /
221
234
  `animate` outputs, and generated characters. If `pickModel` hands a generated
222
235
  model URL back unchanged, this game's vendored kit predates that role: the