Programmatically tried to add building to earth. My shape file contains polygon and its height in separate attribute. Before that, image and elevation of the area were added. Now, added the shape file(building) with altitude clamping set to CLAMP_TO_TERRAIN.
It shows up the terrain and building. But the building is hanging above the respective terrain location. In the sense that gap is left b/w terrain and building. When I run the .earth example (command line thru osgearth_viewer.exe), things worked fine. All the attributes set in the .earth were set in program as well. Not sure what might have gone wrong?