您的位置:首页 > 其它

Hydrax参数配置说明

2010-07-30 12:59 281 查看
注意:
Hydrax update 需要放到frameStarted 函数中,否则会出现刷新不及时的问题。

Normal mode 应采用 NM_VERTEX 而非 NM_RTT,因为在NM_RTT模式下Module options中的个别参数无效(PG_ChoopyStrength、PG_Strength、PG_ChoppyWaves)

参数PG_Complexity影响水面波浪效果,若此参数比较大也非常影响效率,如果值很小波浪很不明显,可以根据游戏效果再调整。

参数PG_Strength是波浪的起伏强度,如果值偏大波浪就会漫过地表,显得很诡异,根据地形调整此值。

配置文件中的参数描述
#Main options field // 位置

Position=-5000x100x-5000 //(-5000, 100, -5000)
PlanesError=10.5 //误差

#Shader mode: 0=HLSL, 1=CG, 2=GLSL //阴影模式(天空在水面的投影)
ShaderMode=1 //阴影模式选择
FullReflectionDistance=1e+011 //最远反射距离
GlobalTransparency=0 //透明度
NormalDistortion=0.075 //最近反射距离
WaterColor=0.139765x0.359464x0.425373 //水颜色

#Components field //场景构成单元
Components=Sun|Foam|Depth|Smooth|Caustics|Underwater|UnderwaterReflections|UnderwaterGodRays

#Sun parameters //太阳参数
SunPosition=0x10000x0 //太阳位置
SunStrength=1.75 //阳光强度
SunArea=150 //太阳大小
SunColor=1x0.9x0.6 //阳光颜色

#Foam parameters //水面泡沫参数
FoamMaxDistance=7.5e+007
FoamScale=0.0075
FoamStart=0
FoamTransparency=1

#Depth parameters //深度
DepthLimit=90 //深度限制,超过此值水变为深水颜色

#Smooth transitions parameters //平滑过渡
SmoothPower=5

#Caustics parameters //腐蚀
CausticsScale=135
CausticsPower=10.5
CausticsEnd=0.8

#God rays parameters
GodRaysExposure=0.76x2.46x2.29
GodRaysIntensity=0.015
GodRaysSpeed=5
GodRaysNumberOfRays=100
GodRaysRaysSize=0.03
GodRaysIntersections=false

#Rtt quality field(0x0 = Auto)
Rtt_Quality_Reflection=0x0
Rtt_Quality_Refraction=0x0
Rtt_Quality_Depth=0x0
Rtt_Quality_URDepth=0x0
Rtt_Quality_GPUNormalMap=0x0

#Module options
Module=ProjectedGridVertex

PG_ChoopyStrength=3.75 //水平方向运动强度
PG_ChoppyWaves=true //是否有波浪
PG_Complexity=54 //复杂度(影响效率)
PG_Elevation=50
PG_ForceRecalculateGeometry=false
PG_Smooth=false
PG_Strength=35 //垂直方向运动强度

#Noise options
Noise=Perlin

Perlin_Octaves=8
Perlin_Scale=0.085
Perlin_Falloff=0.49
Perlin_Animspeed=1.4
Perlin_Timemulti=1.27
Perlin_GPU_Strength=2
Perlin_GPU_LODParameters=0.5x50x150000
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: