leafkw01
15-04-2013 18:37:09
OGRE EXCEPTION(2:InvalidParametersException): Parameter called uWaterColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at U:\SDKS\Ogre\OgreMain\src\OgreGpuProgramParams.cpp (line 1451)
Please help me to solve it or give me some hints. I have no ideas to solve it. Do I need to modified something in MaterialManager.cpp or something in Hydrax?
I initial Hydrax by the code
Any help will be so appreciated. Thx a lot.
Please help me to solve it or give me some hints. I have no ideas to solve it. Do I need to modified something in MaterialManager.cpp or something in Hydrax?
I initial Hydrax by the code
mSceneMgr->setSkyBox(true, "Sky/ClubTropicana", 5000, false);
mHydrax = new Hydrax::Hydrax(mSceneMgr, mCamera, mWindow->getViewport(0));
// Create our projected grid module
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*/));
// Set our module
mHydrax->setModule(static_cast<Hydrax::Module::Module*>(mModule));
// Load all parameters from config file
// Remarks: The config file must be in Hydrax resource group.
// All parameters can be set/updated directly by code(Like previous versions),
// but due to the high number of customizable parameters, since 0.4 version, Hydrax allows save/load config files.
mHydrax->loadCfg("HydraxDemo.hdx");
// Create water
mHydrax->create();
Any help will be so appreciated. Thx a lot.