Page 1 of 1

Impossible to change BlendMap size. Help please

Posted: Mon Aug 06, 2018 6:00 pm
by dragonblood
Hi,

I follow the basic tutorial 3 about creating terrain but i have a problem within initBlendMap() function.


I see that by default my BlendMapLayer size is about 16880 !!! it's too big !!!

I tired to resize him with mTerrainGlobals->setLayerBlendMapSize(512.0); it did'nt change anything, my blend map stay about 16880, I don't know why.


My programm crash when I use it in two loop for

Code: Select all

for (Ogre::uint16 x = 0; x < blendmapsize; x++){

	for (Ogre::uint16 y = 0; y < blendmapsize; y++){

}
}
16 8880*16 880= 284 934 400 loop !! :shock: :shock: --> Crash !!!

Any idea ?



thx

++

Re: Impossible to change BlendMap size. Help please

Posted: Fri Aug 10, 2018 1:32 pm
by dragonblood
why the size of my BlendMap is 16880 ? and why I can't change that using mTerrainGlobals->setLayerBlendMapSize(512.0) ? :x


I'm not loading an existing terrain, i creating a new one..