Impossible to change BlendMap size. Help please

Problems building or running the engine, queries about how to use features etc.
Post Reply
dragonblood
Halfling
Posts: 68
Joined: Sat Apr 25, 2015 4:01 pm
x 6

Impossible to change BlendMap size. Help please

Post 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

++
Last edited by dragonblood on Sun Aug 12, 2018 10:16 pm, edited 2 times in total.
dragonblood
Halfling
Posts: 68
Joined: Sat Apr 25, 2015 4:01 pm
x 6

Re: Impossible to change BlendMap size. Help please

Post 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..
Post Reply