Kosmos
20-08-2011 09:20:11
hello.
Anybody know how to solve that problem?
all hydrax demos work fast enough, but when i adding hydrax to my application, it works very slow. so slow, that when you rotate camera, you can see at sides undrawn ocean space like that on attachment.
i am tried hydrax 0.5.1 and currently trying hydrax 0.5.4
i am used hydrax editor to customize scene and it work fast there, but work slow in my application.
removing sindba and island does not help.
that's how i creating it:
shadows turned off.
config file:
does anyone know how to speedup things?
Anybody know how to solve that problem?
all hydrax demos work fast enough, but when i adding hydrax to my application, it works very slow. so slow, that when you rotate camera, you can see at sides undrawn ocean space like that on attachment.
i am tried hydrax 0.5.1 and currently trying hydrax 0.5.4
i am used hydrax editor to customize scene and it work fast there, but work slow in my application.
removing sindba and island does not help.
that's how i creating it:
Hydrax::Hydrax *mHydrax = new Hydrax::Hydrax(_sceneManager, camera, window->getViewport(0));
Hydrax::Module::ProjectedGrid *mModule = new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
mHydrax,
// Noise module
new Hydrax::Noise::Perlin(/*Generic one*/),
// Base plane
Ogre::Plane(Ogre::Vector3(0,1,0), Ogre::Vector3(0,0,0)),
// Normal mode
Hydrax::MaterialManager::NM_VERTEX,
// Projected grid options
Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/));
mHydrax->setModule(static_cast<Hydrax::Module::Module*>(mModule));
mHydrax->loadCfg("for_arcadia.hdx");
mHydrax->create();
shadows turned off.
config file:
#Hydrax cfg file.
#Hydrax version field
HydraxVersion=0.5.4
#Main options field
<vector3>Position=1500x-500x1500
<float>PlanesError=10.5
#Shader mode: 0=HLSL, 1=CG, 2=GLSL
<int>ShaderMode=0
<float>FullReflectionDistance=1e+011
<float>GlobalTransparency=0
<float>NormalDistortion=0.075
<vector3>WaterColor=0x0x0
#Components field
Components=#Rtt quality field(0x0 = Auto)
<size>Rtt_Quality_Reflection=128x128
<size>Rtt_Quality_Refraction=128x128
<size>Rtt_Quality_Depth=128x128
<size>Rtt_Quality_URDepth=128x128
<size>Rtt_Quality_GPUNormalMap=0x0
#Module options
Module=ProjectedGridVertex
<float>PG_ChoopyStrength=3.75
<bool>PG_ChoppyWaves=true
<int>PG_Complexity=264
<float>PG_Elevation=50
<bool>PG_ForceRecalculateGeometry=true
<bool>PG_Smooth=false
<float>PG_Strength=35
#Noise options
Noise=FFT
<int>FFT_Resolution=128
<float>FFT_PhysycalResolution=32
<float>FFT_Scale=0.25
<vector2>FFT_WindDirection=4x5
<float>FFT_AnimationSpeed=1
<float>FFT_KwPower=6
<float>FFT_Amplitude=1
does anyone know how to speedup things?