I've finished the basic and intermediates tutorials and I'm coming back on the Basic Tutorial 3 : Terrain, Sky, and Fog.
I want to change the " Texture bound to terrain height " behavior to have the texture I want where I want.
I noticed the following function:
Code: Select all
void Ogre::TerrainLayerBlendMap::loadImage ( const Image &img)
Load an image into this blend layer.initBlendMaps function
Code: Select all
Ogre::Image img;
img.load("test.png", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
terrain->getLayerBlendMap(1)->loadImage(img);Thanks,
florgo