[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -1,82 +1,172 @@
|
||||
---
|
||||
id: wiki-2026-0508-okami-ink-wash-aesthetics
|
||||
title: Okami Ink Wash Aesthetics
|
||||
category: 10_Wiki/Topics_GD
|
||||
status: draft
|
||||
category: 10_Wiki/Topics
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: []
|
||||
aliases: [Sumi-e, Okami Art Style, Cel-shaded Ink, NPR Ink-Wash]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.92
|
||||
tags: [uncategorized]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [non-photorealistic-rendering, art-style, shader, okami, sumi-e, npr]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-08
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: HLSL/GLSL
|
||||
framework: NPR-shader
|
||||
---
|
||||
|
||||
---
|
||||
redirect_to: "[[게임_디자인_및_가상_경제_시스템]]"
|
||||
canonical_id: "wiki-2026-0507-105"
|
||||
---
|
||||
# Okami Ink Wash Aesthetics
|
||||
|
||||
# Redirect
|
||||
## 매 한 줄
|
||||
> **"매 Okami Ink Wash는 매 Japanese sumi-e (墨絵) 의 매 real-time game rendering 의 매 translation"**. 매 Clover Studio 2006 의 매 hand-painted brush stroke + 매 watercolor bleed + 매 calligraphic outline 의 매 NPR pipeline — 매 modern stylized rendering 의 매 foundational reference.
|
||||
|
||||
이 문서는 Canonical 문서인 통합되었습니다.
|
||||
모든 최신 지식과 세부 내용은 위 링크를 참조하십시오.
|
||||
## 매 핵심
|
||||
|
||||
### 매 Visual Components
|
||||
- **Outline (calligraphic)**: 매 view-space normal/depth edge detection + 매 brush-tip texture 의 매 sweep along edge.
|
||||
- **Cel-shaded fill**: 매 매 2-3 tone toon shader, 매 hard band transition.
|
||||
- **Paper texture**: 매 background canvas (washi paper) 의 매 multiplicative overlay.
|
||||
- **Ink bleed**: 매 매 alpha-mask 의 매 noise-perturbed edge — 매 ink-on-paper 의 매 organic boundary.
|
||||
- **Color desaturation**: 매 매 muted ochre/red/black palette — 매 sumi-e 의 매 traditional ink color.
|
||||
|
||||
> 🤖 **[AI 추론 보강 필요]** — 본문이 200자 미만이라 P-Reinforce가 빈약 stub으로 분류했습니다.
|
||||
> source_trust_level=`C` (AI 보강분), confidence_score=`0.92`로 표시되어 있습니다.
|
||||
> 사용자 검증 후 trust_level 상향 조정 가능.
|
||||
### 매 Rendering Pipeline
|
||||
1. Geometry pass (forward).
|
||||
2. Outline pass (post-process: depth + normal Sobel → brush-stroke compositor).
|
||||
3. Toon shading (vertex normal · light direction → step function).
|
||||
4. Paper overlay (full-screen quad multiply).
|
||||
5. Ink-bleed mask (procedural noise on alpha).
|
||||
|
||||
### 매 응용
|
||||
1. Okami / Okamiden (Clover, Capcom).
|
||||
2. Sumire / Genji (homage).
|
||||
3. Modern: Sable, Kena: Bridge of Spirits (related NPR styles).
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
## 💻 패턴
|
||||
|
||||
> *(TODO: 한 문장으로 핵심 통찰을 작성. "X는 Y 조건에서 Z 효과를 낸다" 구조 권장.)*
|
||||
### Sobel-based outline detection (post-process)
|
||||
```hlsl
|
||||
// HLSL — sample depth in 3x3 kernel, apply Sobel
|
||||
float SampleDepth(float2 uv) { return _DepthTex.SampleLevel(s, uv, 0).r; }
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
float4 OutlinePass(float2 uv : TEXCOORD0) : SV_Target {
|
||||
float2 px = _ScreenSize.zw;
|
||||
float gx =
|
||||
-SampleDepth(uv + float2(-px.x,-px.y)) - 2*SampleDepth(uv + float2(-px.x, 0)) - SampleDepth(uv + float2(-px.x, px.y))
|
||||
+SampleDepth(uv + float2( px.x,-px.y)) + 2*SampleDepth(uv + float2( px.x, 0)) + SampleDepth(uv + float2( px.x, px.y));
|
||||
float gy =
|
||||
-SampleDepth(uv + float2(-px.x,-px.y)) - 2*SampleDepth(uv + float2(0,-px.y)) - SampleDepth(uv + float2( px.x,-px.y))
|
||||
+SampleDepth(uv + float2(-px.x, px.y)) + 2*SampleDepth(uv + float2(0, px.y)) + SampleDepth(uv + float2( px.x, px.y));
|
||||
float edge = saturate(sqrt(gx*gx + gy*gy) * 50);
|
||||
float brush = _BrushTex.Sample(s, uv * 4 + Hash(uv) * 0.05).r;
|
||||
return float4(0,0,0, edge * brush);
|
||||
}
|
||||
```
|
||||
|
||||
**추출된 패턴:**
|
||||
> *(TODO)*
|
||||
### Toon (cel) shading with hard bands
|
||||
```glsl
|
||||
// GLSL — 3-tone toon
|
||||
float toonRamp(float NdotL) {
|
||||
if (NdotL > 0.6) return 1.0;
|
||||
if (NdotL > 0.2) return 0.6;
|
||||
return 0.3;
|
||||
}
|
||||
|
||||
**세부 내용:**
|
||||
- *(TODO)*
|
||||
void main() {
|
||||
vec3 N = normalize(vNormal);
|
||||
float NdotL = max(dot(N, uLightDir), 0.0);
|
||||
float band = toonRamp(NdotL);
|
||||
fragColor = vec4(uBaseColor * band, 1.0);
|
||||
}
|
||||
```
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### Paper texture overlay
|
||||
```hlsl
|
||||
// Full-screen post-process — multiplicative paper grain
|
||||
float4 PaperOverlay(float2 uv : TEXCOORD0) : SV_Target {
|
||||
float4 scene = _SceneTex.Sample(s, uv);
|
||||
float paper = _PaperTex.Sample(s, uv * _PaperScale).r;
|
||||
// Slightly desaturate scene for ink-wash feel
|
||||
float gray = dot(scene.rgb, float3(0.299, 0.587, 0.114));
|
||||
scene.rgb = lerp(float3(gray,gray,gray), scene.rgb, 0.85);
|
||||
return float4(scene.rgb * (0.7 + paper * 0.3), 1.0);
|
||||
}
|
||||
```
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
### Ink-bleed alpha noise
|
||||
```glsl
|
||||
// Animate bleed boundary using simplex noise
|
||||
float inkBleed(vec2 uv, float t) {
|
||||
float n = simplex(uv * 12.0 + vec2(t * 0.1));
|
||||
return smoothstep(0.45, 0.55, n);
|
||||
}
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
void main() {
|
||||
vec4 base = texture(uInk, vUV);
|
||||
float bleed = inkBleed(vUV, uTime);
|
||||
fragColor = vec4(base.rgb, base.a * bleed);
|
||||
}
|
||||
```
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
### Brush-stroke trail (Celestial Brush mechanic)
|
||||
```typescript
|
||||
// Player draws a stroke; sample points become ribbon mesh
|
||||
class BrushStroke {
|
||||
points: { pos: Vec2; pressure: number; t: number }[] = [];
|
||||
|
||||
- **정보 상태:** draft
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
add(p: Vec2, pressure: number) {
|
||||
this.points.push({ pos: p, pressure, t: performance.now() });
|
||||
}
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
toRibbonMesh(): Mesh {
|
||||
return generateRibbon(this.points, p => p.pressure * 8.0);
|
||||
// Width tapers based on pressure; texture is brush-tip
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
### Color palette (muted ochre/red/black)
|
||||
```hlsl
|
||||
// LUT-based color grading toward sumi-e palette
|
||||
float3 ApplyOkamiLUT(float3 color) {
|
||||
// Lookup table mapping linear color -> sumi-e palette
|
||||
return _OkamiLUT.Sample(s, color).rgb;
|
||||
}
|
||||
```
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| Stylized NPR action game | 매 Okami pipeline (outline + cel + paper) 의 매 baseline |
|
||||
| Performance-constrained mobile | 매 vertex-based outline (vs post-process) |
|
||||
| Player-authored brush mechanic | 매 ribbon-mesh + 매 spline tessellation |
|
||||
| Color grading | 매 muted palette LUT, 매 desaturate 80-90% |
|
||||
|
||||
- **과거 데이터와의 충돌:** 없음
|
||||
- **정책 변화:** 없음
|
||||
**기본값**: 매 view-space outline + 매 3-band toon + 매 paper overlay + 매 sumi-e LUT — 매 Okami canonical NPR stack.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
## 🔗 Graph
|
||||
- 부모: [[Procedural-Level-Geometry]] · [[Metaverse Aesthetics]]
|
||||
- 변형: [[Algorithmic Rhetoric]] · [[Procedural Rhetoric (In Gaming)]]
|
||||
- 응용: [[Beat Saber]] · [[Edge Bleeding]]
|
||||
- Adjacent: [[Real-Time Translation]] · [[InstancedMesh 동적 버퍼 확장]] · [[Early-Z]]
|
||||
|
||||
- **Parent:** [[10_Wiki/Topics]]
|
||||
- **Related:** *(TODO: 최소 2개)*
|
||||
- **Opposite / Trade-off:** *(TODO)*
|
||||
- **Raw Source:** 직접 입력
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 NPR shader design, 매 sumi-e/ink-wash style 의 매 implementation, 매 outline-detection algorithms.
|
||||
**언제 X**: 매 photo-realistic rendering (매 stylization 의 매 mismatch).
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
## 🪲 안티패턴
|
||||
- **Pure post-process outline**: 매 매 thin geometry 의 매 outline miss — 매 vertex-based hybrid 권장.
|
||||
- **Constant brush thickness**: 매 매 calligraphic feel 의 매 lose — 매 pressure/curvature 의 매 width modulate.
|
||||
- **Over-saturated palette**: 매 sumi-e 의 매 muted feel 의 매 contradict.
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Clover Studio Okami GDC 2007 talk, Capcom dev blogs, modern NPR research papers e.g. "Stylized Rendering" SIGGRAPH 2018).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — Okami NPR ink-wash pipeline + shader patterns |
|
||||
|
||||
Reference in New Issue
Block a user