done
This commit is contained in:
@@ -28,7 +28,7 @@ scale = Vector2(0.783, 0.78)
|
||||
texture = ExtResource("2_u8g8b")
|
||||
```
|
||||
|
||||
The texture path references an ext_resource pointing to the background image.
|
||||
The texture path references an ext_resource pointing to the background image. **Use this path for mask extraction, NOT pic_XXX_visual.png.** The .tscn references the AI-generated caption image which is what should be used.
|
||||
|
||||
### 2. Verify Entity Visibility
|
||||
|
||||
@@ -50,12 +50,14 @@ Use `tools/extract_mask.py` to generate the mask:
|
||||
|
||||
```bash
|
||||
python tools/extract_mask.py "the [entity]" \
|
||||
scenes/kq4_XXX_room/background.png \
|
||||
scenes/kq4_XXX_room/caption_XXX_generated.png \
|
||||
/tmp/[entity]_mask.png
|
||||
```
|
||||
|
||||
**Subject phrasing:** Use descriptive phrasing like "the door of the ogre's cottage" for better results.
|
||||
|
||||
**CRITICAL:** Always use the background image path from the .tscn file (e.g., `caption_3_840023845_generated.png`), NOT `pic_XXX_visual.png`. The .tscn shows which image is actually used in-game.
|
||||
|
||||
### 4. Generate Polygon Resource
|
||||
|
||||
Use `tools/mask_to_polygon.py` to create the .tres file:
|
||||
|
||||
Reference in New Issue
Block a user