Community코딩 & 개발github.com

asset-pipeline

생성되거나 수작업으로 제작된 아트워크를 게임 엔진이 로드할 수 있는 정확한 형식으로 변환합니다. 스프라이트 컷아웃, 트리밍, 프레임 크기에 맞춘 최근접 이웃 피팅, 팔레트 기반 픽셀화, 스프라이트 시트/스트립, 플레이어/팀 색상 마스크, 시임리스 텍스처, 3D 모델을 게임 스프라이트 프레임으로 렌더링하는 기능을 포함합니다.

asset-pipeline란 무엇인가요?

이 스킬은 아트워크(생성된 이미지 또는 수작업)를 게임 엔진이 직접 로드할 수 있는 형식으로 변환하는 완전한 에셋 파이프라인을 제공합니다. 게임의 기존 에셋을 분석하여 올바른 프레임 크기, 레이아웃, 방향, 알파 채널, 팔레트 및 파일 형식을 파악하는 방법부터 시작합니다. `um sprite ...` 명령어로 2D 스프라이트 파이프라인(컷아웃, 피팅, 픽셀화, 프레임 애니메이션, 시트 생성, 팀 색상 마스킹 등)을 지원하며, `um render3d ...` 명령어를 통해 Blender를 사용하여 3D 모델을 다양한 게임 엔진(AoE2, 아이소메트릭, 사이드뷰 등)에 맞는 스프라이트 시트로 렌더링할 수 있습니다. 또한 텍스처 타일링, PBR 세트 변환, DDS 압축 등 텍스처/머티리얼 처리 기능을 제공합니다. 마지막으로, 게임에 에셋을 배치하여 스크린샷을 통해 검증하고, Unity 또는 Minecraft와 같은 게임의 기존 에셋을 변환하는 고급 기능도 포함되어 있어 모드 개발 및 리소스 팩 제작에 매우 유용합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/rehan-remade/universal-modder/tree/main/skills/asset-pipeline

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

에셋 파이프라인: 아트워크에서 엔진이 읽을 수 있는 파일로

fal-assets 스킬이 그림을 만듭니다. 이 스킬은 게임이 수용하는 파일(올바른 크기, 프레임 레이아웃, 방향, 알파, 팔레트, 형식)을 만듭니다. 모든 명령어는 um sprite ... 및 um render3d ...이며, 각 명령어에는 예제가 포함된 --help가 있습니다.

1. 게임 자체에서 대상 형식 파악하기

변환을 시작하기 전에 게임 자체의 에셋 2~3개를 열고 MODLOG.md에 다음을 기록하세요.

  • 크기: 프레임 크기, 시트당 프레임 수, 레이아웃(세로 스트립/그리드/파일당 한 프레임).
  • 방향: 아트워크가 바라보는 방향(테라리아: 아이템은 오른쪽, NPC는 왼쪽을 향하며 엔진이 뒤집음), 피봇 또는 핫스팟 위치(AoE2: 유닛의 지면 지점이 캔버스 중앙에 위치).
  • 알파: 하드 1비트 가장자리(BC1 펀치스루, 픽셀 아트) 또는 소프트.
  • 스타일: 팔레트 크기와 외곽선(대부분의 픽셀 아트 게임에서 어두운 1~2px 외곽선).
  • 형식: PNG, DDS BC1/BC3/BC7, XNB, SLD, 아틀라스 + JSON…

그리기 코드가 최종 권위자입니다. 테라리아에서 NPC 프레임 높이 = 텍스처 높이 / Main.npcFrameCount이므로 일관된 프레임 크기면 작동합니다.

2. 2D 파이프라인

