got a screenshot from it.
http://home.wanadoo.nl/batavier.kerkrade/untitled.jpg
now i need to get that texture stretched. the idea was to create a flag.
this is the code i'm using:
Code: Select all
mesh1 = smgr->addHillPlaneMesh("myHill",
core::dimension2d<f32>(1,1),
core::dimension2d<s32>(40,40), 0, 0,
core::dimension2d<f32>(0,0),
core::dimension2d<f32>(10,10));
// Create a Flag Like effect with the WaterSurfaceSceneNode.
flagnode1 = smgr->addWaterSurfaceSceneNode(mesh1->getMesh(0), 1.0f, 100.0f, 10.0f);
flagnode1->setPosition(core::vector3df(0,100,0));
flagnode1->setRotation(core::vector3df(90, 0, 0));
flagnode1->setScale(core::vector3df(0.5,0.5,0.5));
flagnode1->setMaterialFlag(video::EMF_LIGHTING, false);
flagnode1->setMaterialTexture(0, driver->getTexture("data/flag/limburg.bmp"));
flagnode1->setMaterialType(video::EMT_SOLID);
Thnx in advance