Viewer for UnitTest

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

Viewer for UnitTest

Is there a simple way to set up a Viewer for a UnitTest.

auto manip = new osgEarth::Util::EarthManipulator(arguments);              
     
       
        viewer = new osgViewer::Viewer(arguments);
        viewer->setCameraManipulator( manip );  
        viewer->realize();    

I always get the Exception:

[osgEarth]* WARNING: Failed to load terrain engine driver for "rex"
[osgEarth]* FAILED to create a terrain engine for this map

Earth File :
<?xml version="1.0" encoding="UTF-8"?>
<map name="minimal" type="geocentric" version="2">
        <options>
        <terrain driver= "rex">
                </terrain>
        </options>
</map>

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

Re: Viewer for UnitTest

Hi FloKow,
Assuming you are using osgEarth 2.10 or 3.0, you do not need to include 'driver="rex"' since that is the default. Otherwise, make sure that the file osgdb_osgearth_engine_rex.dll is in your path.
Glenn Waldron / Pelican Mapping
FloKow FloKow
Reply | Threaded
Open this post in threaded view
|

Re: Viewer for UnitTest

Thanks the dll was missing