um sprite info raw.png                                    # 크기, 알파 범위, 모서리 색상
um sprite cutout raw.png cut.png                          # 평평한 배경 → 투명 (경계 채우기는 내부 흰색 유지)
um sprite cutout raw.png cut.png --grey 150 --keep-top 0.8   # 부드러운 회색 그림자/바닥 제거
um sprite fit cut.png item.png --size 64x26 --hard-alpha  # 트리밍 + ONE 최근접 이웃 스케일을 프레임에 맞춤
um sprite fit cut.png npc.png --size 38x34 --anchor bottom   # 서 있는 스프라이트는 프레임의 아래쪽 가장자리에 위치
um sprite pixelate cut.png px.png --size 32x32 --colors 16 --outline   # 회화적 아트에서 진정한 픽셀 아트로
um sprite palette px.png px2.png --from stock_sprite.png  # 게임 자체 색상으로 스냅
um sprite frames npc.png frames/ --n 3 --kind bob          # 저렴한 대기 애니메이션 (bob/squash/wobble/flash)
un sprite sheet sheet.png frames/*.png --vertical         # 테라리아 스타일 스트립 (또는 --cols N 그리드)
um sprite slice sheet.png out/ --frame 32x32              # 반대 방향
um sprite team-mask unit.png unit_grey.png --hue blue     # 플레이어 색상 마스크 (+ 채도 낮춤 스프라이트)
um sprite preview item.png look.png --scale 6             # 체커보드 + 확대: 배포 전에 확인!
  • 픽셀 아트: 최종 크기로 한 번만 최근접 이웃으로 스케일링합니다. 픽셀 아트를 두 번 스케일링하지 마세요.
  • 회화 / HD 아트: fit --smooth를 사용하세요.
  • 실제 프레임: bob/squash 이상의 애니메이션 프레임의 경우, 기본 스프라이트를 참조로 사용하여 fal edit 엔드포인트로 각 프레임을 생성하고("동일한 드론, 로터 기울임, 프레임 2/4"), 동일한 방식으로 각 프레임을 컷아웃 및 피팅합니다. 또는 3D(아래)를 사용하세요.

3. 3D → 스프라이트 (일관된 각도 및 애니메이션)

um fal model3d concept.png --name unit                   # 텍스처링된 GLB (기본값 Trellis 2)
um render3d assets/gen/unit.glb frames/ --preset aoe2 --length 80 --forward-yaw -90 \
  --anims idle:10:bob,walk:12:walk,attack:16:lunge,death:20:die --shadows --samples 40
um render3d assets/gen/unit.glb side/ --preset side --canvas 128 --length 110 --engine eevee   # 플랫포머 오른쪽 + 왼쪽

프리셋:

프리셋투영카메라방향
aoe2직교30°동쪽부터 시계 방향 16방향
iso8직교30°8방향
trueiso직교35.264°8방향
topdown직교—8방향
side직교—2방향 (오른쪽, 왼쪽)
turntable원근—24방향 (프로모션/아이콘 회전)
  • --length는 1x에서 모델의 가장 긴 가로 측면을 픽셀 단위로 설정하므로, 기존 유닛과 일치시킵니다.
  • --forward-yaw는 모델의 앞면이 +X를 향하도록 회전시킵니다. 첫 번째 프레임을 확인하세요.
  • --shadows는 엔진이 그림자를 자체 레이어에 유지하는 경우를 위한 그림자 전용 패스(*_s.png)를 추가합니다.
  • 모션: bob, walk, lunge, die, wreck, spin.
  • 그런 다음 um sprite sheet 또는 엔진 작성기(예: examples/aoe2-de-civ/sld.py)로 패킹합니다.
  • Blender 필요(blender가 PATH에 있거나 BLENDER=... 설정). Cycles는 가능한 경우 GPU를 사용합니다.
  • 어두운 생성 텍스처: --sun / --ambient을 높이거나, 후처리에서 밝게 합니다.
  • 게임용 3D(스프라이트가 아닌 경우)의 경우, um fal run tripo3d/tripo/remesh [email protected] face_limit:=8000으로 리메시한 후, Blender에서 엔진의 스케일 및 축 규칙에 따라 변환합니다(GLB → FBX/OBJ)(Unity Y-up 미터, Unreal Z-up 센티미터, Bethesda NIF는 PyNifly를 통해).

4. 텍스처 및 머티리얼

  • 타일링: um fal texture가 타일링되어 생성합니다. um sprite tile-preview t.png t3.png로 확인하세요. 다른 이미지의 이음새는 um sprite seamless으로 수정합니다.
  • PBR 세트: um fal pbr. 엔진의 패킹 방식으로 변환합니다(Unreal ORM(occlusion/roughness/metal in RGB), Unity metallic-smoothness(smoothness = 1 - roughness in alpha)).
  • DDS: texconv(DirectXTex) 또는 magick을 DXT 설정과 함께 사용합니다. 품질은 BC7, 컷아웃 스프라이트는 BC1, 알파가 부드러울 때는 BC3.

5. 게임에서 검증

변환된 에셋 하나를 게임에 넣고 기존 아트와 함께 스크린샷을 찍습니다(um win shot). 크기, 방향, 피봇, 외곽선, 팔레트를 확인합니다. 레시피를 수정한 후, 동일한 명령어로 나머지를 배치 변환합니다(작은 스크립트나 Makefile을 사용하여 assets/gen/에서 파이프라인을 재현 가능하게 유지).

6. 게스트 게임의 Unity 에셋 변환 (매시업)

UnityPy로 사용자 자신의 설치를 읽고 로컬, 비공개 리소스 팩을 작성합니다. 출력물을 모드, 저장소 또는 릴리스에 절대 넣지 마세요. 각 사용자는 자신의 복사본에서 변환기를 실행합니다.

  • 메모리: UnityPy.load()는 전체 번들을 압축 해제합니다(865 MB 번들이 8.7 GB RAM이 됨). 직렬화된 파일만 압축 해제하고 .resS / .resource를 게으르게 블록 단위로 읽습니다. 각 변환기 모듈을 자체 프로세스에서 실행합니다.
  • 환경: UnityPy.Environment(path="")를 사용하고, 상호 참조되는 번들을 함께 로드합니다. 그렇지 않으면 UnityPy가 누락된 종속성을 위해 작업 디렉터리를 검색합니다.
  • 에셋 찾기: Addressables 번들 이름은 업데이트마다 해시됩니다(접두사로 찾습니다). Addressables 2.x에는 바이너리 catalog.bin이 있습니다. 게임 오브젝트를 이름 추측이 아닌 GUID 키를 통해 프리팹에 매핑합니다. 가능한 경우 저품질 변형을 선호합니다(동일한 메시, 더 작은 텍스처).
  • 스킨드 메시는 바인드 포즈(종종 T-포즈)로 저장됩니다. 게임 내 모양을 얻으려면 대기 클립을 t = 0에서 직접 평가하세요(UnityPy는 AnimationClip 오브젝트를 읽지만 샘플링하지 않습니다. Generic 클립은 경로의 CRC32로 Transform을 바인딩합니다), 월드 행렬을 재구성한 다음 스키닝합니다.
  • 컨테이너 루트에서 계층 구조를 탐색하고, 비활성 GameObject와 그 자식은 건너뛰고, 헬퍼 메시(눈꺼풀, 바닥 그림자, 스텐실/외곽선 머티리얼)는 버립니다.
  • 축: Unity는 왼손 좌표계, Minecraft는 오른손 좌표계입니다. 위치와 법선에 대해 한 축을 뒤집고 감기 순서를 반대로 합니다. V를 뒤집고 UV를 클램프합니다. 명명된 뼈로 확인합니다(오른손이 오른쪽에 있어야 함).
  • 공유 아틀라스: 각 부품의 텍스처를 UV 경계 상자로 자르고 UV를 다시 매핑합니다.
  • 오디오: AudioClip.samples에는 FMOD(fmod_toolkit)가 필요합니다. ffmpeg로 모노 OGG로 인코딩합니다.
  • Minecraft 측: 팩에는 pack.mcmeta가 필요합니다(1.20.1의 경우 pack_format 15). ResourceLocation은 [a-z0-9_./-]만 허용합니다. 포즈 메시의 경우 RenderType.entityCutoutNoCull로 그리는 사용자 정의 메시 파일이 forge:obj(블록 아틀라스 텍스처, usemtl)보다 더 견고합니다.
  • 신탁: 작성한 파일을 다시 읽어 미리 보기 시트를 렌더링하고 확인하세요.

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

fal-assets

Generate game assets with fal (fal.ai) through the fal MCP server, the `um fal` CLI (REST) or `fal api`. Covers sprites and icons with transparent backgrounds, consistent variants and animation frames, pixel art, seamless textures, PBR material maps, image-to-3D models, remeshing, auto-rigging, sound effects, music, voice lines, and trailer or cutscene video. Use whenever a mod needs new art, audio or 3D models, or the user mentions fal, generating sprites, textures, models, SFX or music for a game.

game-automation

Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.

game-recon

Figure out how a specific installed game can be modded, before writing any mod code. Covers where it

game-research-websearch

Research a game, engine or modding technique on the open web with archive-aware, rate-limit-safe searches — Wayback Machine/archive.today for dead forums (XeNTaX, Zenhax, old threads), GitHub code/repo search, Nexus/Steam Workshop/Thunderstore APIs, Reddit JSON, YouTube transcripts, plus archive snapshots as evidence. Use when starting work on a game (

mashup-mods

Build cross-game mashups and total conversions, the

mod-any-game

Mod a PC game the user owns, taking an idea to working in the real game and recorded. It covers new items, weapons, enemies, bosses, units, civilizations, mechanics, art, sound, VR and cross-game mashups. Use when the user wants to mod, extend, hack on, reverse engineer or mash up a game (

port-a-mod

Port an existing mod to a newer game version or another mod loader while keeping its behaviour, values and quirks. Typical cases are an old Forge 1.7.10 or 1.12 Minecraft mod moving to modern Fabric or NeoForge, a Skyrim LE plugin moving to SE/AE, or a tModLoader 1.3 mod moving to 1.4. It covers pinning one source version, a private decompiled reference, an adaptation matrix, extracting the mod

publish-mod

Package and release a finished game mod. Covers the pre-release lint (no game files, decompiled code or leaked keys), README and install steps, credits and AI disclosure, versioning, where to upload (Nexus Mods, Steam Workshop, Thunderstore, mod.io, GitHub releases), and the post with a video. Use when the user wants to ship, share, upload, release or post a mod.

reverse-engineering

Read how a game actually works so a mod can hook it. Decompile .NET/Mono (ILSpy), IL2CPP (Cpp2IL, Il2CppDumper), Java (Vineflower) and native code (Ghidra, IDA, via MCP servers); dump data and asset formats; reverse-engineer a binary file format and prove it with a round trip; read live memory (Cheat Engine, Frida, x64dbg); find render passes (RenderDoc). Use when a mod needs game internals, e.g.

share-field-notes

Search and contribute to the shared AI-modding knowledge base, where field notes record how specific games were modded, decompiled or reverse-engineered (exact versions, route, engine facts, verification, gotchas). Use before starting work on a game (

showcase-video

Record and cut a short showcase video of a game mod, or a compilation of clips, ready to post on X/YouTube. Records the game window with only the game

관련 스킬