Hydrax簡介和HydraxDemo.hdx參數說明

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.