material LOD problem

bbabb

10-11-2010 13:29:54

Hi,
I got a problem while using PLSM2 in my project, I write a new materal in script for terrain to render, which has 2 lod levels and the distance is 200. As I thought, the tiles that far away from eye should be rendered with lod index 1 technique, but all the terrain in view frustum is rendered with lod index 0. I debug into PageLandScapeRenderable.cpp -> _notifyCurrentCamera(), and find the mMaterial`s lod distance become 6.4e+9, even I changed the other distance value in script, It is alway the same, May be I lost something for lod to take effect, can anyone tell me how to implement material lod in PLSM2, thanks a lot...