Tile Max LOD settings change

HexiDave

15-03-2006 20:47:07

I updated to the new SDK version after about 1-2 weeks of no CVS updates and a bit of my code changed:

PagingLandScapeTile *tile = mSceneMgr->getPageManager()->getTile(mCamera->getPosition().x,mCamera->getPosition().z,false);

if(tile != NULL)
tile->getRenderable()->setMaxLod(true);


Ok, that's now up to speed and correctly sets the Max LOD for the tile in question. The problem is, when I step back it no longer brings the tile to the "old" LOD like it did before the update. I'd assume there is a system that checks each tile each update (a delegate maybe?) that checks the LOD on tiles - can I set anything to a default LOD and if it doesn't match default it's reset? Or is there a deligate that I can use for setting LOD properly?

I know I could probably just save the tile until I get a new tile and just fix LOD, but I'd like to see if there is a more elegant solution.

Thanks - this is basically the last thing before my porting is done to 1.2.

tuan kuranes

17-03-2006 17:56:13

pslm2 behaviour is more coherent like this, I didn't understood how it could work like that before...

I know I could probably just save the tile until I get a new tile and just fix LOD, but I'd like to see if there is a more elegant solution.

Seems as elegant as possible to me.