Rick:
TMesh mesh = LoadMesh("abstract::decalplane4.gmf");
PositionEntity(mesh, Vec3(1.5,0,3.5));
TSurface surf = GetSurface(mesh);
for( int i = 0; i < 33*33; i++)
{
TVec3 posL = GetVertexPosition( surf, i );
TVec3 pos = TFormPoint( posL, mesh, 0);
posL = Vec3( pos.X, TerrainElevation(GetChild(scene,2), pos.X, pos.Z), pos.Z );
pos = TFormPoint( posL, 0, mesh );
pos.Y+=0.01;
SetVertexPosition( surf, i, pos );
}
There is another problem you have to load different file for another decal, because decal is instanced ....
I can move with decal over terrain .. on flat or smooth parts of terrain, it's absolutely ok, but in some places, terrain is different visualy, than returned values from HeightEvelation .... and That's a big problem