diff -Naurw irrlicht-0.14.0/source/Irrlicht/CGeometryCreator.cpp IrrSpintz-0.14.2/CGeometryCreator.cpp --- irrlicht-0.14.0/source/Irrlicht/CGeometryCreator.cpp 2005-08-20 21:17:50.000000000 +0200 +++ IrrSpintz-0.14.2/CGeometryCreator.cpp 2006-03-20 09:33:13.000000000 +0100 @@ -31,7 +31,7 @@ SMesh* mesh = new SMesh(); video::S3DVertex vtx; vtx.Color.set(255,255,255,255); - vtx.Normal.set(0,1,0); + vtx.Normal.set(0,0,0); if (countHills.Width < 0.01f) countHills.Width = 1; if (countHills.Height < 0.01f) countHills.Height = 1; @@ -45,20 +45,32 @@ s32 y = 0; core::dimension2d tx; - tx.Width = 1.0f / (tileCount.Width / textureRepeatCount.Width); - tx.Height = 1.0f / (tileCount.Height / textureRepeatCount.Height); + tx.Width = 1.0f / ((tileCount.Width-1) / textureRepeatCount.Width); + tx.Height = 1.0f / ((tileCount.Height-1) / textureRepeatCount.Height); + core::vector3df c; + c.X = tileSize.Width / 2.0f; + c.Y = 0.f; + c.Z = tileSize.Height / 2.0f; + + core::vector3df c0; for (x=0; xVertices.push_back(vtx); }