y3-gen-terrain-from-image

Official

将地图图片快速转换为 Y3 地形的端到端流程。

Authory3-editor
Version1.0.0
Installs0

System Documentation

What problem does it solve?

通过将用户上传的 2D 地图图片自动转换为 Y3 编辑器所需的地形数据、纹理映射和中间产物,显著减少人工逐格绘制的工作量并提高再现一致性。

Core Features & Use Cases

  • 将输入图片转为高分辨率聚类、陆地/水域分割、大陆连通分割以及纹理分配,输出 terrain_grid.csv、texture_grid.csv 等中间产物。
  • Round 2 支持装饰物识别及后续 MCP 写入,形成从图像到实体的完整工作流,适用于手绘草图、规划图和战略地图等场景。
  • 整体工作流依托仓库中的 CV 脚本(cv_cluster、cv_continent_split、gen_round1_csv、decoration_postprocess)实现确定性任务执行和纹理映射。

Quick Start

将输入的地图图片路径作为参数运行,生成 terrain_grid.csv 与 texture_grid.csv。

Dependency Matrix

Required Modules

opencv-pythonnumpyrequestsscipyPillow

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: y3-gen-terrain-from-image
Download link: https://github.com/y3-editor/y3-maker-config/archive/main.zip#y3-gen-terrain-from-image

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.