Build larger environments
Do not ask the model for one enormous finished level. Generate and review the scene as 48–128px native-grid parts:
- sky and atmosphere;
- distant mountains;
- midground terrain and forest;
- buildings and landmarks;
- foreground framing and gameplay tiles.
Keep one grid origin, native scale, and palette contract across the parts, then compose them at 1×. This preserves editable clusters and lets you regenerate one weak region without touching the rest of the scene.
ComfyUI's official outpainting workflow can extend a canvas. The official crop-and-stitch nodes can sample a region at the model's working size and blend it back. Tiled diffusion can cover a larger semantic canvas with overlapping windows. These techniques help composition and regional detail; none guarantees a native pixel grid. Run grid recovery after accepting each layer or the final composite. Check licenses before shipping: the linked tiled implementation marks its MultiDiffusion, Mixture of Diffusers, and tiled VAE code as non-commercial share-alike.
Do not add a latent refinement pass by default. We tested LatentUpscale to
1536px and 2048px, low-denoise resampling, and tiled VAE decode. Every version
completed on the 64 GB M1 Max, but the extra interpolation, diffusion, and VAE
round trip visibly blurred the shapes. Reducing the result to 64 colors did not
restore the lost structure.
The neural ComfyUI Pixelization node is another possible raster-to-pixel-art step, but its underlying model is limited to non-commercial research use. It is not a safe default for a general game-asset pipeline.
What each technique can and cannot do
| Technique | Useful for | Limitation |
|---|---|---|
| Pixel Art Fixer | Recovering a native grid from softened, non-integer, or oversized pseudo-pixel art | Classical detection can fail when the grid is badly damaged or cells are very small |
| ComfyUI Pixelization | Turning ordinary digital art into sharper, cell-controlled pixel art | Underlying model is non-commercial research only and may damage existing pixel art |
| Outpainting | Extending the scene beyond its current borders | Produces more raster canvas, not a guaranteed pixel grid |
| Crop and Stitch | Repairing one region at the model's preferred resolution | Blending and resampling still need native-grid normalization |
| Tiled diffusion | Panoramas, regional prompts, and canvases larger than working memory | The linked implementation has non-commercial components and does not enforce pixel cells |
| MMPX | Magnifying true native pixel art while preserving its style | Assumes the input is already real pixel art; it cannot recover a fake grid |
That makes the deterministic fixer the best current structural fallback after ComfyUI, not a quality generator. Use outpainting, regional generation, or tiles to solve composition first. Recover the grid next, enforce palette and alpha rules after that, perform the human art review, and reserve nearest-neighbor or MMPX for presentation of an already-valid native asset.