[Help]Static entities, PLSM LOD and y position

bjtp

20-07-2008 09:17:03

Experimenting with PLSM2, I run into troubles with entities attached to the surface of the terrain. I read some threads about decals/physics and PLSM2, where similar problems occured: A height query to PLSM2 will result in different heights depending on LOD of the specific tiles, right?

So, when I create an entity and put it somewhere on the terrain, and later move the camera near that entity, it may be either floating high above the ground or be sunken into it.

My idea to solve that issue was to implement a listener to LOD changes of tiles and recalculate the (y-)position of all entities. I took a look at the MeshDecal code in PLSM2, but I still don't get it (besides, PLSM2-MeshDecals don't work on my system, they are hidden until the camera is really far away from the decal).

Is there an obvious solution I'm unable to see?