pixelkiln 0.138.2 → 0.139.1
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/PROVIDERS.md +3 -2
- package/dist/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/docs/PARALLAX.md +258 -0
- package/docs/README.md +2 -1
- package/docs/RESEARCH_PARALLAX.md +66 -30
- package/docs/RETRO_DIFFUSION.md +68 -13
- package/package.json +1 -1
- package/skills/pixelkiln/references/parallax.md +25 -6
package/PROVIDERS.md
CHANGED
|
@@ -143,8 +143,9 @@ For a production environment, build a kit: seamless terrain, separate
|
|
|
143
143
|
landmarks and buildings, foreground occluders, and a distant backdrop. You can
|
|
144
144
|
rerun one weak piece, set collision per object, and move layers independently
|
|
145
145
|
for parallax. Generate each piece at its native pixel resolution, then use
|
|
146
|
-
integer nearest-neighbor scaling. The [parallax
|
|
147
|
-
|
|
146
|
+
integer nearest-neighbor scaling. The [parallax guide](./docs/PARALLAX.md) builds a
|
|
147
|
+
layered background step by step, and the [research note](./docs/RESEARCH_PARALLAX.md)
|
|
148
|
+
covers looping, splitting a flat picture by depth, and engine settings.
|
|
148
149
|
|
|
149
150
|
A visual benchmark should use the same briefs for an isolated building, a
|
|
150
151
|
top-down landmark, and a full scenic background. Use the same intended native
|
package/dist/cli.js
CHANGED
|
@@ -15300,6 +15300,10 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
|
|
|
15300
15300
|
if (!Number.isInteger(count) || count < 1 || count > 16) {
|
|
15301
15301
|
throw new Error("Retro Diffusion numImages must be a whole number from 1 to 16");
|
|
15302
15302
|
}
|
|
15303
|
+
const family = /^rd_(lite|core)__/.exec(promptStyle)?.[1];
|
|
15304
|
+
if (family && count > 4) {
|
|
15305
|
+
throw new Error(`Retro Diffusion RD ${family === "lite" ? "Lite" : "Core"} styles return at most 4 images; set numImages to 1\u20134`);
|
|
15306
|
+
}
|
|
15303
15307
|
if (spec.width < 16 || spec.height < 16 || spec.width > 512 || spec.height > 512) {
|
|
15304
15308
|
throw new Error("Retro Diffusion output dimensions must be between 16 and 512 pixels");
|
|
15305
15309
|
}
|
|
@@ -15311,9 +15315,11 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
|
|
|
15311
15315
|
validateAnimation(promptStyle, spec, styleImages, options);
|
|
15312
15316
|
} else if (spec.generator === "tiles") {
|
|
15313
15317
|
validateTile(promptStyle, spec, styleImages, count, options);
|
|
15314
|
-
} else if (styleImages.length
|
|
15318
|
+
} else if (family === "lite" && styleImages.length > 1) {
|
|
15319
|
+
throw new Error("Retro Diffusion RD Lite styles accept 1 reference image; use RD Core or RD Pro for more");
|
|
15320
|
+
} else if (styleImages.length && !/^(?:rd_pro__|rd_core__|rd_lite__|user__)/.test(promptStyle)) {
|
|
15315
15321
|
throw new Error(
|
|
15316
|
-
`Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro or user style`
|
|
15322
|
+
`Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro, RD Core, RD Lite or user style`
|
|
15317
15323
|
);
|
|
15318
15324
|
}
|
|
15319
15325
|
}
|