Skip to content

H3 Editor 0.18.1

Latest

Choose a tag to compare

@igorls igorls released this 30 Nov 01:06

Cleaner sprite cutouts: no light rim around a character, and pictures on black keep their black clothes and line art.

0.18.0 against 0.18.1: a white plate moved to green, and a picture on black moved to green

What's fixed

No light rim around a cutout

The backdrop key gave the antialiased pixels at a character's edge full opacity. A dark outline drawn on white came out with a thin light rim once the cutout stood on green or blue, or on a game's own background.

Those pixels are now read as blends of the backdrop and the character's own colour just inside the edge, which gives them their real opacity and colour. The fix applies to sprite frames and to reference plates moved to another backdrop.

On a 512 px plate 0.18.0 0.18.1
Light rim on hair, cape and boots yes gone
Pixels inside the body made see-through none none
Time to cut out 24 ms 28 ms

Pictures on black keep their black clothes and line art

A picture drawn on black and moved to another backdrop lost everything as dark as the backdrop: black outlines, a black jacket, thick lashes. Colour alone cannot tell them from the backdrop.

  • When BiRefNet is installed, a picture on a dark backdrop is now cut by its matte instead of by colour. BiRefNet is only loaded when a dark picture needs it.
  • Without BiRefNet, the colour key still runs, but it now keeps thin lines: a patch is only taken out as a gap between the limbs when it is thick enough to be one.
  • Pictures on white and other light colours keep the colour key, as before.

For agents

Node Input Notes
H3LoadStill bg_model (optional, lazy) A background removal model. The node asks for it only for a picture on a dark backdrop moved to another colour.

Sprite renders link it to the sprite sheet's matte loader, so BiRefNet is loaded once for both. Nothing changes in projects or settings.

How it was tested

The unit tests (752 pass), cutouts compared side by side with 0.18.0, and renders in a live ComfyUI.

What Result
Four reference plates moved from white to green the rim is gone on all four; no pixel inside a body made see-through
19 frames from sprite takes in 8 projects: armour, a flag, a spell glow, crystals, a sheer white scarf, curly hair, pixel art, frames on white, green and black the rim is gone or smaller wherever there was one; no pixel inside a body made see-through
A pixel-art outline at 4× 0.18.0 added a grey stair-step pixel outside the line; 0.18.1 matches the source art
Two pictures on black moved to green, through H3LoadStill with BiRefNet the black jacket, lashes and outlines stay
A plate on white through the same node, with BiRefNet linked cut by colour; BiRefNet is not loaded (0.12 s)
A draft sprite walk pinned at both ends to a picture on black, backdrop green green on all 56 frames; a clean 12-pose sheet

Updating

Update from ComfyUI-Manager or pull the repository, then restart ComfyUI. Projects and existing takes are unchanged. New takes and exports use the cleaner cutout.

Full changelog: https://github.com/igorls/comfyui-h3-editor/blob/main/CHANGELOG.md