Code: Select all
terrain = sm->addTerrainSceneNode("media/mps/heightmap.bmp");
terrain->setScale(vector3df(15, 1.1f, 15));
terrain->setMaterialFlag(EMF_LIGHTING, false);
terrain->setMaterialTexture(1, driver->getTexture("media/txts/detailmap3.jpg"));
terrain->setMaterialTexture(0, driver->getTexture("media/txts/grass_color.png"));
terrain->setMaterialType(EMT_DETAIL_MAP);
terrain->scaleTexture(1.0f, 20.0f);
terrain2 = sm->addTerrainSceneNode("media/mps/heightmap.bmp");
terrain2->setScale(vector3df(15, 1.1f, 15));
terrain2->setPosition(vector3df(250,-50,250));
terrain2->setMaterialFlag(EMF_LIGHTING, false);
terrain2->setMaterialTexture(1, driver->getTexture("media/txts/detailmap3.jpg"));
terrain2->setMaterialTexture(0, driver->getTexture("media/txts/grass_color.png"));
terrain2->setMaterialType(EMT_DETAIL_MAP);
terrain2->scaleTexture(1.0f, 20.0f);