Adding building models programmatically?

classic Classic list List threaded Threaded
3 messages Options
andrews andrews
Reply | Threaded
Open this post in threaded view
|

Adding building models programmatically?

Hi

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?


Thanks
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Adding building models programmatically?

andrews,
Impossible to say without seeing your code snippet.
(Please use something like pastebin if it's more than a few lines).
Glenn Waldron / Pelican Mapping
andrews andrews
Reply | Threaded
Open this post in threaded view
|

Re: Adding building models programmatically?

This post was updated on .
The code is,


src.cpp

The output generated is,




Thank you