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