From 12346704db3dec52d10baa357cce8915a2fd5d34 Mon Sep 17 00:00:00 2001 From: Jason Beverage <jasonbeverage@gmail.com> Date: Mon, 27 Jan 2025 12:01:30 -0500 Subject: [PATCH 1/2] Added GL3RealizeOperation to osgearth_imposterbaker --- .../osgearth_imposterbaker/osgearth_imposterbaker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/osgearth_imposterbaker/osgearth_imposterbaker.cpp b/src/applications/osgearth_imposterbaker/osgearth_imposterbaker.cpp index d0053a5b2d..0e259c421f 100644 --- a/src/applications/osgearth_imposterbaker/osgearth_imposterbaker.cpp +++ b/src/applications/osgearth_imposterbaker/osgearth_imposterbaker.cpp @@ -33,6 +33,7 @@ #include <osgDB/ReadFile> #include <osgDB/WriteFile> #include <osgDB/FileNameUtils> +#include <osgEarth/GLUtils> using namespace osgEarth; @@ -309,6 +310,7 @@ main(int argc, char** argv) normalMapVP->setFunction("normalMapFS", normalMapFS, VirtualProgram::LOCATION_FRAGMENT_OUTPUT); viewer.setSceneData(root); + viewer.setRealizeOperation(new GL3RealizeOperation()); viewer.realize(); From b92a9fe1858bbc5cded83c8bef3f9eb96e88c656 Mon Sep 17 00:00:00 2001 From: Jason Beverage <jasonbeverage@gmail.com> Date: Tue, 28 Jan 2025 16:35:12 -0500 Subject: [PATCH 2/2] Updated world.prj with new SRS information to be equivalent to the global-geodetic profile in osgEarth. This prevents the FeatureImage layer from having to attempt to reproject the file which can result in some edge artifacts along tile boundaries. --- data/world.prj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/world.prj b/data/world.prj index 76ce7eb833..c23ba36678 100644 --- a/data/world.prj +++ b/data/world.prj @@ -1 +1 @@ -GEOGCS["Geographic Coordinate System",DATUM["WGS84",SPHEROID["WGS84",6378137,298.257223560493]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]] +GEOGCS["GCS_Geographic_Coordinate_System",DATUM["D_WGS_1984",SPHEROID["WGS84",6378137.0,298.257223560493]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] \ No newline at end of file