hejian29
21-07-2009 16:33:04
Hi, everyone.
I'm new here and begin to add Hydrax to my project.
One of the main puposes of my project is to keep FPS above of 100 frame per second.
I've been realized water scene with similar effect using project-grid algorithm which is written in raw openGL, and make the FPS above of 160fps
when the grid resolution is 128*256.
But in my current project, it's using OGRE which can't incorporate my previouse code, that's why I'm using Hydrax.
But my question is why the FPS of Hydrax water is always keep in around 70 fps no matter how i change HydraxDemo.hdx.
i create module like below that is the similar code in Hydrax demo.
// Create our projected grid module
Hydrax::Module::ProjectedGrid *mModule
= new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
m_Hydrax,
// 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*/));
but whatever changed the last parameter(I mean Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/)), the fps keeps the same.
is this the currect way to change the resolution of the projected grid. 128 * 256 or 128 * 128 may enough for me.
My question is " Is there any way to speed up Hydrax Water? or Is there any switches must be turned on or turned off the speed up?"
Thanks.
I'm new here and begin to add Hydrax to my project.
One of the main puposes of my project is to keep FPS above of 100 frame per second.
I've been realized water scene with similar effect using project-grid algorithm which is written in raw openGL, and make the FPS above of 160fps
when the grid resolution is 128*256.
But in my current project, it's using OGRE which can't incorporate my previouse code, that's why I'm using Hydrax.
But my question is why the FPS of Hydrax water is always keep in around 70 fps no matter how i change HydraxDemo.hdx.
i create module like below that is the similar code in Hydrax demo.
// Create our projected grid module
Hydrax::Module::ProjectedGrid *mModule
= new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
m_Hydrax,
// 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*/));
but whatever changed the last parameter(I mean Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/)), the fps keeps the same.
is this the currect way to change the resolution of the projected grid. 128 * 256 or 128 * 128 may enough for me.
My question is " Is there any way to speed up Hydrax Water? or Is there any switches must be turned on or turned off the speed up?"
Thanks.