[rev42]Problem loading colormap

wolfmanfx

22-01-2009 17:23:52

I have a problem with the loading of the color map here is the code:

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 :)

CABAListic

22-01-2009 17:30:30

The save and load functionality is still incomplete, I'm working on it...

wolfmanfx

22-01-2009 17:45:23

I am not requesting a complete save/load function :) but can you explain how it could work so i can work on it

CABAListic

22-01-2009 18:12:05

Well, the code looks about right to me. Might be a terrain material / shader issue...