Difference between revisions of "Platform deployer"
From KlayGE
Gongminmin (Talk | contribs) (Created page with "Platform deployer是KlayGE的工具之一,负责把各种资源转换成特定平台的格式。 == 参数 == * -P或--platform:平台名,详见下文...") |
Gongminmin (Talk | contribs) |
||
Line 24: | Line 24: | ||
|| | || | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| | || | ||
# 转成normal map | # 转成normal map | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | || 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | ||
|- | |- | ||
Line 37: | Line 37: | ||
|| | || | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| | || | ||
# 转成normal map | # 转成normal map | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | || 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | ||
|- | |- | ||
Line 50: | Line 50: | ||
|| | || | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC3 |
|| | || | ||
# 转成normal map | # 转成normal map | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC3 |
|| 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | || 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | ||
|- | |- | ||
Line 63: | Line 63: | ||
|| | || | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| | || | ||
# 转成normal map | # 转成normal map | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | || 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | ||
|- | |- | ||
Line 76: | Line 76: | ||
|| | || | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| | || | ||
# 转成normal map | # 转成normal map | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC5 |
|| 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | || 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | ||
|- | |- | ||
Line 89: | Line 89: | ||
|| | || | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC3 |
|| | || | ||
# 转成normal map | # 转成normal map | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC3 |
|| 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | || 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | ||
|- | |- | ||
Line 101: | Line 101: | ||
|| | || | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC3 |
|| | || | ||
# 转成normal map | # 转成normal map | ||
# 建立mipmap | # 建立mipmap | ||
− | # | + | # 压缩成BC3 |
|| 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | || 调用HDRCompressor || 调用MeshMLJIT || 调用FXMLJIT | ||
|} | |} |
Revision as of 01:00, 20 February 2015
Platform deployer是KlayGE的工具之一,负责把各种资源转换成特定平台的格式。
参数
- -P或--platform:平台名,详见下文。
- -T或--type:资源类型,详见下文。
- -I或--input-name:资源文件名,支持通配符。
- -v或--version:显示版本号。
- -H或--help:显示帮助信息。
平台
目前支持的平台有pc_dx11、pc_dx10、pc_gl4、pc_gl3、pc_dx9、pc_gl2和android_tegra3。含义都可以从名字中看出来。
资源类型
目前能处理diffuse texture、specular texture、emit texture、normal texture、bump texture、cubemap、model和effect这些类型。下表表示了在不同平台上,这些资源会做出什么样的处理。
平台 | Diffuse | Specular | Emit | Normal | Bump | Cubemap | Model | Effect |
---|---|---|---|---|---|---|---|---|
pc dx11 |
|
|
|
调用HDRCompressor | 调用MeshMLJIT | 调用FXMLJIT | ||
pc dx10 |
|
|
|
调用HDRCompressor | 调用MeshMLJIT | 调用FXMLJIT | ||
pc dx9 |
|
|
|
调用HDRCompressor | 调用MeshMLJIT | 调用FXMLJIT | ||
pc gl4 |
|
|
|
调用HDRCompressor | 调用MeshMLJIT | 调用FXMLJIT | ||
pc gl3 |
|
|
|
调用HDRCompressor | 调用MeshMLJIT | 调用FXMLJIT | ||
pc gl2 |
|
|
|
调用HDRCompressor | 调用MeshMLJIT | 调用FXMLJIT | ||
android_tegra3 |
|
|
|
调用HDRCompressor | 调用MeshMLJIT | 调用FXMLJIT |
用例
platformdeployer -P pc_dx11 -I tex.dds -T diffuse