武装突袭 Wiki
探索
首页
讨论板
所有页面
社区页
交互式地图
最新博文
页面
最新页面
Contact Reports
Hotshot's Sandbox
DIK KeyCodes
Curator
武装突袭 Wiki
Product.cpp/bin File Format
Oxygen Light
最新博客
分类
Uploaded with UploadWizard
Face A2 Face101.jpg
Face A2 Face102.jpg
Face A2 Face103.jpg
Face A2 Face104.jpg
Face A2 Face105.jpg
Face A2 Face106.jpg
Face A2 Face107.jpg
含有损坏文件链接的页面
Eden Editor: Introduction
Eden Editor: Switching from 2D Editor
Eden Editor: Menu Bar
Eden Editor: Asset Browser
Eden Editor: Toolbar
Eden Editor: Status Bar
Eden Editor: Entity Attributes
社区
社区首页
社区中心
帮助中心
FANDOM
游戏
电影
电视
wiki
探索wiki
社区中心
创建wiki
尚未注册?
注册
登录
登录
注册
武装突袭 Wiki
4,828
个页面
探索
首页
讨论板
所有页面
社区页
交互式地图
最新博文
页面
最新页面
Contact Reports
Hotshot's Sandbox
DIK KeyCodes
Curator
武装突袭 Wiki
Product.cpp/bin File Format
Oxygen Light
最新博客
分类
Uploaded with UploadWizard
Face A2 Face101.jpg
Face A2 Face102.jpg
Face A2 Face103.jpg
Face A2 Face104.jpg
Face A2 Face105.jpg
Face A2 Face106.jpg
Face A2 Face107.jpg
含有损坏文件链接的页面
Eden Editor: Introduction
Eden Editor: Switching from 2D Editor
Eden Editor: Menu Bar
Eden Editor: Asset Browser
Eden Editor: Toolbar
Eden Editor: Status Bar
Eden Editor: Entity Attributes
社区
社区首页
社区中心
帮助中心
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
编辑“
HQ Normal Maps
”(章节)
返回页面
编辑
可视化编辑器
查看历史
讨论 (0)
正在编辑
HQ Normal Maps
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
=HQ Normal Maps= This technology allows normal maps compressed by various means in diverse shaders among others in shaders with specular map. Normal maps may be represented as DXT1 or swizzled DXT5, two or three components. Motivation picture: [[Image:HQNormalSpecular.jpg]] Confrontation of HQ and non HQ normal map: [[Image:HQvsNHQNormalMap.jpg]] ====New pixel shaders==== We got several pixel shaders which can work with HQ normal maps and also with specular map: *NormalMapSpecularMap *NormalMapDetailSpecularMap // function similar to NormalMapDiffuse - yet this name fits more *NormalMapMacroASSpecularMap *NormalMapDetailMacroASSpecularMap From theirs title results what maps they use. First two match vertex shader NormalMap, second two NormalMapAS. Examples of use are here: specular[] = {0.5,0.5,0.5,0}; specularPower = 10; PixelShaderID = "NormalMapSpecularMap"; VertexShaderID = "NormalMap"; class Stage1 { texture="temp\NormalMap\normmap_NOHQ.tga"; uvSource="tex"; }; class Stage2 { texture="temp\NormalMap\specmap_SM.tga"; uvSource="tex"; }; specular[] = {0.5,0.5,0.5,0}; specularPower = 10; PixelShaderID = "NormalMapDetailSpecularMap"; VertexShaderID = "NormalMap"; class Stage1 { texture="temp\NormalMap\normmap_NOHQ.tga"; uvSource="tex"; }; class Stage2 { texture="temp\NormalMap\detmap_detail.paa"; uvSource="tex"; class uvTransform { aside[] = {3,0,0}; up[] = {0,6,0}; dir[] = {0,0,8}; pos[] = {0,0,0}; }; }; class Stage3 { texture="temp\NormalMap\specmap_SM.tga"; uvSource="tex"; }; specular[] = {0.5,0.5,0.5,0}; specularPower = 10; PixelShaderID="NormalMapMacroASSpecularMap"; VertexShaderID="NormalMapAS"; class Stage1 { texture="temp\domek\normmap_NOHQ.tga"; uvSource="tex"; }; class Stage2 { texture="temp\domek\test02_MC.tga"; uvSource="tex1"; }; class Stage3 { texture="temp\domek\TestUV2_AS.tga"; uvSource="tex1"; }; class Stage4 { texture="temp\domek\specmap_SM.tga"; uvSource="tex"; }; specular[] = {0.5,0.5,0.5,0}; specularPower = 10; PixelShaderID="NormalMapDetailMacroASSpecularMap"; VertexShaderID="NormalMapAS"; class Stage1 { texture="temp\domek\normmap_NOHQ.tga"; uvSource="tex"; }; class Stage2 { texture="temp\domek\detmap_detail.paa"; uvSource="tex"; class uvTransform { aside[] = {3,0,0}; up[] = {0,6,0}; dir[] = {0,0,8}; pos[] = {0,0,0}; }; }; class Stage3 { texture="temp\domek\test02_MC.tga"; uvSource="tex1"; }; class Stage4 { texture="temp\domek\TestUV2_AS.tga"; uvSource="tex1"; }; class Stage5 { texture="temp\domek\specmap_SM.tga"; uvSource="tex"; }; ====Specular map==== Specular map is texture with extension "_SM" which contains material information how much specularity in what place and then also it can influence locally specular sharpness (power). Texture content is used this way: *R - diffusion map *G - specular map *B - power map Specular power P which is used in the end is given by term '''P = specularPower * B''', where specularPower is set value in material. This mean if power map should not be set then it's needed adjust it to white and then only material's specular power is used. In order that shaders were simpler (faster), then inside them is inconsiderable multiplication of specular component with coefficient, which is derived in detail analysis (related to energy preservation of specular light) and which match term '''((specularPower * B + 1)/(specularPower + 1))'''. Practically this mean that in places where in map B isn't set to 1 then is needed to lower also G (the lower is R thereby lower must be also G) In order that sum of diffuse and specular component was constant (which applies on usual materials), it's imposed so called diffusion map in R component. That correspond to inversion of specular map before application of possible correction mentioned in previous paragraph. From two above mentioned paragraphs results that for specular maps (SM also SMDI) it is necessary to use following TexView filter: comment "define specular power"; sp = 10; p = src pixel [u,v]; x = 1 - green p; y = green p * ((sp * blue p + 1) / (sp + 1)); c = color[x,y,blue p,1]; Example of specular map: [[Image:Specmap_SM.jpg]] ======Optimized specular map onto bit depth====== New texture arisen with extension _SMDI which replaces _SM. DI means that diffusion component (formerly in R) si here derived from specular inversion (DiffuseInverse). _SMDI then writes constant 1 into R component. This texture is possible to use in case when difusse map is just inversion of specular one. It's application provides in part better compression and afterward diffusion component will have better bit depth (G is by one bit more precise). It's necessary to use corresponding shaders to the component. *NormalMapSpecularDIMap *NormalMapDetailSpecularDIMap *NormalMapMacroASSpecularDIMap *NormalMapDetailMacroASSpecularDIMap [[Category:ArmA 2: Editing]]
摘要:
请注意在武装突袭 Wiki上的所有贡献都将依据CC-BY-SA进行发布。
取消
编辑帮助
(在新窗口中打开)
Follow on IG
TikTok
Join Fan Lab