您的位置:首页 > 其它

Ogre Hydrax简介和HydraxDemo.hdx 参数说明

2011-08-12 08:40 183 查看
1.什么是Hydrax?

Hydrax是一个Ogre的add-on项目用于提供一个简单易用的库来渲染水。

他包括所有的效果并且都是可配置的,类似水深,平滑转换,水泡效果,腐蚀效果等等,这些都可以实时的选择,并且他们不依赖于像 Rtt's texture quality, Mesh size, grid complexity, perlin noise textures size, hydrax components这些shaders。

2.HydraxDemo.hdx 参数

#Hydrax version field //Hydrax版本

HydraxVersion=0.5.1

#Main options field // 位置

<vector3>Position=-5000x100x-5000 //(-5000, 100, -5000)

<float>PlanesError=10.5 //误差

#Shader mode: 0=HLSL, 1=CG, 2=GLSL //阴影模式(天空在水面的投影)

<int>ShaderMode=1 //阴影模式选择

<float>FullReflectionDistance=1e+011 //最远反射距离

<float>GlobalTransparency=0 //透明度

<float>NormalDistortion=0.075 //最近反射距离

<vector3>WaterColor=0.139765x0.359464x0.425373 //水颜色

#Components field //场景构成单元

Components=Sun|Foam|Depth|Smooth|Caustics|Underwater|UnderwaterReflections|UnderwaterGodRays

#Sun parameters //太阳参数

<vector3>SunPosition=0x10000x0 //太阳位置

<float>SunStrength=1.75 //阳光强度????(不清楚什么东东)

<float>SunArea=150 //太阳大小

<vector3>SunColor=1x0.9x0.6 //阳光颜色

#Foam parameters

<float>FoamMaxDistance=7.5e+007

<float>FoamScale=0.0075

<float>FoamStart=0

<float>FoamTransparency=1

#Depth parameters

<float>DepthLimit=90

#Smooth transitions parameters

<float>SmoothPower=5

#Caustics parameters

<float>CausticsScale=135

<float>CausticsPower=10.5

<float>CausticsEnd=0.8

#God rays parameters

<vector3>GodRaysExposure=0.76x2.46x2.29

<float>GodRaysIntensity=0.015

<float>GodRaysSpeed=5

<int>GodRaysNumberOfRays=100

<float>GodRaysRaysSize=0.03

<bool>GodRaysIntersections=false

#Rtt quality field(0x0 = Auto)

<size>Rtt_Quality_Reflection=0x0

<size>Rtt_Quality_Refraction=0x0

<size>Rtt_Quality_Depth=0x0

<size>Rtt_Quality_URDepth=0x0

<size>Rtt_Quality_GPUNormalMap=0x0

#Module options

Module=ProjectedGridVertex

<float>PG_ChoopyStrength=3.75 //水平方向运动强度

<bool>PG_ChoppyWaves=true

<int>PG_Complexity=54 //网格大小

<float>PG_Elevation=50

<bool>PG_ForceRecalculateGeometry=false

<bool>PG_Smooth=false

<float>PG_Strength=35 //垂直方向运动强度

#Noise options

Noise=Perlin

<int>Perlin_Octaves=8

<float>Perlin_Scale=0.085

<float>Perlin_Falloff=0.49

<float>Perlin_Animspeed=1.4

<float>Perlin_Timemulti=1.27

<float>Perlin_GPU_Strength=2

<vector3>Perlin_GPU_LODParameters=0.5x50x150000

作者:pizi0475 发表于2011-8-12 16:39:30 原文链接

阅读:13 评论:0 查看评论
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: