Skip to content

halr9000/procgen9000

Repository files navigation

Procgen 9000 🏔️

A ComfyUI custom node toolkit focused on providing several ways to procedurally generate images to be used as seeds for image-to-image (img2img) and ControlNet workflows.

The first node in this set is a procedural 2D landscape image generator using the Midpoint Displacement algorithm, as described in this blog post.

Features

  • Landscape Generator Node: Generates procedural landscapes with customizable styles.
    • Algorithm: Faithful port of the iterative vertical midpoint displacement, 4 scaled terrain layers drawn back-to-front.
    • Inputs: seed, width, height, style dropdown, show_sun toggle.
    • Palettes: Twilight, Desert Dusk, Arctic, Forest, Volcanic, Ocean.
    • Custom Mode: Fine-tune the RGB values for the sky, sun, and all 4 layers.
    • Random Mode: Automatically generates random, seed-reproducible color palettes.
    • UI: Includes a horizontal color swatch preview to easily see the current palette without rendering the image.

Quickstart

  1. Install ComfyUI.
  2. Install ComfyUI-Manager
  3. Look up this extension in ComfyUI-Manager. If you are installing manually, clone this repository under ComfyUI/custom_nodes.
  4. Restart ComfyUI.

Develop

To install the dev dependencies and pre-commit (will run the ruff hook), do:

cd procgen9000
pip install -e .[dev]
pre-commit install

About

A ComfyUI custom node toolkit focused on providing several ways to procedurally generate images to be used as seeds for image-to-image (img2img) and ControlNet workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors