Is it the textures?
Thanks for your help!
Erik
Code: Select all
void world::loadMap( char * name )
{
//_______________________________________________________________________________________________________________
// Terrain
terrain = gfx.smgr->addTerrainSceneNode(HEIGHTMAP_SIZE==256 ? "gfx/terrain/baseSmall.png" : "gfx/terrain/base.png",
0, // parent node
-1, // node id
core::vector3df(0.f, 0.f, 0.f), // position
core::vector3df(0.f, 0.f, 0.f), // rotation
core::vector3df(MAP_SCALE, MAP_SCALE_VERTICAL, MAP_SCALE), // scale
video::SColor ( 255, 255, 255, 255 ), // vertexColor
1, // maxLOD
scene::ETPS_17, // patchSize
4 // smoothFactor
);
terrain->setMaterialFlag(video::EMF_LIGHTING, false);
terrain->scaleTexture(1.0f, TERRAIN_SCALING);
terrainSelector = gfx.smgr->createTerrainTriangleSelector(terrain, 0);
terrain->setMaterialTexture(0,terrainTexture);
terrain->setMaterialTexture(1,gfx.driver->getTexture("gfx/terrain/tex1.jpg"));
terrain->setMaterialTexture(2,gfx.driver->getTexture("gfx/terrain/tex2_2.jpg"));
terrain->setMaterialTexture(3,gfx.driver->getTexture("gfx/terrain/tex3.jpg"));
terrain->setMaterialType((video::E_MATERIAL_TYPE)terrainMaterial);
terrain->setMaterialFlag(video::EMF_ANISOTROPIC_FILTER , true);
}