Hi,

Waldron, and Hertlein, thank you so much.
"Gaussian projected coordinate system" means when I generate the terrain, I use 
like parameters --cs "+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 
+ellps=krass +units=m +no_defs" and "-e 659690 3529390 5835 4525 "in 
commandline, so the terrain is generated using the WGS84 globe and Gaussian 
coordinate.
 I studied the vpb_earth_bayarea.earth file which has the link of 
http://www.openscenegraph.org/data/earth_bayarea/earth.ive. I directly download 
the earth.ive and locate it in my hard disk. Then I rewrite the 
vpb_earth_bayarea.earth, which is as follows: 
<!--
osgEarth Sample

This example pulls imagery and dems from an online VirtualPlanetBuilder 
generated database.
-->

<map name="Virtual Planet Builder model" type="geocentric">

    <image name="imagery layer 0" driver="vpb">
        <url>e:\earth.ive</url>
        <primary_split_level>5</primary_split_level>
        <secondary_split_level>11</secondary_split_level>
    </image>

    <heightfield name="dem" driver="vpb">
        <url>e:\earth.ive</url>
    </heightfield>

    <!--
    <cache>
        <path>cache</path>
    </cache>
    -->
</map>
i.e. I only replace the link 
http://www.openscenegraph.org/data/earth_bayarea/earth.ive in 
vpb_earth_bayarea.earth with “e:\earth.ive” in the new .earth file. I open the 
new .earth file using osgviewer, but there is still nothing but the blue 
background in the scene (Fig.1 ). When I quit the program, the cmd window is 
shown in Fig. 2 and Fig.3 . What is going on with my program, would you give me 
some suggestions, thank you.


Thank you!

Cheers,
ting

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30700#30700




Attachments: 
http://forum.openscenegraph.org//files/fig3_267.jpg
http://forum.openscenegraph.org//files/fig2_197.jpg
http://forum.openscenegraph.org//files/fig1_124.jpg


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to