OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Resolution of .earth vice .osg/.ive Formats?

Goto page 1, 2  Next
 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
stevenj279
User


Joined: 22 Apr 2019
Posts: 21

PostPosted: Sun Jun 02, 2019 2:24 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

I've noticed that there is a rather large difference in the resolution of the terrain when rendered in OSG using different methods.

For example, when I view a terrain database in the .earth format, the resolution of the terrain is very noticeably higher than the resolution of the terrain in both the .ive and .osg formats (using the exact same imagery and elevation tiles).

Is there a method to increase the resolution level for the .osg/.ive data?

I use osgdem to create the .osg and .ive tile sets - see following example for the .ive format:

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.02500000000000568 32.86983438499999721 -116.97499999999999432 34.13016561500000279 -o dbtest.ive

Thanks!

Steven
Back to top
View user's profile Send private message Send e-mail
Chris Hanson
Guest





PostPosted: Sun Jun 02, 2019 8:30 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

Are you sure 8 levels

Quote:
osgdem --TERRAIN --no-terrain-simplification --npot --BuildOverlays True --blending-policy ENABLE_BLENDING --PagedLOD --interpolate-imagery --mip-mapping-imagery -l 8 -d C:DBN33W118MosaicEle -t C:DBN33W118MosaicImg -gb -118.02500000000000568 32.86983438499999721 -116.97499999999999432 34.13016561500000279 -o dbtest.ive


is sufficient?

------------------
Post generated by Mail2Forum
Back to top
stevenj279
User


Joined: 22 Apr 2019
Posts: 21

PostPosted: Mon Jun 03, 2019 12:39 am    Post subject:
Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
stevenj279
User


Joined: 22 Apr 2019
Posts: 21

PostPosted: Mon Jun 03, 2019 2:35 am    Post subject:
Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Chris Hanson
Guest





PostPosted: Mon Jun 03, 2019 12:00 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. 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]

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12279

PostPosted: Mon Jun 03, 2019 1:01 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

Hi Steve and Chris,

On Mon, 3 Jun 2019 at 13:00, Chris Hanson <> wrote:
Quote:
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


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
stevenj279
User


Joined: 22 Apr 2019
Posts: 21

PostPosted: Mon Jun 03, 2019 1:46 pm    Post subject:
Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Chris Hanson
Guest





PostPosted: Mon Jun 03, 2019 2:13 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

Good luck!

------------------
Post generated by Mail2Forum
Back to top
stevenj279
User


Joined: 22 Apr 2019
Posts: 21

PostPosted: Mon Jun 03, 2019 6:27 pm    Post subject:
Reply with quote

Thanks Chris - I am relatively certain I can use all the luck I can get...

Cheers,

Steven
Back to top
View user's profile Send private message Send e-mail
Chris Hanson
Guest





PostPosted: Mon Jun 03, 2019 9:54 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. 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]

------------------
Post generated by Mail2Forum
Back to top
stevenj279
User


Joined: 22 Apr 2019
Posts: 21

PostPosted: Tue Jun 04, 2019 1:14 pm    Post subject:
Reply with quote

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...

Question though:

In the OSG Tests subdirectory, there is an earth file (feature_raster.earth) that references "classmap_features". Is this a physical file? I ask as it states that it is a "Layer that extracts features from an image layer".

...

Cheers,

Steven
Back to top
View user's profile Send private message Send e-mail
Chris Hanson
Guest





PostPosted: Wed Jun 05, 2019 3:35 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. 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]

------------------
Post generated by Mail2Forum
Back to top
Chris Hanson
Guest





PostPosted: Wed Jun 05, 2019 3:35 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. 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]

------------------
Post generated by Mail2Forum
Back to top
Chris Hanson
Guest





PostPosted: Wed Jun 05, 2019 3:35 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. 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]

------------------
Post generated by Mail2Forum
Back to top
Chris Hanson
Guest





PostPosted: Wed Jun 05, 2019 3:35 pm    Post subject:
Resolution of .earth vice .osg/.ive Formats?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. 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]

------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Convert .earth file to .osg format stevenj279 General 29 Mon Apr 22, 2019 5:05 am View latest post
No new posts Virtual Planet Builder: increase reso... moet General 0 Wed Oct 17, 2018 11:34 pm View latest post
No new posts osg::Node can not be displayed front ... aozdin General 4 Fri Mar 02, 2018 12:43 pm View latest post
No new posts OSG compatible models in obj and othe... jaisingla General 0 Mon Sep 18, 2017 4:45 am View latest post
No new posts OSG compatible models in obj and othe... jaisingla General 0 Mon Sep 18, 2017 4:45 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP