wolfmanfx
22-01-2009 17:23:52
I have a problem with the loading of the color map here is the code:
What i get is a black terrain with the decal texture on it. Can you show a snippet how to correctly load the colormap, coverage map, light map. Mabe iam missing something like a wiki entry.
btw like the new code really clean
try{
Ogre::Image colorMap;
colorMap.load("ETbase.png", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
pTerrainInfo->mColourMap->setColourArray(ET::loadColourArrayFromImage(colorMap));
pTerrainInfo->mColourMap->update();
}catch(...){}
What i get is a black terrain with the decal texture on it. Can you show a snippet how to correctly load the colormap, coverage map, light map. Mabe iam missing something like a wiki entry.
btw like the new code really clean