Sorry again for my noob-like posts.
I've created a... Rather large heightmap terrain.
Using this code:
Code: Select all
terrain = smgr->addTerrainSceneNode(
"Media/terrain-heightmap.bmp",
0, -1,
core::vector3df(0.f, 0.f, 0.f),
core::vector3df(0.f, 0.f, 0.f),
core::vector3df(80.f, 65.0f, 80.f),
video::SColor ( 255, 255, 255, 255 ),
1, scene::ETPS_17, 4);
terrain->setMaterialFlag(video::EMF_LIGHTING, false);
terrain->setMaterialTexture(0,
driver->getTexture("Media/terrain-texture.jpg"));
terrain->setMaterialTexture(1,
driver->getTexture("Media/terrain-texture2.jpg"));
terrain->setMaterialType(video::EMT_DETAIL_MAP);
I also can't seem to add shadings to the heightmap, making for darkness like day/night effects.
I'm assuming you cannot add that stuff to heightmaps, and I need to make a mesh for it? Which I don't really want to do.
Heightmap Size: 512x512
Texture1&2 Size: 3084x3084
(Textures are much bigger than the heightmap, and still it looks like each pixel tries to blend into the next pixel color a lot, making it look bad)