费了一段时间,处理了下,
1,锯齿,因为无效值
2,int16型
处理方式起始很简单
1,对于无效值,可以用周边的值替代无效值。重新生成一个.tif高程
2,转.terrain时,
short theValue = rasterHeights[i];
float fValue = theValue;
terrainTile->mHeights[i] = (i_terrain_height)((fValue + 1000) * 5);
然后就OK了