Is it possible to have the water node on terrain?
Posted: Sun Dec 10, 2006 9:58 pm
scene::ISceneNode* node = 0;
node = smgr->addWaterSurfaceSceneNode(terrainNode->getMesh, 3.0f, 300.0f, 30.0f);
node->setPosition(core::vector3df(0,7,0));
node->setMaterialTexture(1, driver->getTexture("media/water.jpg"));
node->setMaterialType(video::EMT_REFLECTION_2_LAYER);
I am using this, and I just get this error..
120 C:\Documents and Settings\Administrator\Desktop\SquareSoft\main.cpp no matching function for call to `irr::scene::ISceneManager::addWaterSurfaceSceneNode(<unknown type>, float, float, float)'
whats the problem? x_x I have tried befor also, couldnt get it then.
node = smgr->addWaterSurfaceSceneNode(terrainNode->getMesh, 3.0f, 300.0f, 30.0f);
node->setPosition(core::vector3df(0,7,0));
node->setMaterialTexture(1, driver->getTexture("media/water.jpg"));
node->setMaterialType(video::EMT_REFLECTION_2_LAYER);
I am using this, and I just get this error..
120 C:\Documents and Settings\Administrator\Desktop\SquareSoft\main.cpp no matching function for call to `irr::scene::ISceneManager::addWaterSurfaceSceneNode(<unknown type>, float, float, float)'
whats the problem? x_x I have tried befor also, couldnt get it then.