More Related Content Similar to [GEG1] 2.the game asset pipeline Similar to [GEG1] 2.the game asset pipeline (20) More from ์ข
๋น ์ค (20) [GEG1] 2.the game asset pipeline1. Game Engine Gems 1
Chap 2.
The Game Asset Pipeline
ohyecloudy
homepage http://ohyecloudy.com
twitter @ohyecloudy
shader cafรฉ http://cafe.naver.com/shader
2011.06.13
2. 1GB๊ฐ ํฐ๊ฑด๊ฐ?
์์ฆ ๊ฒ์์ ๋ค ์ฐ์ต๊ฒ 1GB๋ ๋๊ธด๋ค
์ฌ๊ธฐ์ ๋๋ถ๋ถ์ game asset
๊ฐ์๋ก ์ปค์ง๋ asset ๊ด๋ฆฌ๊ฐ ๋ฌธ์
์ํฐ์คํธ๊ฐ ํ์๊ฒ ๋ถํ์ธ ์ ์๋ ํจ์จ์ ์ธ pipeline ํ์
ํ๋ซํผ์ ๋ง๋ ์ต์ ํ๋ ํ์
5. Source Assets
3D tool Image tool
+ plug-ins + plug-ins
Model
Textures
Animations
Intermediate Assets
Exporters Exporters
Fast Path
Interm. Interm. Interm.
Models Anims Textures
Final Assets
Build Build
Build Path
Platform A Platform B
6. Source Assets
3D tool Image tool
+ plug-ins + plug-ins
๋น๋ ํ๋ก์ธ์ค
Modelํ๊ฒ ํ๋ซํผ์ ๋ง๋ ์ต์ ํ๋ asset์ ๋ง๋๋ ๊ณผ์
Textures
Animations
ํจ์จ์ ์ธ ๊ฐ๋ฐ์ ์ํด Intermediate Assets
์๋์ ๊ธฐ๋ณธ
Exporters Exporters
Fast Path
์ข
์์ฑ ์ ๋ณด๊ฐ ๋ถ์ฌ
Interm. ์๋ค๋ฉดInterm. Interm.
ํ๋ ๋ฐ๋์ด๋ ์ ์ฒด ๋น๋
Models Anims Textures
๋น๋ ํ๋ก์ธ์ค ์ต์ ํ ์ด์
source asset์ ๋ง๋๋ ์ฌ๋์ด ์ง์ ๊ธฐ์ ํ๊ฑฐ๋
๋ฐ๋ก ์์คํ
์ ๋ง๋ค์ด์ผ ํ๋ค Final Assets
Build Build
Build Path
Platform A Platform B
7. Source Assets
3D tool Image tool
+ plug-ins + plug-ins
Model
Textures
Animations
Intermediate Assets
์ํฐ์คํธ์ ๋์์ด๋๊ฐExporters asset
Exporters ๋ง๋๋
Fast Path
DCCDigital Content Creation Interm.
Interm. Interm.
tools
source asset์ ๋ง๋๋ ํด์Textures์ฉ์ด
Models Anims ๋ถ๋ฅด๋
final asset์ ๋ง๋๋ ๋ชจ๋ ์ ๋ณด๊ฐ ์์ด์ผ ํจ Final Assets
source asset๋ง ๋นผ๊ณ ๋ค ์ง์๋ final asset์ ๋ง๋ค ์ ์์ด์ผ ํ๋ค
Build Build
Build Path
Platform A Platform B
8. Source Assets
3D tool Image tool
+ plug-ins + plug-ins
Model
Textures
Animations
Intermediate Assets
DCC๋ก ๋ง๋ค๊ณ ๋ ๋ค Intermediate Assets
Exporters Exporters
ํ๊ฒ ํ๋ซํผ์ ์ต์ ํ๋ asset์ ๋ง๋ค๊ธฐ ์
Fast Path
์ฝ๊ธฐ, ํ์ฑ, ํ์ฅ์ด
Interm. Interm. ์ฌ์์ผ ํจ
Interm.
Models๋ฐ์ด๋๋ฆฌ๋ Anims
์ฟ๋จน๋๋ค Textures
๋ฌธ์ ์ ์ถ์ ๋ฐ ์์ ๋ณ๊ฒฝ ํ
์คํธ๊ฐ ์ฉ์ด
plain text๋ XML์ ์ถ์ฒ Final Assets
Build Build
Build Path
Platform A Platform B
9. Source Assets
3D tool Image tool
+ plug-ins + plug-ins
Model
Textures
Animations
Fast Path
Intermediate Assets
Exporters Exporters
๊ฒ์ ์์ง์ผ๋ก ๋ก๋ํ ์ ์์
์ ์ฒด ๋น๋ ํ๋ก์ธ์ค๋ฅผ ๊ฑฐ์น์ง ์๊ณ Fast Path
Interm. Interm. Interm.
Models Anims Textures
ํจ์จ์ฑ ํฅ์์ ํต์ฌ
์ํฐ์คํธ์๊ฒ ๋น ๋ฅธ ์ดํฐ๋ ์ด์
์ ๊ณต
Final Assets
Build Build
Build Path
Platform A Platform B
10. Source Assets
3D tool Image tool
+ plug-ins + plug-ins
Model
Textures
Animations
Intermediate Assets
ํ๊ฒ ํ๋ซํผ์ ๋ง๊ฒ ์ต์ ํ๋๊ณ ๋ฌถ์ธ asset
Exporters Exporters
Fast Path
๋๋ถ๋ถ binary ํ์ผ
Interm. Interm. Interm.
Modelsํ์ฑ์ ๋๋Anims ์๊ฐ์ ์ค์ด๊ธฐ ์ํด
CPU Textures
Final Assets
Build Build
Build Path
Platform A Platform B
13. view-only
์นด๋ฉ๋ผ ์์น, ๋ผ์ดํ
์กฐ๊ฑด ๋ฑ ์ปจํธ๋กค์ ๊ฐ์ง
asset ๋ณ๊ฒฝ์ ๋ถ๊ฐ๋ฅ. DCC์์๋ง ๋ณ๊ฒฝํ ์ ์๋ค
editing
asset์ ๋ณ๊ฒฝํ ์ ์์ด ๋น ๋ฅธ ๋ฐ๋ณต์ด ๊ฐ๋ฅ
ํ์ง๋ง asset pipeline์ด ๋ ๋ณต์กํด์ง
14. view-only์ editing ๊ฒฐํฉ์ด ํ์
๋ชจ๋ ํ๋ก์ ํธ๋ฅผ ๋ง์กฑํ๋ ๋ง๋ฒ ๊ฐ์ ์๋ฃจ์
์ ์๋ค
source asset์ ๋ชจ๋ ์ ๋ณด๊ฐ ์๋ค๋ ๊ฒ๋ง ๋ง์กฑ์ํค๋ฉด ๋จ
15. ์ intermediate asset์ด ํ์ํ๊ฐ?
source asset๊ณผ final asset ๊ฒฐํฉ ์ ๊ฑฐ
ํฌ๋ก์ค ํ๋ซํผ asset ์์ฑ์ด ์ฝ๋ค
16. source asset๊ณผ final asset ๊ฒฐํฉ ์ ๊ฑฐ
DCC์์ exportํ ๋ final asset์ ๋ฐ๋ก ๋ง๋ค๋ฉด
์์ง ๋ณ๊ฒฝ์ ์์กดํ๊ฒ ๋์ด์ re-export๊ฐ ๋น๋ฒ
ํ๋ก๊ทธ๋๋จธ์ ์ํฐ์คํธ ์์
๊ฒฐํฉ๋ ์ค์
๋๋ฒ๊น
๊ณผ ์คํ์ intermediate asset์ ์ฌ์ฉ
19. Push model
์ ํต์ ์ธ ๋ฐฉ๋ฒ
๋น๋ ํ๋ก์ธ์ค๋ฅผ ํธ์ถํด intermediate๋ final asset ์์ฑ
๊ฒ์ ์์ง ์๋ํฐ๋ก ๋ก๋
Pull model
๋ ์ง๋ณด๋ ๋ฐฉ๋ฒ
๊ฒ์ ์์ง ์๋ํฐ์์ intermediate๋ final asset ๋ก๋
UI ์ง์์ด๋ ๋ณ๊ฒฝ๋ ํ์ผ์ ๊ฐ์ํด์ ๊ตฌํ
20. ๋ชจ๋ ์ ๋ณด๋ source asset์ ์์ด์ผ ํจ
์์ ์ฌํญ์ด ๋ชจ๋ ๊ธฐ๋ก๋๊ธฐ ์ํ ์ ํ
intermediate asset ๋ณ๊ฒฝ ์ฌํญ์ด source asset์ ๋ฐ์
editing๊ณผ pull ๊ฒฐํฉ
๊ฒ์ ์์ง ์๋ํฐ๊ฐ ๋ณ๊ฒฝํ ๊ฒ source asset์ ๋ฐ์๋๊ณ
์์ฑ๋ intermediate asset์ ๋ค์ ์ฝ์ด ๋ค์
remote control ์์คํ
์ด ํ์
21. Remote Control
Animation Modeling Normal Map Texturing
Tool Tool Tool Tool
Source Source Source Source
Export
Export
Export
Export
Asset Asset Asset Asset
Intermediate Asset Cache
Fast Path
Build
Final Asset Cache Build Path
Game Engine
Editor
23. SIGGRAPH 2004์์ ์ฒ์ ์๊ฐ
open standard
๋ง์ DCC tool์ด ์ง์
3ds max, maya, google sketchup, โฆ
๋ง์ ๋ฐ์ดํฐ ์ ์ ์ง์
geometry, animation, skinning, morphing, physics, โฆ
24. <source id=โmesh-geometry-positionโ>
<float_array id=โmesh1-geometry-position-arrayโ
count=โ24โ>
2518.1875 4074.512965 0. 2518.1875 0.
โฆ
</float_array>
<technique_common>
<accessor
source=โmesh1-geometry-position-arrayโ
count=โ8โ
stride=โ3โ>
<param name=โXโ type=โfloatโ/>
<param name=โYโ type=โfloatโ/>
<param name=โZโ type=โfloatโ/>
</accessor>
</technique_common>
</source>
25. intermediate asset format์ผ๋ก ์ถ์ฒ
self-described data
๋ง์ DCC tool์์ ์ง์
์ด ์ฉ๋๋ก ์ฐ๋ ค๊ณ ๋ง๋ค์ด์ ๋ง๋ค์ด์ง ๊ฒ ๋ง๋ค
<library_xx>, <param>, URI technology, โฆ
27. asset pipeline์ ๊ฐ๋ฐ backbone
์ ๋๋ฉด ๊ณ ์ณ์ง ๋๊น์ง ๊ฐ๋ฐ์ด ์ค์ง
source asset์ ๋ชจ๋ ์ ๋ณด๊ฐ ์์ด์ผ ํจ
source asset๋ง ๋ฒ์ ์ปจํธ๋กค
์์ ๋ ์ฌํญ์ ์์ด๋ฒ๋ฆฌ๋ ์ผ์ด ์๋ค
28. ํจ์จ์ ์ธ ๊ฐ๋ฐ์ ์ํ Fast Path
ํ๋ ํ์ธ ํ๋ ค๊ณ ๊ธด ๋น๋ ํ๋ก์ธ์ค๋ฅผ ๊ธฐ๋ค๋ ค์ผ ํด?
์ํฐ์คํธ๊ฐ ํ์๊ฒ ๋ถํ์ธ ์ ์๋๋ก ํ์
COLLADA
intermediate asset format์ผ๋ก ์ฐ๋ ค๊ณ ๋ง๋ค์๋ค
์ ๋งํ ๋ฐ์ดํฐ๋ ๋ค ๊ธฐ์ ๋์์
๋ง์ DCC tool์์ ์ง์
์ฐ๋ ๊ฑธ ์ ๊ทน ๊ณ ๋ ค