I am trying 'Page' in Terrain demo with Ogre1.7.
First, I define four page max or min macro in Terrain.h
- Code: Select all
#define TERRAIN_PAGE_MIN_X -1
#define TERRAIN_PAGE_MIN_Y -1
#define TERRAIN_PAGE_MAX_X 1
#define TERRAIN_PAGE_MAX_Y 1
Then compile, run and I get six terrain_XXXXXXXX.dat files.
Then I add #define PAGING in Terrain.h, the Page System runs well.
But, I find the distance I set with loadRadius and holdRadius in createWorldSection() is not the distance actually happens in my program. I mean, for example, when I am far away from a terrain object(when it becomes more than holdRadius away), it will not be unloaded; but when I am far far away, the distance may be five or ten times holdRadius, it starts to unload. And Whatever I change the loadRadius and holdRadius value, it seems not any change. I really don't know why. Any help will be appreciated.
By the way, I am sorry for my poor English. English is not my motherlanguage.