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.
Is it possible to have the water node on terrain?
tried that, didnt work..
[edit]
uhm okay, well i got it to compile..
Okay, well it compiles but, I dont see the water anywhere.. x_x I changed posistion scale, its not showing up.
[edit]
uhm okay, well i got it to compile..
Okay, well it compiles but, I dont see the water anywhere.. x_x I changed posistion scale, its not showing up.
Last edited by pinkman on Sun Dec 10, 2006 10:55 pm, edited 1 time in total.
Hey pinkman.
Just looking at my code and the examples.
I see you have:
This is the second layer
Try adding something for:
Also on my terrain demo, even with a very smooth terrain, I could hardly get water below (Y=10)
So try changing:
or something higher until you can see it.
Just looking at my code and the examples.
I see you have:
Code: Select all
node->setMaterialTexture(1, .......
Try adding something for:
Code: Select all
node->setMaterialTexture(0, .......
So try changing:
Code: Select all
node->setPosition(core::vector3df(0,20,0));
You scratch my back, I'll scratch yours.