When I draw the same heightmap I did in 0.12 in 0.14 the heightmap is crazy. It seems only 1 row of LOD patches is drawn or something.
Here is a pic:
Here is the code:
Code: Select all
pTerrain = irrSceneMan->addTerrainSceneNode("./data/maps/HeightMap2.jpg",
0,-1, //bleh
vector3df(0,0,0), //position
vector3df(0,0,0), //rotation
//vector3df(8,4.4f,8), //scale
vector3df(8,4.4f,8), //scale
SColor(255,255,255,255), //default color
//3,ETPS_9);
3,ETPS_9);
pTerrain ->setMaterialFlag(EMF_LIGHTING, false);
pTerrain ->setMaterialTexture(0, irrDriver->getTexture("./data/textures/maps/HeightMap2.bmp"));
pTerrain ->setMaterialTexture(1, irrDriver->getTexture("./data/textures/env/bumpy.jpg"));
pTerrain ->setMaterialType(EMT_DETAIL_MAP);
pTerrain ->scaleTexture(1.0f, 100.0f);
Any ideas? Spintz? Guys?