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
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Parallax backgrounds
|
|
2
2
|
|
|
3
3
|
PixelKiln has no parallax command or manifest field yet. This page is what the
|
|
4
|
-
research so far supports. The
|
|
5
|
-
https://pixelkiln.griffen.codes/docs/
|
|
4
|
+
research so far supports. The step-by-step guide is at
|
|
5
|
+
https://pixelkiln.griffen.codes/docs/parallax, and the evidence, with pictures
|
|
6
|
+
and numbers, at https://pixelkiln.griffen.codes/docs/research-parallax.
|
|
6
7
|
|
|
7
8
|
## The route to try first
|
|
8
9
|
|
|
@@ -24,13 +25,31 @@ this; its numbers are in step 12 of the research note.
|
|
|
24
25
|
- A bounded level needs no loop: extend each run past both ends by the most
|
|
25
26
|
that layer can drift.
|
|
26
27
|
|
|
28
|
+
## Generating silhouettes
|
|
29
|
+
|
|
30
|
+
- Describe one object as a sprite, never as distant scenery: "a lone landform
|
|
31
|
+
game sprite on a plain empty background, nothing else in the picture: no
|
|
32
|
+
clouds, no moon, no sun, no hills or ground around it", "about two thirds as
|
|
33
|
+
wide as the picture". Words like "distant", "hazy" or "fading at its foot"
|
|
34
|
+
make pixflux paint a whole scene, and the shape runs off the canvas.
|
|
35
|
+
- Leave out a glow at a summit; pixflux draws it as a setting sun.
|
|
36
|
+
- Pixflux at 256×128 with background removal, one forced palette, two or three
|
|
37
|
+
seeds an asset. Reject any candidate that touches a side of the canvas.
|
|
38
|
+
- Add the distance afterwards: dither the bottom 30% out, then tint each tier
|
|
39
|
+
toward its own palette colour, the far tier lighter, the near tier darker.
|
|
40
|
+
One light haze colour for every tier makes depth read backwards.
|
|
41
|
+
|
|
27
42
|
## Generating whole layers
|
|
28
43
|
|
|
29
44
|
- PixelLab pixflux with ONE forced palette (`palette`) on every layer is the
|
|
30
|
-
cheapest route that gives layers which agree
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
cheapest route that gives layers which agree. Layers with background
|
|
46
|
+
removal, at most 40,000 px each (400×100) to stay transparent. pixflux has
|
|
47
|
+
no seamless option, so loop each layer afterwards.
|
|
48
|
+
- Draw the sky as flat palette bands instead of generating it: a generated sky
|
|
49
|
+
comes back with mountains in it. A far range comes back as one flat colour;
|
|
50
|
+
recolour it to a palette colour between the sky bands and extend it down to
|
|
51
|
+
the foot of the view so nothing floats. A middle layer that is one landmark
|
|
52
|
+
(a single volcano) goes on screen once, not looped.
|
|
34
53
|
- Retro Diffusion's `rd_plus__environment` draws a whole scene whatever the
|
|
35
54
|
prompt says, so it is not a layer generator. Its `tileX` does wrap the
|
|
36
55
|
drawing, but `removeBg` breaks the seam it made.
|