question for osggis and osgearth

classic Classic list List threaded Threaded
4 messages Options
Jacky123 Jacky123
Reply | Threaded
Open this post in threaded view
|

question for osggis and osgearth

hi, I have built the boston sample successfully with VPB and osggis, and also changed the coordinate system to geocentric.

but I still failed adding the ive files to the earth file. Any suggestions? how can I add both the terrain and building ive to the earth file?

Thanks!

Following is a srceenshot and my earth file.


<map name="tkm" type="geocentric">
         
        <image name="world" driver="gdal">
           <url>E:\osgearth\source\data\world.tif</url>
        </image>

        <heightfield  name="terrain-dem" driver="vpb">
           <url>E:\vpb\data\out\out.ive</url>
           <primary_split_level>5</primary_split_level>
           <secondary_split_level>11</secondary_split_level>
        </heightfield>
</map>


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

Re: question for osggis and osgearth

Jacky,

You should be able to incorporate the buildings into the earth file using the simple model driver:
http://www.osgearth.org/wiki/TileSourcePluginModelSimple

Otherwise, you can just load them separately, e.g.:
osgviewer your.earth buildings/out.ive

HTH, Glenn
Glenn Waldron / Pelican Mapping
Jacky123 Jacky123
Reply | Threaded
Open this post in threaded view
|

Re: question for osggis and osgearth

Thanks Glenn,

I tried the 2 methords, but still got nothing at boston.

        <image name="world" driver="gdal"> 
           <url>E:\osgearth\source\data\world.tif</url> 
        </image> 

       <image name="terrain-dem" driver="vpb">
         <url>E:\vpb\data\out\out.ive</url>
         <primary_split_level>5</primary_split_level>
         <secondary_split_level>11</secondary_split_level>
       </image>
        <model name="model" driver="simple">
          <url>E:\boston-sample\out\buildings\out.ive</url>
        </model>

Jacky
Jacky123 Jacky123
Reply | Threaded
Open this post in threaded view
|

Re: question for osggis and osgearth

In reply to this post by gwaldron
Thanks very much, Glenn

I solved that