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