question with Projected Grid + FFT

corleoneray

04-03-2011 11:59:34

Hi! everyone:
After I read the demo of the Projected Grid + Perlin noise,I just get some changed instead of FFT, but here's the problem:
I just only change the Hydrax initial code into this below:

mHydrax = new Hydrax::Hydrax(mSceneMgr, mCamera, mWindow->getViewport(0));
Hydrax::Module::ProjectedGrid *mModule
= new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
mHydrax,
new Hydrax::Noise::FFT(/*Generic one*/), //----------------------Just changed here!!
Ogre::Plane(Ogre::Vector3(0,1,0), Ogre::Vector3(0,0,0)),
Hydrax::MaterialManager::NM_VERTEX,
Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/));
mHydrax->setModule(static_cast<Hydrax::Module::Module*>(mModule));
mHydrax->loadCfg("HydraxDemo.hdx");
mHydrax->create();

I read that the FFT Default Constructor can init it's struct "Options" with it's own values,just like Resolution,Scale,etc.then I try to run the demo
with delete the Perlin part in the HydraxDemo.hdx, It looks fine.about 80FPS.
After that I try to change the HydraxDemo.hdx below with the same parameter the FFT object needs:

#Noise options
Noise=FFT
<int>FFT_Resolution=128
<float>FFT_PhysicalResolution=32.0
<float>FFT_Scale=0.25
<vector2>FFT_WindDirection=4x5
<float>FFT_AnimationSpeed=1
<float>FFT_KwPower=6.0
<float>FFT_Amplitude=1.0
<float>FFT_GPU_Strength=2.0
<vector3>FFT_GPU_LODParameters=0.5x50x150000

but after I get this done,in the demo,I cannot see the ocean,and the FPS is so low below 2.
ehh,is anything that I miss?? thank you!