Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-10 Thread Chris Hanson
osgEarth has a VPB driver:
https://github.com/gwaldron/osgearth/blob/master/src/osgEarthDrivers/vpb/ReaderWriterVPB.cpp


I've not used it in as long as I can remember, but I think it could be used
to insert VPB-built .osg/.ive/.osgb files into osgEarth as terrain layers.
It's not placed using a "model" node. It's not exactly recommended:

http://docs.osgearth.org/en/latest/references/drivers/tile/vpb.html





On Mon, Jun 10, 2019 at 7:44 PM Steven Jones  wrote:

> Figured it out...
>
> On a side note, can I point to the osgb terrain database files from within
> an .earth file? I've not see anything that covers that, unless, in this
> case, the osgb file(s) are considered a "model".
>
> The database for the osgb format includes a sub-directory named
> ...\dbtest_root_L0_X0_Y0, and the primary osgb file (dbtest.osgb) is in the
> next level higher sub-directory.
>
> Cheers,
>
> Steven
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76270#76270
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-10 Thread Steven Jones
Figured it out...

On a side note, can I point to the osgb terrain database files from within an 
.earth file? I've not see anything that covers that, unless, in this case, the 
osgb file(s) are considered a "model".

The database for the osgb format includes a sub-directory named 
...\dbtest_root_L0_X0_Y0, and the primary osgb file (dbtest.osgb) is in the 
next level higher sub-directory.

Cheers,

Steven

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-05 Thread Chris Hanson
You can, if you want, hook in a pseudoloader that intercepts ALL calls to
load .osgb files and snoops on them to see if they are terrain tiles, and
if they are, you can on the fly add buildings and models and vegetation to
the scene. This way, the accessories page in and out with the terrain.

It's complex, but it's basically what osgEarth was doing for you.

Robert may have other suggestions for architectural designs along those
lines.

On Tue, Jun 4, 2019 at 3:14 PM Steven Jones  wrote:

> Chris,
>
> Osgb it will be... The performance is great, particularly after I limited
> the overall area that the database covered. The tricky part will be the 3D
> models and vegetation placement. This must be done as it is integral to
> what I'm building...
>
> ...
>
> Cheers,
>
> Steven
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76185#76185
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-04 Thread Steven Jones
Chris,

Osgb it will be... The performance is great, particularly after I limited the 
overall area that the database covered. The tricky part will be the 3D models 
and vegetation placement. This must be done as it is integral to what I'm 
building...

... 

Cheers,

Steven

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-03 Thread Chris Hanson
Is it performing more to your liking using the OSG/IVE format?

For future-proofing you should probably consider using the osgb format as
OSG/IVE are deprecated now.

On Mon, Jun 3, 2019 at 8:27 PM Steven Jones  wrote:

> Thanks Chris - I am relatively certain I can use all the luck I can get...
>
> Cheers,
>
> Steven
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76182#76182
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-03 Thread Steven Jones
Thanks Chris - I am relatively certain I can use all the luck I can get... 

Cheers,

Steven

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-03 Thread Chris Hanson
Good luck!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-03 Thread Steven Jones
Chris, Robert,

The crunching completed - osgdem generated 103,830 .ive files total, and the 
resolution now matches what is rendered in an .earth file.

The last file generated was dbtest_L11_X667_Y251_subtile.ive.

CDBs can have a max LOD of 23 (centimeter resolution).

Next step is to add the 3D models to the terrain, which are currently 
openflight, then the shape files...

Thank you both!

Steven

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-03 Thread Robert Osfield
Hi Steve and Chris,

On Mon, 3 Jun 2019 at 13:00, Chris Hanson  wrote:
> It sounds like osgdem's idea of 'levels' may not correspond to CDB's, and 
> increasing the number os osgdem levels may be the right solution.
>
> I don't think osgdem ever generates "too many" levels -- the "levels" option 
> simply limits how far it is allowed to go. So, if you really want ALL detail 
> from your source data shown, you should probably just try giving it a crazy 
> high levels limit (16?) and let it grind away producing tiles for as much 
> detail as you've got.

I don't recall the max LOD I've used before, I think it was higher
than 16 though, but this was for whole earth dataset with inserts down
to sub metres res image data.  For these really big datasets you have
to use vpbmaster and use a distributed build multiple
machines/processors.

The VPB automatically stops generating new levels once the
elevation/image data is a higher enough resolution, on the leaves of
the whole scene graph, properly represent the source DEMs/Imagery.  So
a level of 99 won't ever be hit, the VPB will automatically stop well
before this, the level parameter you give vpbmaster/osgdem is simply
the maximum number of levels you want to build.

Cheers,
Robert
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-03 Thread Chris Hanson
It sounds like osgdem's idea of 'levels' may not correspond to CDB's, and
increasing the number os osgdem levels may be the right solution.

I don't think osgdem ever generates "too many" levels -- the "levels"
option simply limits how far it is allowed to go. So, if you really want
ALL detail from your source data shown, you should probably just try giving
it a crazy high levels limit (16?) and let it grind away producing tiles
for as much detail as you've got.

Robert can correct me if I'm wrong here about this.

On Mon, Jun 3, 2019 at 4:35 AM Steven Jones  wrote:

> Update...
>
> With the LOD level set to 8, osgdem generated approx 1,600 .ive files.
>
> With the value set to 99, it's been crunching for over 2 hours, and it's
> up to 38,000+ .ive files and is still crunching.
>
> The latest .ive file to be created is dbtest_L9_X255_Y63_subtile.ive.
>
> The imagery files (4,000+) were originally .jp2 format, and I converted
> them to GeoTiffs using GeoJasper.
>
> Steven
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76173#76173
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-02 Thread Steven Jones
Update...

With the LOD level set to 8, osgdem generated approx 1,600 .ive files.

With the value set to 99, it's been crunching for over 2 hours, and it's up to 
38,000+ .ive files and is still crunching. 

The latest .ive file to be created is dbtest_L9_X255_Y63_subtile.ive.

The imagery files (4,000+) were originally .jp2 format, and I converted them to 
GeoTiffs using GeoJasper.

Steven

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-02 Thread Steven Jones
Chris,

The imagery files are delineated (in sub-directories) as L00 through L08, 
elevation through L04. Originally all were part of a CDB database. I'm assuming 
that, per current CDB standards, this would indicate up to an LOD of 08, unless 
I'm mistaken...

I can change it to "99", per some of the info I've run across for osgdem/VPB, 
and re-create, just in case...

Also, I view both types of formats using an NVIDIA GTX 780M GPU, which should 
be more than capable of handling them.

... 

Thank you!

Cheers,
Steven

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?

2019-06-02 Thread Chris Hanson
Are you sure 8 levels

>osgdem --TERRAIN --no-terrain-simplification --npot --BuildOverlays True
--blending-policy ENABLE_BLENDING --PagedLOD --interpolate-imagery
--mip-mapping-imagery -l 8 -d C:\DB\N33\W118\Mosaic\Ele -t
C:\DB\N33\W118\Mosaic\Img -gb -118.025000568 32.8698343849721
-116.974999432 34.1301656150279 -o dbtest.ive

is sufficient?
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org