diff --git a/.gitattributes b/.gitattributes index 8bb9743..23282ab 100644 --- a/.gitattributes +++ b/.gitattributes @@ -30,3 +30,5 @@ scenes/kq5style/friendly-guy.png filter=lfs diff=lfs merge=lfs -text *.ttf filter=lfs diff=lfs merge=lfs -text scenes/healers/image6.png-autosave.kra filter=lfs diff=lfs merge=lfs -text mockup.kra filter=lfs diff=lfs merge=lfs -text +*.ora filter=lfs diff=lfs merge=lfs -text +*.kra filter=lfs diff=lfs merge=lfs -text diff --git a/.opencode/skills/alpha-mask-creator/SKILL.md b/.opencode/skills/alpha-mask-creator/SKILL.md index 106a116..7c20fac 100644 --- a/.opencode/skills/alpha-mask-creator/SKILL.md +++ b/.opencode/skills/alpha-mask-creator/SKILL.md @@ -11,18 +11,25 @@ This skill creates alpha masks from images based on user requests. Use this when ### 0. Extract layer (conditional) If the user provided a layer name from an ora file, you should use the ora-editing skill to extract a png of that layer. First use the inspect to list the layers, then use the extract. -### 1. Draw Polygon Outline -Use the `polygon-drawer` skill to draw a polygon outline around the identified object. Save the output to `./tmp/` with a sensible filename: +### 1. Draw Polygon Outline (optional, default) +Use the `polygon-drawer` skill to draw a polygon outline around the identified object. If the user asks to bypass the polygon, do so. Save the output to `./tmp/` with a sensible filename: - Format: `..png` - Example: If the user wants a door mask from `room_010.png`, name it `room_010.door.png` ### 2. Extract Mask -Run the `extract_mask` script to generate the alpha mask: +Run the `extract_mask` script to generate the alpha mask. If a polygon was added, make sure to include "with the outline", or "outlined in ". You can also explicitly omit things: ```bash source ./tools/venv/bin/activate python tools/extract_mask.py "the door with the red outline" ./tmp/..png ./tmp/..mask.png ``` +Examples: +- The boulder outlined in red +- The door with the blue polygon around it +- The fence, excluding the bushes behind it +- The house, including the windows and chimney, outlined in blue +- The mailbox, including the flag, omitting the house behind it + ### 3. Quality Check Examine the generated mask using the `image-expert` agent: - Check if the mask is precise and accurate diff --git a/.opencode/skills/scene-breakdown/SKILL.md b/.opencode/skills/scene-breakdown/SKILL.md index a274dff..db537c8 100644 --- a/.opencode/skills/scene-breakdown/SKILL.md +++ b/.opencode/skills/scene-breakdown/SKILL.md @@ -24,7 +24,7 @@ Use this skill when: First, examine the scene image to identify all elements. You should ask the @image-expert agent to do this, giving it the filename to read: -1. **Foreground elements** - Objects closest to camera that would obscure player. Examples would include: +1. **Foreground elements** - Objects closest to camera that would obscure player. Most of the time foreground elements should be put together if they overlap one another. Examples would include: - Large trees extending into frame - Foreground framing, like in a room, sometimes the foreground is all black - Foreground bushes and plants @@ -62,7 +62,7 @@ For each foreground/mid-ground element identified, note: ### Step 3: Create Alpha Masks Use the alpha-mask-creator skill to create a new mask. The user may ask for a certain number of variations (default 2). Check that the mask properly isolates the element. In those case -just use the skill multiple times and it will create a different variation of the mask. +just use the skill multiple times and it will create a different variation of the mask. Always do these one at a time, because the system might get overwhelmed if they are done in parallel. ### Step 4: Create ORA File diff --git a/ego/animations/minstrel-v3/idle-n-med/.0009 .png-autosave.kra b/ego/animations/minstrel-v3/idle-n-med/.0009 .png-autosave.kra index 4841782..5d03eca 100644 Binary files a/ego/animations/minstrel-v3/idle-n-med/.0009 .png-autosave.kra and b/ego/animations/minstrel-v3/idle-n-med/.0009 .png-autosave.kra differ diff --git a/ego/animations/minstrel-v3/idle-s-med/.0004 .png-autosave.kra b/ego/animations/minstrel-v3/idle-s-med/.0004 .png-autosave.kra index 512458b..4699e19 100644 Binary files a/ego/animations/minstrel-v3/idle-s-med/.0004 .png-autosave.kra and b/ego/animations/minstrel-v3/idle-s-med/.0004 .png-autosave.kra differ diff --git a/icons.kra b/icons.kra index 737492e..c242e52 100644 Binary files a/icons.kra and b/icons.kra differ diff --git a/scenes/archive/healers/image6.png-autosave.kra b/scenes/archive/healers/image6.png-autosave.kra index a8a10b6..7866f53 100644 Binary files a/scenes/archive/healers/image6.png-autosave.kra and b/scenes/archive/healers/image6.png-autosave.kra differ diff --git a/scenes/archive/meadow-2/.meadow_2.png-autosave.kra b/scenes/archive/meadow-2/.meadow_2.png-autosave.kra index 8aabbc7..ae499db 100644 Binary files a/scenes/archive/meadow-2/.meadow_2.png-autosave.kra and b/scenes/archive/meadow-2/.meadow_2.png-autosave.kra differ diff --git a/scenes/kq4_004_ogres_cottage/.ComfyUI_09922_.png-autosave.kra b/scenes/kq4_004_ogres_cottage/.ComfyUI_09922_.png-autosave.kra index 2a0b758..5a83d00 100644 Binary files a/scenes/kq4_004_ogres_cottage/.ComfyUI_09922_.png-autosave.kra and b/scenes/kq4_004_ogres_cottage/.ComfyUI_09922_.png-autosave.kra differ diff --git a/scenes/kq4_009_shady_wooded_area/.caption_3.ora-autosave.kra b/scenes/kq4_009_shady_wooded_area/.caption_3.ora-autosave.kra new file mode 100644 index 0000000..4d79adf --- /dev/null +++ b/scenes/kq4_009_shady_wooded_area/.caption_3.ora-autosave.kra @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68e93be9b99a9c2cfa39a365ea2f5336917f87d1249e0418b0c5fe55a1dbcae4 +size 111759977 diff --git a/scenes/kq4_009_shady_wooded_area/caption_3.ora b/scenes/kq4_009_shady_wooded_area/caption_3.ora new file mode 100644 index 0000000..798ca70 --- /dev/null +++ b/scenes/kq4_009_shady_wooded_area/caption_3.ora @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:977448c5e1ed254b87d42a381470b048d0ed654c17ecc0e4b079ad0a9596eafd +size 73093385 diff --git a/scenes/kq4_021_bridge_over_stream/caption_2_2180550861_generated.ora b/scenes/kq4_021_bridge_over_stream/caption_2_2180550861_generated.ora new file mode 100644 index 0000000..98e4a84 --- /dev/null +++ b/scenes/kq4_021_bridge_over_stream/caption_2_2180550861_generated.ora @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7735763ca4f40de0083ea44d4ece84557380222ccca6dc566d7dd099056a5386 +size 58428811 diff --git a/scenes/kq4_025_beach_at_river_delta/layers.kra b/scenes/kq4_025_beach_at_river_delta/layers.kra index 12a775b..60fc044 100644 Binary files a/scenes/kq4_025_beach_at_river_delta/layers.kra and b/scenes/kq4_025_beach_at_river_delta/layers.kra differ diff --git a/tools/.output.ora-autosave.kra b/tools/.output.ora-autosave.kra index b4cc9bf..e53d3ae 100644 Binary files a/tools/.output.ora-autosave.kra and b/tools/.output.ora-autosave.kra differ