osgEarth 1.2 call for testing!

classic Classic list List threaded Threaded
8 messages Options
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

osgEarth 1.2 call for testing!

Hi everyone,

osgEarth 1.2-RC1 is available and ready for testing!

This the first release candidate for Version 1.2, which we hope to officially tag in the first week of August. If you're an osgEarth user, please test now against the head SVN revision and please report any issues.

osgEarth is an OpenSceneGraph toolkit renders terrain models dynamically at run time. Instead of pre-generating a terrain model offline and then loading it into OSG, you can point osgEarth at your raw data sources and it will produce a terrain model on the fly. Read more on the Wiki at http://osgearth.org .

Version 1.2 has new features and bug fixes:

http://wush.net/trac/osgearth/wiki/ReleaseNotes12

Note for developers: osgEarth 1.2 also has a NEW API for map layer management. It is not backwards-compatible with version 1.1, so please read this page if you need to upgrade:

http://wush.net/trac/osgearth/wiki/DevelopersGuide

Thank you for your support!

Jason

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

Re: osgEarth 1.2 call for testing!

Here's a diff after fixing the code to compile under gcc 4.3.3

- John

Index: src/applications/osgearth_toc/osgearth_toc.cpp
===================================================================
--- src/applications/osgearth_toc/osgearth_toc.cpp (revision 546)
+++ src/applications/osgearth_toc/osgearth_toc.cpp (working copy)
@@ -185,7 +185,7 @@
         {
             _view->getDatabasePager()->clear();
             int dir = _up ? 1 : -1;
-            unsigned int newPosition = osg::clampBetween(_layerIndex + dir, 0u, _map->getImageMapLayers().size()-1u);
+            unsigned int newPosition = osg::clampBetween(_layerIndex + dir, 0u, (unsigned int)_map->getImageMapLayers().size()-1u);
             //_map->moveImageSource( _layerIndex, newPosition );
             MapLayer* layer = _map->getImageMapLayers()[_layerIndex];
             _map->moveMapLayer( layer, newPosition );
@@ -530,4 +530,4 @@
  osg::notify(osg::NOTICE) << "osgearth_toc requires at least OpenSceneGraph 2.8.0 due to changes in osgWidget." << std::endl;
  return 0;
 }
Index: src/osgEarth/MapEngine
===================================================================
--- src/osgEarth/MapEngine (revision 546)
+++ src/osgEarth/MapEngine (working copy)
@@ -20,7 +20,7 @@
 #ifndef OSGEARTH_MAP_ENGINE_H
 #define OSGEARTH_MAP_ENGINE_H 1
 
-#include <osgEarth/Map>
+//#include <osgEarth/Map>
 #include <osgEarth/MapEngineProperties>
 #include <osgEarth/TileSource>
 #include <osgEarth/Compositing>
@@ -33,6 +33,8 @@
 
 namespace osgEarth
 {
+  class OSGEARTH_EXPORT Map;
+
     /**
      * MapEngine is the main workhorse in osgEarth. It generates osg Nodes for TileKeys.
      */

Index: src/osgEarth/Caching.cpp
===================================================================
--- src/osgEarth/Caching.cpp (revision 546)
+++ src/osgEarth/Caching.cpp (working copy)
@@ -131,8 +131,8 @@
 
     std::stringstream buf;
     buf << "type=" << getType() << ", "
-        << "reproject=" << (reprojectBeforeCaching().isSet()? reprojectBeforeCaching().get() : "unset") << ", "
-        << "cacheOnly=" << (runOffCacheOnly().isSet()? runOffCacheOnly().get() : "unset" );
+        << "reproject=" << (reprojectBeforeCaching().isSet()? (char*)reprojectBeforeCaching().get() : "unset") << ", "
+        << "cacheOnly=" << (runOffCacheOnly().isSet()? (char*)runOffCacheOnly().get() : "unset" );
 
     for (Properties::const_iterator i = _properties.begin(); i != _properties.end(); i++ )
         buf << ", " << i->first << "=" << i->second;  
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: osgEarth 1.2 call for testing!

Thanks John; changes applied and committed.

Glenn
Pelican Mapping
Glenn Waldron / Pelican Mapping
Calvert Calvert
Reply | Threaded
Open this post in threaded view
|

Re: osgEarth 1.2 call for testing!

hi

"Smooth fly-to-Viewpoint function that's smart about round-earth maps"

I want to know how to do this?   setviewpoint???  
thanks a lot!!!
Gwaldron Gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: osgEarth 1.2 call for testing!

Calvert,

Correct.. Just call EarthManipulator::setViewpoint and give it a duration in seconds.

Glenn
Calvert Calvert
Reply | Threaded
Open this post in threaded view
|

Re: osgEarth 1.2 call for testing!

when execute setViewpoint(),
it does smooth fly to Viewpoint,great!
then push the left-mouse-button ,the viewpoint will jump to the surface of the terrain.
how to figure out this?
thanks!!!
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: osgEarth 1.2 call for testing!

Hi Calvert,

Are you asking how to find what the lat/long/elevation is of the point that was clicked?

Thanks,

Jason

On Mon, Aug 3, 2009 at 1:23 AM, Calvert (via Nabble) - No Reply <[hidden email]> wrote:
when execute setViewpoint(),
it does smooth fly to Viewpoint,great!
then push the left-mouse-button ,the viewpoint will jump to the surface of the terrain.
how to figure out this?
thanks!!!


View message @ http://n2.nabble.com/osgEarth-1.2-call-for-testing%21-tp3360115p3375949.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.


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

Re: osgEarth 1.2 call for testing!

sorry for my unclear expression.
my issue is:
when executed the function setViewpoint(), camera fly to the specific viewpoint.
then, click left-mouse-button, camera will jump to the surface of the terrain immediately.

thanks!!