破门而入2:北方特遣队

破门而入2:北方特遣队

评价数不足
Generate DK2 UI icons from images
由 knoedelsalat 制作
A FOSS method to automatically create Door Kickers 2 UI icons from images using ComfyUI
   
奖励
收藏
已收藏
取消收藏
Examples

Example icon of a G36KA4, larger side 400 px, default settings, no retouching.
Original image by Ominae[www.imfdb.org], source: IMFDB[www.imfdb.org]


XD-D Elite Tactical OSP, larger side 220 px, RMBG INSPYRENET, no retouching.
Original image by The Armory Life[www.thearmorylife.com]


Kimber Ultra Carry II, larger side 170 px, default settings, no retouching.
Original image by Bass Pro Shops[www.basspro.com]

More tests and examples in the DK2 Steam Workshop discussions board
Overview
Load up a source image, enter the desired longer side of the icon to be generated (in pixels), and render the icon.

The workflow will automatically remove the background from the image, crop and resize it, and create an icon in the DK2 color scheme.

After reviewing and tweaking the result, the workflow can save a batch of images to your ComfyUI output folder, currently those are:

Filename
Notes
prefix_00-source.png
the source image as reference
prefix_01-body.png
the dark brown background
prefix_02-lineart.png
the fine line art inside of the icon
prefix_03-outline.png
the thick outline around the icon
prefix_04-icon.png
all layers combined into one image

All images will be properly alpha-masked and resized, and can be opened as layers in GIMP or Photoshop for manual fine-tuning.

Check the example output folder in the GitHub repo[github.com] to see what these layers will look like.
Screenshot
ComfyUI with the workflow open. The colorful noodles should make you feel right at home.

Download
Workflow files and detailed instructions on how to use are over on GitHub:

https://github.com/knoedelsalat/image-to-dk2-ui-icon

If you have questions or comments, drop me a line!

All the best and happy modding :)
2 条留言
knoedelsalat  [作者] 3 月 29 日 上午 7:59 
Hey @Takeshi, thanks for letting me know. I must have skipped those when doing the write-up.

Updated the README on GitHub, hope this is all of them now!
Takeshi, made in Mom 3 月 29 日 上午 3:55 
Hi, I tried this with the minimum custom nodes, but these 3 below would be needed.
"ComfyMath" node for "CM_IntBinaryOperation" function.
"Image Resize for ComfyUI" for "ImageResize"
"Comfyroll Studio" for "CR Text Operation" and "CR Text Replace"