Re: [osg-users] Resolution of .earth vice .osg/.ive Formats?
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?
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?
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?
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?
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?
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
[osg-users] Resolution of .earth vice .osg/.ive Formats?
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.025000568 32.8698343849721 -116.974999432 34.1301656150279 -o dbtest.ive Thanks! Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76169#76169 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
All is well - Topic can be closed. I found the info I needed and have successfully created both osg and ive databases for the terrain data I'm using. Many thanks for all of the help! Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76168#76168 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Chris, I can definitely do that, since I have the original files (imagery and elevation) in segregated in separate sub-directories. I'd still need to be able to visualize them though as I test the build process to ensure that I'm seeing the 3D aspect of the overall terrain. With a VRT, I'm not sure how to do that. ... Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75951#75951 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Hi Chris "D", Thanks - I'd done some researching and came to the same basic conclusion... For now, I'm going to trust that the values are as they should be... I've created a VRT file using gdalbuildvrt but am not sure how that can be used now to ultimately create an osg (or osgb) file to use within my application to view it in 3D. The files used to build the vrt were both elevation and imagery GeoTiffs, and I used the -separate option (tried it without and after a little over 1,000 files were processed, gdalbuildvrt stopped due to too many errors. (The mosaic has 600+ elevation files and 4,000+ imagery files - error was likely due to differences related to the number of bands and float versus int.) How best to proceed? ... Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75949#75949 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Sorry to be a bother Chris, but I've drilled through QGIS' various methods of viewing GeoTiff metadata but cannot find anything referencing any values named "Flt_Max". I must be missing something... ... Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75947#75947 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Chris, Chris Hanson wrote: > It's a single-precision 32-bit floating point TIFF. Values could be anywhere > from -FLT_MAX to FLT_MAX. > > I've tried several methods to try to find the FLT_MAX values but so far no > joy, so I have no idea what it could be set to... Can you recommend a method > to dig this info out? > > Steven > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=75930#75930 > (http://forum.openscenegraph.org/viewtopic.php?p=75930#75930) > > > > > > ___ > osg-users mailing list > () > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org) > -- Chris 'Xenon' Hanson, omo sanza lettere. http://www.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 (https://twitter.com/alphapixel) facebook.com/alphapixel (http://facebook.com/alphapixel) (775) 623-PIXL [7495] -- Post generated by Mail2Forum[/quote] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75935#75935 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Chris, Not sure what value range you are referring to (still learning all I can regarding the GeoTiff file structures). "This seems plausible. Did you check to see what value range this elevation TIFF has?" Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75930#75930 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Chris, When I examine an image GeoTiff with GDALinfo, here's what is output: Driver: GTiff/GeoTIFF Files: N33W118_D004_S001_T001_L00_U0_R0a.tif Size is 1024, 1024 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-118.000,34.000) Pixel Size = (0.00097656250,-0.00097656250) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=GeoJasPer Image Structure Metadata: COMPRESSION=JPEG INTERLEAVE=PIXEL Corner Coordinates: Upper Left (-118.000, 34.000) (118d 0' 0.00"W, 34d 0' 0.00"N) Lower Left (-118.000, 33.000) (118d 0' 0.00"W, 33d 0' 0.00"N) Upper Right (-117.000, 34.000) (117d 0' 0.00"W, 34d 0' 0.00"N) Lower Right (-117.000, 33.000) (117d 0' 0.00"W, 33d 0' 0.00"N) Center (-117.500, 33.500) (117d30' 0.00"W, 33d30' 0.00"N) Band 1 Block=256x256 Type=Byte, ColorInterp=Red Band 2 Block=256x256 Type=Byte, ColorInterp=Green Band 3 Block=256x256 Type=Byte, ColorInterp=Blue This is one of the GeoTiff elevation files: Driver: GTiff/GeoTIFF Files: N33W118_D001_S001_T001_L00_U0_R0.tif Size is 1024, 1024 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-118.00048828125,33.99951171875) Pixel Size = (0.00097656250,-0.00097656250) Metadata: AREA_OR_POINT=Point Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left (-118.0004883, 33.9995117) (118d 0' 1.76"W, 33d59'58.24"N) Lower Left (-118.0004883, 32.9995117) (118d 0' 1.76"W, 32d59'58.24"N) Upper Right (-117.0004883, 33.9995117) (117d 0' 1.76"W, 33d59'58.24"N) Lower Right (-117.0004883, 32.9995117) (117d 0' 1.76"W, 32d59'58.24"N) Center (-117.5004883, 33.4995117) (117d30' 1.76"W, 33d29'58.24"N) Band 1 Block=1024x1 Type=Float32, ColorInterp=Gray I don't see the measurement value type, but I'm fairly sure they are both in meters. (I also confirmed the above data in QGIS.) I'll also look into gdalbuildvrt - Thanks! Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75920#75920 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Chris, I've been trying osgdem to build the database, and pointing to the overall imagery and elevation sub-directories works fine. I receive no error messages, and the build completes, but when I use osgviewer to inspect the .ive file, it is completely flat - no visible change in elevation - terrain resolution is perfect though. (When I view the .earth file in osgearth_viewer, the terrain's elevation is rendered correctly.) Below is the command line that I've used to build the database - I've changed the LOD level to various settings, even up to 8, and tried other settings based on osgdem's -h info (such as --PagedLOD), but no joy. osgdem --geocentric -t C:\DB\N33\W118\004_Imagery -d C:\DB\N33\W118\001_Elevation -l 8 -o db.ive Also, if I create the database as .osg instead of .ive, osgviewer throws the following error: "Problem, no locator found in any of the terrain layers." Maybe I'm missing something obvious, but for the life of me I can't get past this point... ;-( (It is very important that the database render the elevation in a 3D format.) One other item of interest is that neither --interpolate-imagery nor --interpolate-terrain work in osgDem... They both throw errors that they are unrecognized commands. The version of VPB/osgDem I'm running is 0.9.11 (I was trying different options to generate the database when I encountered this.) ... Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75915#75915 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
I'd downloaded that guide before and briefly reviewed it, but that was when I first installed VPB but hadn't yet tried it. It would certainly be much more efficient to combine the imagery and elevation data and create an osg or ive formatted database. But, since I have so many GeoTiffs and elevation files, is it possible to just point to the specific folder for each type on the command line? For example, here's the general structure for the imagery: C:\DB\N33\W118\004_Imagery The imagery files in this directory are L0 through L08 Each of these sub-directories contain multiple sub-sub-directories, named U0 through U"X" (some have 20 or more folders). File names follow this naming convention: N33W118_D004_S001_T001_L03_U0_R5a.tif N33W118_D004_S001_T001_L03_U0_R6a.tif etc... The structure is basically the same for the elevation data: C:\DB\N33\W118\001_Elevation The overall database format follows what is common for the CDB format. The document you referenced shows listing of individual files to be merged/combined - Pointing to the overall sub-directories would be much easier, if that's possible... ... Thank you! Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75908#75908 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Hi Scott, Are you referring to a TMS dataset? Or something different? (All of my elevation and imagery files are tiled GeoTiffs.) Thanks! Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75903#75903 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Chris - Is there a tutorial of some sort that would cover the basic steps to begin building a database in VPB using GeoTiff elevation and imagery data for the input? I've downloaded and compiled VPB (MS Windows), but since it's mainly command-line driven, it's not all that intuitive. Also, most of what I've found online deals with modifying an existing database (that already has an .osgb master file). Any help/tips/tricks would be greatly appreciated! Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75900#75900 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
I'd considered VPB previously, but now it looks like it may be the most practical solution to meet our needs. Wish me luck, and thanks again Chris! Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75897#75897 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Convert .earth file to .osg format
Chris - Thanks for the answer. I do understand the nuts & bolts of the OSG architecture, but was looking for a way to further streamline loading of a very large quantity of GIS imagery and elevation data that are referenced within the .earth file (over 4,000 images and close to 1,000 elev files). They are all GeoTiffs, and I've already run the compression tools (GDAL) to reduce the size of the imagery to increase performance/reduce load time. Given its size, it's likely that the .earth file is going to be the best/simplest option overall. On a side note, I'm seeing the borders around all of the tiles when I view this terrain database in osgearth_viewer, and I'm not sure how to eliminate them. They are all very fine black lines, and I'm sure the georeferencing for each tile/GEOTiff is correct. Hopefully there's a way to remove them through a setting in the .earth file, but I've been unsuccessful so far. ... Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75879#75879 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Convert .earth file to .osg format
Hope someone can help with this: I need to convert an earth file to the .osg format. I've not found any solid info yet as to how this can be done, or if it can be done at all. The 3rd party program this is for can load .osg or .ive GIS maps. I've tried osgconv, and it creates a new file with the .osg extension, but it is a zero-byte file (no error messages are generated). Many thanks in advance! Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75875#75875 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org