gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.51k stars 780 forks source link

model height issue in earth file #2426

Closed nitinsdg closed 9 months ago

nitinsdg commented 9 months ago

Hello community,

earlier in earth file we can define model elevation through below xml tag

<model name = "modelname" driver="simple">
        <url>model.IVE.4,4,4.scale</url>
        <location>71.067 20.735 3549.65</location>
</model>

but in new it is not working, it is only accepting lat long not height, see below

<model name = "modelname" >
        <url>model.IVE.4,4,4.scale</url>
<location lat="30.735" long="79.067"   **??????** />
</model>

Please let me know what to do to add elevation on 3d model

nitinsdg commented 9 months ago

I got the attribute, it is 'alt', but i want to know where is the documentation to know all this for osgeath 3.x ???? please share link if it is available ?

gwaldron commented 9 months ago

There is none, just the examples in the tests folder. annotation.earth has a bunch of examples for annotation objects. Good luck and feel free to ask if you get stuck!!