Re: [osg-users] osgTerrain and osgDEM...
Hi Shayne, osgTerrain functionality has evolve alot of the last six months, so not much is documented about it yet. VirtualPlanetBuilder has an option for building databases using standard nodes like osg::MatrixTransform/osg::Geode/osg::Geometry (which is the original and still default option) and now the ability to create osgTerrain::TerrainTile based terrain - you access this via the --terrain option. When you use VPB to generate databases you just load the topmost tile of the database and the viewer and supporting classes will work out what to NodeKits to load and what threads to start up, you won't actually need to know the details about the what form the database itself takes, whether its a convetional geometry based database or a osgTerrain one. There are advatanges with a osgTerrain based database though - they are much faster to generate in VPB, they create small tiles for a given resolution, the sample density of tiles can be altered at runtime. The osgmultitexturecontrol example provides an example of controlling sample density by decorating the loaded database with osgTerrain::Terrain node and controlling its parameters. Robert. On Thu, May 22, 2008 at 10:40 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL PROTECTED] wrote: Hello, I'm new to OSG and I'm looking at the osgTerrain nodekit for terrain rendering. My question is, is how is this used with Virtual Planet builder (osgdem) for rendering terrain? Is VPB osgdem used to construct the terrain database and then osgTerrain used to traverse the terrain in OSG? Is there a Wiki available on how to use osgTerrain? I've looked at the osgTerrain example packaged with OSG but I can't get my head around how it is used. Any input would be most appreciated. -Shayne ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgTerrain and osgDEM...
Hi, I think for a start, do not worry too much about osgterrain classes and the osgterrain example. Create a simple terrain using osgdem (search the list for command lines) and load it using osgviewer. The viewer loads terrain just as it loads normal objects. It constructs a Database Pager thread the selectively reads tiles from the database (created by osgdem) depending on what is inside the camera field of view. If you switch on wireframe mode you can see how tiles are paged in. In this case, everything is done for you. You only need to worry about specifics of how the loading works if you want to manage things yourself or do some other special terrain handling. jp Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC wrote: Hello, I’m new to OSG and I’m looking at the osgTerrain nodekit for terrain rendering. My question is, is how is this used with Virtual Planet builder (osgdem) for rendering terrain? Is VPB osgdem used to construct the terrain database and then osgTerrain used to traverse the terrain in OSG? Is there a Wiki available on how to use osgTerrain? I’ve looked at the osgTerrain example packaged with OSG but I can’t get my head around how it is used. Any input would be most appreciated. -Shayne ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgTerrain and osgDEM...
Robert, Thanks much for the info. I will forge ahead with VPB using the --terrain option and see where things go from there. On a related note, I'm seeing an error when I run through the osgdem step guide for building a terrain database. After I run the command: osgdem --xx 10 --yy 10 -t ps_texture_16k.tif \ --xx 10 --yy 10 -d ps_height_16k.tif \ -l 8 -v 0.1 -o puget.ive -a pegout.osga I get the following error messages: ERROR 1: ps_height_16k.tif: No space to read TIFF directory ERROR 1: TIFFReadDirectory: Failed to read directory at offset 537067676 Any idea why I'm getting these errors? I've followed the instructions to the letter... -Shayne -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Friday, May 23, 2008 2:05 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osgTerrain and osgDEM... Hi Shayne, osgTerrain functionality has evolve alot of the last six months, so not much is documented about it yet. VirtualPlanetBuilder has an option for building databases using standard nodes like osg::MatrixTransform/osg::Geode/osg::Geometry (which is the original and still default option) and now the ability to create osgTerrain::TerrainTile based terrain - you access this via the --terrain option. When you use VPB to generate databases you just load the topmost tile of the database and the viewer and supporting classes will work out what to NodeKits to load and what threads to start up, you won't actually need to know the details about the what form the database itself takes, whether its a convetional geometry based database or a osgTerrain one. There are advatanges with a osgTerrain based database though - they are much faster to generate in VPB, they create small tiles for a given resolution, the sample density of tiles can be altered at runtime. The osgmultitexturecontrol example provides an example of controlling sample density by decorating the loaded database with osgTerrain::Terrain node and controlling its parameters. Robert. On Thu, May 22, 2008 at 10:40 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL PROTECTED] wrote: Hello, I'm new to OSG and I'm looking at the osgTerrain nodekit for terrain rendering. My question is, is how is this used with Virtual Planet builder (osgdem) for rendering terrain? Is VPB osgdem used to construct the terrain database and then osgTerrain used to traverse the terrain in OSG? Is there a Wiki available on how to use osgTerrain? I've looked at the osgTerrain example packaged with OSG but I can't get my head around how it is used. Any input would be most appreciated. -Shayne ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgTerrain and osgDEM...
Its a a GDAL error. Try gdalinfo of the problem file. On Fri, May 23, 2008 at 4:11 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL PROTECTED] wrote: Robert, Thanks much for the info. I will forge ahead with VPB using the --terrain option and see where things go from there. On a related note, I'm seeing an error when I run through the osgdem step guide for building a terrain database. After I run the command: osgdem --xx 10 --yy 10 -t ps_texture_16k.tif \ --xx 10 --yy 10 -d ps_height_16k.tif \ -l 8 -v 0.1 -o puget.ive -a pegout.osga I get the following error messages: ERROR 1: ps_height_16k.tif: No space to read TIFF directory ERROR 1: TIFFReadDirectory: Failed to read directory at offset 537067676 Any idea why I'm getting these errors? I've followed the instructions to the letter... -Shayne -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Friday, May 23, 2008 2:05 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osgTerrain and osgDEM... Hi Shayne, osgTerrain functionality has evolve alot of the last six months, so not much is documented about it yet. VirtualPlanetBuilder has an option for building databases using standard nodes like osg::MatrixTransform/osg::Geode/osg::Geometry (which is the original and still default option) and now the ability to create osgTerrain::TerrainTile based terrain - you access this via the --terrain option. When you use VPB to generate databases you just load the topmost tile of the database and the viewer and supporting classes will work out what to NodeKits to load and what threads to start up, you won't actually need to know the details about the what form the database itself takes, whether its a convetional geometry based database or a osgTerrain one. There are advatanges with a osgTerrain based database though - they are much faster to generate in VPB, they create small tiles for a given resolution, the sample density of tiles can be altered at runtime. The osgmultitexturecontrol example provides an example of controlling sample density by decorating the loaded database with osgTerrain::Terrain node and controlling its parameters. Robert. On Thu, May 22, 2008 at 10:40 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL PROTECTED] wrote: Hello, I'm new to OSG and I'm looking at the osgTerrain nodekit for terrain rendering. My question is, is how is this used with Virtual Planet builder (osgdem) for rendering terrain? Is VPB osgdem used to construct the terrain database and then osgTerrain used to traverse the terrain in OSG? Is there a Wiki available on how to use osgTerrain? I've looked at the osgTerrain example packaged with OSG but I can't get my head around how it is used. Any input would be most appreciated. -Shayne ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgTerrain and osgDEM...
I ran gdalinfo on ps_height_16k.tif and I get the following: ERROR 1: ps_height_16k.tif: No space to read TIFF directory ERROR 1: TIFFReadDirectory: Failed to read directory at offset 537067676 Driver: GTiff/GeoTIFF Files: ps_height_16k.tif Size is 16385, 16385 Coordinate System is `' Image Structure Metadata: INTERLEAVED=BAND Corner Coorinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 16385.0) Upper Right(16385.0, 0.0) Lower Right(16385.0, 16385.0) Center (8192.5, 8192.5) Band 1 Block=16385x1 Type=UInt16, ColorInterp=Gray Any input on this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Friday, May 23, 2008 9:13 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osgTerrain and osgDEM... Its a a GDAL error. Try gdalinfo of the problem file. On Fri, May 23, 2008 at 4:11 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL PROTECTED] wrote: Robert, Thanks much for the info. I will forge ahead with VPB using the --terrain option and see where things go from there. On a related note, I'm seeing an error when I run through the osgdem step guide for building a terrain database. After I run the command: osgdem --xx 10 --yy 10 -t ps_texture_16k.tif \ --xx 10 --yy 10 -d ps_height_16k.tif \ -l 8 -v 0.1 -o puget.ive -a pegout.osga I get the following error messages: ERROR 1: ps_height_16k.tif: No space to read TIFF directory ERROR 1: TIFFReadDirectory: Failed to read directory at offset 537067676 Any idea why I'm getting these errors? I've followed the instructions to the letter... -Shayne -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Friday, May 23, 2008 2:05 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osgTerrain and osgDEM... Hi Shayne, osgTerrain functionality has evolve alot of the last six months, so not much is documented about it yet. VirtualPlanetBuilder has an option for building databases using standard nodes like osg::MatrixTransform/osg::Geode/osg::Geometry (which is the original and still default option) and now the ability to create osgTerrain::TerrainTile based terrain - you access this via the --terrain option. When you use VPB to generate databases you just load the topmost tile of the database and the viewer and supporting classes will work out what to NodeKits to load and what threads to start up, you won't actually need to know the details about the what form the database itself takes, whether its a convetional geometry based database or a osgTerrain one. There are advatanges with a osgTerrain based database though - they are much faster to generate in VPB, they create small tiles for a given resolution, the sample density of tiles can be altered at runtime. The osgmultitexturecontrol example provides an example of controlling sample density by decorating the loaded database with osgTerrain::Terrain node and controlling its parameters. Robert. On Thu, May 22, 2008 at 10:40 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL PROTECTED] wrote: Hello, I'm new to OSG and I'm looking at the osgTerrain nodekit for terrain rendering. My question is, is how is this used with Virtual Planet builder (osgdem) for rendering terrain? Is VPB osgdem used to construct the terrain database and then osgTerrain used to traverse the terrain in OSG? Is there a Wiki available on how to use osgTerrain? I've looked at the osgTerrain example packaged with OSG but I can't get my head around how it is used. Any input would be most appreciated. -Shayne ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgTerrain and osgDEM...
Hello, I'm new to OSG and I'm looking at the osgTerrain nodekit for terrain rendering. My question is, is how is this used with Virtual Planet builder (osgdem) for rendering terrain? Is VPB osgdem used to construct the terrain database and then osgTerrain used to traverse the terrain in OSG? Is there a Wiki available on how to use osgTerrain? I've looked at the osgTerrain example packaged with OSG but I can't get my head around how it is used. Any input would be most appreciated. -Shayne smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org