It's a quadratic arranged trianglelist. 50*50 squares, respectively 5000 Triangles.
I started with the CustomSceneNode Tutorial and did some changes in it. The Render-Method looks the following:
Code: Select all
virtual void render()
{
video::IVideoDriver* driver = SceneManager->getVideoDriver();
driver->setMaterial(Material);
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
driver->drawIndexedTriangleList(&Vertices[0], tdVerts, &indices[0], tdTriangles);
}
Code: Select all
Material.Wireframe = false;
Material.Lighting = false;
Material.setTexture(0, driver->getTexture("Grafics/terrain-texture.jpg"));
Did i miss something important? Or should i search the problem in another method? Any hints? Thanks!
whisp