Gordon
__________________________________________________________
Gordon Tomlinson
Product Manager 3D
Email : gtomlinson @ overwatch.textron.com
__________________________________________________________
(C):
(+1) 571-265-2612
(W):
(+1) 703-437-7651
"Self defence is not a
function of learning tricks
but is a function of how
quickly and intensely one
can arouse one's instinct
for survival"
- Master Tambo Tetsura
> With osgEarth you can generate a terrain model at run-time by connecting
> to a wide variety of imagery and elevation data sources, including WMS,
> TMS, Google maps, TIFF files, and more. Or extend it by writing your own
> driver.
Wait, I don't quite get it. What is the relation (if any) between
osgEarth and VPB? Is osgEarth kind of like VPB since it generates
terrain databases, but with the difference that it does it on request
instead of as a pre-process, and also that it goes and fetches the
necessary data from standard sources automatically?
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-seba...@cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Hi Glenn,Wait, I don't quite get it. What is the relation (if any) between osgEarth and VPB? Is osgEarth kind of like VPB since it generates terrain databases, but with the difference that it does it on request instead of as a pre-process, and also that it goes and fetches the necessary data from standard sources automatically?
With osgEarth you can generate a terrain model at run-time by connecting to a wide variety of imagery and elevation data sources, including WMS, TMS, Google maps, TIFF files, and more. Or extend it by writing your own driver.
> That's right J-S. osgEarth never actually writes any terrain geometry to
> disk. Rather, it generates terrain tiles at run time as you navigate the
> scene. The only relationship to VPB is that they both use osgTerrain.
OK, that's much clearer.
Very interesting. If terrain is never written to disk though, won't
there be lots of effort re-done over and over, say in multiple runs of
the software where the user goes over the same areas? You could probably
cache generated terrain to disk since I guess the Earth changes only
seldom :-)
I guess you generate low LODs first so that the user gets to see
something at least, and then refine as time goes by... What kind of time
can you expect to get good detail, and can you move about freely while
the updates are progressing?
This sounds a bit like my Masters project, where you could move around a
scene and move/deform objects, and the high-quality lighting would
update progressively without ever stopping interaction.
Good work, I look forward to trying it out.
Hi Glenn,OK, that's much clearer.
That's right J-S. osgEarth never actually writes any terrain geometry to disk. Rather, it generates terrain tiles at run time as you navigate the scene. The only relationship to VPB is that they both use osgTerrain.
Very interesting. If terrain is never written to disk though, won't there be lots of effort re-done over and over, say in multiple runs of the software where the user goes over the same areas? You could probably cache generated terrain to disk since I guess the Earth changes only seldom :-)
I guess you generate low LODs first so that the user gets to see something at least, and then refine as time goes by... What kind of time can you expect to get good detail, and can you move about freely while the updates are progressing?
It looks like a great product. I look forward to exploring this in more
detail...
Great job...
-Shayne
-----Original Message-----
From: osg-user...@lists.openscenegraph.org
[mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Glenn
Waldron
Sent: Thursday, January 22, 2009 6:20 AM
To: OpenSceneGraph Users
Subject: [osg-users] osgEarth - terrain on demand
Nice product. The focus on dynamic terrain generation reminded me of
Minerva (www.minerva-gis.org).
I'm interested in your take on how the two projects compare and contrast...
Perry
The way you've packaged this technology is impressive. I'm not sure
what could be easier than "osgviewer myFile.earth".
I asked about comparison to Minerva (and I should have included
ossimPlanet in that question) because I am genuinely interested in how
open-source projects market themselves, and how the barrier-to-entry
can make a big difference in long-term adoption.
Also, while Minerva uses OSG to draw, it's underlying tiling engine is
not based on osgDB::DatabasePager. It used to be, but we ran into some
problems that were specific to our application and had to roll our own
dynamic tiles. If you've had similar difficulties, or see them over
the horizon, I am interested in discussing this further with you. Feel
free to email me directly if you prefer.
Perry
Hi Rafa,
osgEarth renders each image layer in a separate texture unit and uses multi-texturing to apply them at run time. So, you can adjust each layer's appearance, visibility and blending by tweaking the texture attributes. This approach is of course limited to your available texture units. We have plans to incorporate additional techniques including run-time image compositing and multi-pass rendering.
Adding and removing sources dynamically is not something we've tried yet, though I believe the architecture will readily support it. It's on the list.
I saw your post the other day about OSG Virtual Planets, and it looks impressive. I plan to take a closer look when I get a chance!
Congratulations on a great looking addition to the OSG family ;-)
Please add notice of the osgEarth library to the community news page
listed on the OSG front page.
http://www.openscenegraph.org/projects/osg/wiki/News/AddCommunityNews
I'm sure opengl.org and modsim.org and game dev websites would also be
interested in the new development too.
Cheers,
Robert.
On Fri, Jan 23, 2009 at 4:47 PM, Glenn Waldron <gwal...@gmail.com> wrote:
> Thanks for the kind words. I've added it to the Community News page as you
> recommended.
Thanks.
I've just checked out osgEarth svn/trunk and attempted to compile but
found that the FIND_PACKAGE(LIBZIP) in osgEarth/CMakeLists.txt should
read FIND_PACKAGE(LibZip), I presume you do most of dev under
Windows...
Fixing this doesn't get me a complete build yet though, I get the
following error, but not being CMake expert I can't spot right away
how to fix the problem:
cmake .
CMake Error at CMakeModules/ModuleInstall.cmake:38 (INSTALL):
install TARGETS given no LIBRARY DESTINATION for shared library target
"osgEarth".
Call Stack (most recent call first):
src/osgEarth/CMakeLists.txt:73 (INCLUDE)
-- Configuring incomplete, errors occurred!
Jason Beverage wrote:
> Hi Robert,
>
> I'm going to take a look at the Cmake issues under Linux and I'll let
> you know when I've figured them out.
>
> Thanks!
>
I have managed to configure it on Linux, but when compiling, it tries to
link the plugins in strange place:
$ make
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /media/backup/osg/osgearth
[ 55%] Built target osgEarth
Linking CXX shared module //osgdb_earth.so
/usr/bin/ld: cannot open output file //osgdb_earth.so: Permission denied
collect2: ld returned 1 exit status
make[2]: *** [/osgdb_earth.so] Error 1
make[1]: *** [src/osgPlugins/earth/CMakeFiles/osgdb_earth.dir/all] Error 2
make: *** [all] Error 2
It is not supposed to put anything in the root directory. Is there an
environment variable or something to configure to tell it where to put
these libraries?
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFJekMMn11XseNj94gRAvjdAJ4tA5sRUFdKsY/E8vVIOKH/oj3+WQCfWPsy
FxLybfu23L0kJnfEXOCeRdU=
=Bpow
-----END PGP SIGNATURE-----
I've just done an svn update and osgEarth now compiles and installs
under Linux ;-)
Running osgearth_seed I get a seg fault, perhaps associated with me
not configuring a cache...
osgearth_seed tests/google_imagery.earth
Warning: Image Google maps satellite imagery has no cache.
There are no caches specified for the given map. Please configure a
cache in the mapconfig
Segmentation fault
Perhaps I need to do some background reading.... on mapconfig... :)
Robert.
On Sat, Jan 24, 2009 at 12:56 AM, Jason Beverage
Great work !
I am testing your project and the results are phenomenal. The best
example i like is traffic.earth, combining data from google and yahoo
is simply awesome :)
But i am facing problem while loading local data through osgEarth. I
created a simple boston.earth file containing the boston data which
goes like this ...
<map name="imagery sample" type="projected">
<image name="boston_inset" driver="gdal">
<url>../data/boston-inset.tif</url>
<tile_size>256</tile_size>
</image>
</map>
While running osgviewer boston.earth, i am getting a segmentation fault :
*** glibc detected *** osgviewer: munmap_chunk(): invalid pointer:
0x000000000063ab3e ***
I am using the latest svn version of osgEarth built against OSG-2.7.4 ,
gdal 1.3.2, libzip-0.9 . My OS is Open-Suse-10.3-x86_64
Cheers
RJ
> ------------------------------------------------------------------------
I'm getting the same error from the gdal plugin in ubuntu. On windows
I'm using fwtools and it works fine. Im heading out of town today but
I'll take a look at it as soon as I get back tommorow.
Thanks!
Jason
Jason Beverage wrote:
> Hi everyone,
>
> I've just committed some CMake fixes and osgEarth now builds and runs
> for me on Ubuntu.
>
> The only thing I had to do extra to get it to work was manually copy the
> plugins generated by osgEarth to the osgPlugins directory
> (/usr/local/lib/osgPlugins-2.7.9 on Ubuntu with SVN). I'm going to see
> if I can get osgEarth to install it's plugins directly in the osgPlugins
> directory during install.
>
> Could those of you trying on Linux do an update and let me know how
> things work?
Cool, it compiles and runs now, minus the segfault with the cache as
Robert noted elsewhere.
Good work!
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFJezQyn11XseNj94gRAhC9AKDBxhLwF9AybwnaQoNaI24i/Ajs4gCg1hJO
Nestm4nS8qmhdzajD5LzBck=
=xS2k
On Sat, Jan 24, 2009 at 4:09 PM, Jason Beverage <jasonb...@gmail.com> wrote:
> If you run osgearth_seed on the simple_caching.earth file does it also
> segfault or does it only segfault when you don't have a cache defined?
When I run :
osgearth_seed tests/simple_caching.earth
I get a long series of output of the form:
Processing 1332
Processing 13320
Processing 13321
Processing 13322
Processing 13323
Processing 1333
Then a Segmentation fault.
Robert.
Jason Beverage wrote:
> Hi Jan and Robert,
>
> If you run osgearth_seed on the simple_caching.earth file does it also
> segfault or does it only segfault when you don't have a cache defined?
If I define the cache, it tries to compute something and then segfaults
at the end.
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFJfFW2n11XseNj94gRAt9wAJ9iajQ4CSlT3Ti2oNH1N6pdeaqbkQCePMlU
NSCVMotvYnuX3i8Au8+s0ig=
=7tl0
On Mon, Jan 26, 2009 at 3:56 AM, Jason Beverage <jasonb...@gmail.com> wrote:
> I just committed a fix to osgearth that removes the segfault at the end of
> the seeding. Works fine for me now in Ubuntu.
Seg fault is gone now, thanks :-)
I can now run
>osgearth_seed simple_caching.earth
it runs to completion without any error.
But if I run:
> osgearth_seed google_maps.earth
Warning: Image Google maps has no cache.
There are no caches specified for the given map. Please configure a
cache in the mapconfig
I can now run osgviewer google_maps.earth and it works almost seamlessly :-)
I say almost seamlessly because there is some osgTerrain functionality
I haven't implemented yet that will stitch adjacent tiles together to
prevent any cracks in the seems and to average out the texel values
along the boundary. This will be for a future rev of OSG, 2.10
prehaps, but the nice thing is that osgEarth will not have to change
at all to get the extra functionality as osgTerrain will be able to do
it automatically ;-)
Robert.
I've been browsing through the various sample .earth files, it really
is very cool how easy it is to plugin and play.
I have seen a couple of tile errors when browsing though, with the
following error reported on the command line:
TIFF loader: Error opening file
Also if I run advanced_cache.eath I occassionally get the these TIFF
errors too, as well as a coodindate system warning:
> osgearth_seed advanced_caching.earth
ERROR 6: EPSG PCS/GCS code 3785 not found in EPSG support files. Is
this a valid
EPSG coordinate system?
Warping ../data/boston-inset.tif to global-geodetic
Overriding profile to GLOBAL_GEODETIC due to profile in MapConfig
Warning: Heightfield WorldWind DEM has no cache.
Processing
Processing 0
I have no clue what this means I'm afraid...
W.r.t TIFF error, is this an error in the osg plugin? Or the file?
Or the libtiff library we use under Linux? I can't answer this, but a
first step might be to record the name/contents of the file.
Hello,
I just tried to do something in osg that produces different behavior depending on which platform I compile it on. I realize it’s an ugly thing to do, but I set up a global variable v that is of type osg::Vec3 and then made it an array of size 12:
osg::Vec3 v[12];
If I compile the code in debug mode using MSVC v9, (or using optimization with the gnu compiler under IRIX) the code works fine. If I compile it using the ‘Release’ setting in MSVC I find setting the global in one part of my code isn’t detected in other sections – which see the array’s initial values (all zeros).
If I use an osg::Vec3Array everything works fine, irrespective of platform.
Is it simply not a good idea to use an array of osg::Vec3 (and I’m lucky it happens to work at all), or is something up with the MSVC optimizer?
Thanks,
Guy
Hi Guy,
AFAIK this should work. Could you reduce that problem to a small example program so we could actually review the code?
Cheers,
Tanguy
are you perhaps using multiple threads on a multi core machine? then it
might be a cache coherence problem. You'd need to declare your shared
data as volatile:
volatile osg::Vec3 v[12];
regards Ralph
Guy Wallis schrieb:
_______________________________________________
Jason Beverage wrote:
> Hi Robert and Jan,
>
> I just committed a fix to osgearth that removes the segfault at the end
> of the seeding. Works fine for me now in Ubuntu.
Now it seems to work fine :)
Thanks a lot.
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFJfaABn11XseNj94gRAiO7AJ0ZLU7+XakbC5hxkJXdViOsRcsNEwCfS44o
6bnzt9ISEEHy0sckwHTK7TI=
=cgbw
Guy Wallis wrote:
> Hello,
>
> I just tried to do something in osg that produces different behavior
> depending on which platform I compile it on. I realize it’s an ugly
> thing to do, but I set up a global variable v that is of type osg::Vec3
> and then made it an array of size 12:
>
Please, do not hijack the thread - post a new message instead of
replying to a random message in the list with a new subject.
Thank you,
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFJfaBmn11XseNj94gRApMXAJ95WJMkuCzepZYqx9GoCGLfL2SKngCfbN9G
B96wfqIMo0E6oInc7qgZNH0=
=znO0
Thanks, after SVN update the problem is resolved.
The another issue i just came across is that images with single
band(Gray) can not be loaded. Looking at the code of
ReaderWriterGDAL.cpp it seems that the image with the single band are
not handled. Is it intentional or its just that you have not come
across single channel raster image ? I would love to add the support
for single channel image and contribute back, if it is not already on
your radar.
cheers,
RJ
> <mailto:osg-...@lists.openscenegraph.org>
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
>
> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> <mailto:osg-...@lists.openscenegraph.org>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Hi Glenn and Jason,
I've been browsing through the various sample .earth files, it really
is very cool how easy it is to plugin and play.
I have seen a couple of tile errors when browsing though, with the
following error reported on the command line:
TIFF loader: Error opening file
Also if I run advanced_cache.eath I occassionally get the these TIFF
errors too, as well as a coodindate system warning:
> osgearth_seed advanced_caching.earth
ERROR 6: EPSG PCS/GCS code 3785 not found in EPSG support files. Is
this a valid
EPSG coordinate system?
Warping ../data/boston-inset.tif to global-geodetic
Overriding profile to GLOBAL_GEODETIC due to profile in MapConfig
This is with CMake 2.4.8
Paul