memory alloction error:too large image to splitte

goldenhyl1

15-02-2006 13:39:06

I splitter an image with size of 9728*5632,when calc the normal map, there is an error occured for memory allocating,as following code in MapNormaler.cpp:

void MapNormaler::CalcNormalMap()
{
......
const int size = height * width;
uchar * ogre_restrict NormalData = new uchar[size * 3];
Normals = new Vector3 ;
......
}

my computer memory is 512M on xp, i wonder if I extend memory size can deal with this errors, who can tell me? or give me another good ways, thank you

tuan kuranes

15-02-2006 13:53:12

you can augment page file size under XP.
I todo list, it is planned to add splitting using paging to minimize memory size consumption.

You can disable normal map and horizon map generation too.