Re: [osg-users] osgDEM usage...

2008-06-03 Thread Robert Osfield
On Mon, Jun 2, 2008 at 11:14 PM, Tueller,  Shayne R Civ USAF AFMC 519
SMXS/MXDEC [EMAIL PROTECTED] wrote:
 Robert (or anyone else),

 Can you enlighten me on the --TERRAIN, --LOD, and --PagedLOD options in
 osgdem?

 What are the benefits or drawbacks for using these? Which is the best
 combination to use for performance, quality, etc.?

--terrain tells the build to use osgTerain::TerrainTile for terrain
rather than using osg::Geometry.  Have a search through the last few
months archives on this topic, I've written plenty.

--LOD vs --PagedLOD, weill this is just whether it builds a single
database containing osg::LOD, or a paged database of many separate
tiles using osg::PagedLOD.  Just use the default which is --PagedLOD
as this is really what VPB is about, the --LOD is really just there
for testing purposes.

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


Re: [osg-users] osgDEM usage...

2008-06-02 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Robert,

The files were originally PNG files that I converted per the instructions on
the wiki to the .tif format. Whether or not that makes them GeoTiffs I don't
know. How can I convert the files to GeoTiffs?

-Shayne

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Friday, May 30, 2008 2:14 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgDEM usage...

Hi Shayne,

The wiki instructions was written in the very early days of the
development of osgdem, and is awaiting a rewrite.  Today I wouldn't
recommend using --xx definition of the coordinate system, you are
better off using geospatial imagery/dems.  Are you files GeoTiff's?
If so then dispense with the --xx command lines and just use:

osgdem -t n39_texture.tif -d n39_height_.tif -l 4 -o myterrain/myterrain.ive

The coordinates will sourced entirely from the .tif files, there will
also be no need to tangle with the -v vertical scaling command line
parameter.  The VPB version of osgdem also will created nested
directories for you hence the myterrain/ directory above.  Also
temporarily archive support has been removed.

Robert.


On Thu, May 29, 2008 at 11:46 PM, Tueller,  Shayne R Civ USAF AFMC 519
SMXS/MXDEC [EMAIL PROTECTED] wrote:
 All,



 I've made an attempt in generating a database using my own height field
and
 texture per the instructions located at
 http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/osgdem.



 So far, I have not had any luck in getting the height field to display
 correctly. The texture is present just fine but the terrain is either
 completely flat or is uncorrelated with the texture. This is the command
I'm
 issuing to generate the terrain.



 osgdem --xx 90 --yy 90 -t n39_texture.tif --xx 90 --yy 90 -d
n39_height_.tif
 -l 4 -v 0.1 -o myterrain.ive -a myterrain.osga

 The height field tif file comes from a 1 degree by 1 degree of DTED that
is
 3 arc second level 1, hence the reason for my spacing of 90 meters. If I
 increase the -v option scaling factor from 0.1 to 50, the terrain height
 shows up but it is totally uncorrelated with the texture.



 If anyone has any input on what I'm doing wrong or missing, it would be
most
 appreciated if you could point it out.



 -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] osgDEM usage...

2008-06-02 Thread Robert Osfield
Hi Shayne,

On Mon, Jun 2, 2008 at 5:20 PM, Tueller,  Shayne R Civ USAF AFMC 519
SMXS/MXDEC [EMAIL PROTECTED] wrote:
 The files were originally PNG files that I converted per the instructions on
 the wiki to the .tif format. Whether or not that makes them GeoTiffs I don't
 know. How can I convert the files to GeoTiffs?

If you want to do any geospatial work then you really need to
familiarise yourself with tools like gdal, they have plenty of docs an
links on their project website.  VirtualPlanetBuilder uses GDAL
internally, so what you learn about gdal also will help you understand
about what VPB can handle.

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


Re: [osg-users] osgDEM usage...

2008-06-02 Thread ümit uzun

Hi Shayne;

I think You should use image which has a georeferenced data. So if you download 
images from osgdem wiki instroductions, it is normally getting wrong results. I 
will fix the osgdem wiki page in a few days. The instructions belongs for 
previous version of osgdem.

If you want to create terrain database with hight relief, first of all you 
should an image which has a georeferenced data ( for example you can download 
geospatial images from http://seamless.usgs.gov/ and dem files from 
http://geoengine.nga.mil/geospatial/SW_TOOLS/NIMAMUSE/webinter/rast_roam.html ) 
or you have to learn using gdal ( http://www.gdal.org/ ), especially gdal_vrt ( 
http://www.gdal.org/gdal_vrttut.html ) to make add georeference data to any 
image. 

For example you downloaded x.tif and its releated y.dem data from given web 
pages. Then you can use this command;

osgdem -t x.tif -d y.dem -v 5.0 -so builde.source -o database/sample_terrain.ive
osgdem -s build.source -l 4

Then you should have an terrain with height relief. This can be a bit complex 
but you should search about osgdem from mail-list ( 
http://dir.gmane.org/gmane.comp.graphics.openscenegraph.user/ ) and always try 
to use georeferenced images.

Good Luck;


ÜMİT UZUN


 Date: Mon, 2 Jun 2008 19:54:25 +0100
 From: [EMAIL PROTECTED]
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] osgDEM usage...
 
 Hi Shayne,
 
 On Mon, Jun 2, 2008 at 5:20 PM, Tueller,  Shayne R Civ USAF AFMC 519
 SMXS/MXDEC  wrote:
 The files were originally PNG files that I converted per the instructions on
 the wiki to the .tif format. Whether or not that makes them GeoTiffs I don't
 know. How can I convert the files to GeoTiffs?
 
 If you want to do any geospatial work then you really need to
 familiarise yourself with tools like gdal, they have plenty of docs an
 links on their project website.  VirtualPlanetBuilder uses GDAL
 internally, so what you learn about gdal also will help you understand
 about what VPB can handle.
 
 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_
Windows Live Spaces – hayatınız, Alanınız. Daha fazlasını öğrenmek için buraya 
tıklayın.
http://get.live.com/spaces/overview
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgDEM usage...

2008-06-02 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Thanks to all who have replied to my inquiries thus far regarding osgdem
usage. Your input is much appreciated. 

I will take what's been suggested and make some more progress. I'm sure I'll
have more questions...

Regards,
-Shayne

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ümit uzun
Sent: Monday, June 02, 2008 2:18 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgDEM usage...


Hi Shayne;

I think You should use image which has a georeferenced data. So if you
download images from osgdem wiki instroductions, it is normally getting
wrong results. I will fix the osgdem wiki page in a few days. The
instructions belongs for previous version of osgdem.

If you want to create terrain database with hight relief, first of all you
should an image which has a georeferenced data ( for example you can
download geospatial images from http://seamless.usgs.gov/ and dem files from
http://geoengine.nga.mil/geospatial/SW_TOOLS/NIMAMUSE/webinter/rast_roam.htm
l ) or you have to learn using gdal ( http://www.gdal.org/ ), especially
gdal_vrt ( http://www.gdal.org/gdal_vrttut.html ) to make add georeference
data to any image. 

For example you downloaded x.tif and its releated y.dem data from given web
pages. Then you can use this command;

osgdem -t x.tif -d y.dem -v 5.0 -so builde.source -o
database/sample_terrain.ive
osgdem -s build.source -l 4

Then you should have an terrain with height relief. This can be a bit
complex but you should search about osgdem from mail-list (
http://dir.gmane.org/gmane.comp.graphics.openscenegraph.user/ ) and always
try to use georeferenced images.

Good Luck;


ÜMİT UZUN


 Date: Mon, 2 Jun 2008 19:54:25 +0100
 From: [EMAIL PROTECTED]
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] osgDEM usage...
 
 Hi Shayne,
 
 On Mon, Jun 2, 2008 at 5:20 PM, Tueller,  Shayne R Civ USAF AFMC 519
 SMXS/MXDEC  wrote:
 The files were originally PNG files that I converted per the instructions
on
 the wiki to the .tif format. Whether or not that makes them GeoTiffs I
don't
 know. How can I convert the files to GeoTiffs?
 
 If you want to do any geospatial work then you really need to
 familiarise yourself with tools like gdal, they have plenty of docs an
 links on their project website.  VirtualPlanetBuilder uses GDAL
 internally, so what you learn about gdal also will help you understand
 about what VPB can handle.
 
 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_
Windows Live Spaces - hayatınız, Alanınız. Daha fazlasını öğrenmek için
buraya tıklayın.
http://get.live.com/spaces/overview
___
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] osgDEM usage...

2008-06-02 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Robert (or anyone else),

Can you enlighten me on the --TERRAIN, --LOD, and --PagedLOD options in
osgdem?

What are the benefits or drawbacks for using these? Which is the best
combination to use for performance, quality, etc.?

Thanks,
-Shayne

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Monday, June 02, 2008 12:54 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgDEM usage...

Hi Shayne,

On Mon, Jun 2, 2008 at 5:20 PM, Tueller,  Shayne R Civ USAF AFMC 519
SMXS/MXDEC [EMAIL PROTECTED] wrote:
 The files were originally PNG files that I converted per the instructions
on
 the wiki to the .tif format. Whether or not that makes them GeoTiffs I
don't
 know. How can I convert the files to GeoTiffs?

If you want to do any geospatial work then you really need to
familiarise yourself with tools like gdal, they have plenty of docs an
links on their project website.  VirtualPlanetBuilder uses GDAL
internally, so what you learn about gdal also will help you understand
about what VPB can handle.

Robert.
___
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] osgDEM usage...

2008-05-31 Thread eheft
Shayne,

I got my data working by using gimp to flip the y axis on my image.

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


[osg-users] osgDEM usage...

2008-05-29 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
All,

 

I've made an attempt in generating a database using my own height field and
texture per the instructions located at
http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/osgdem.

 

So far, I have not had any luck in getting the height field to display
correctly. The texture is present just fine but the terrain is either
completely flat or is uncorrelated with the texture. This is the command I'm
issuing to generate the terrain.

 

osgdem --xx 90 --yy 90 -t n39_texture.tif --xx 90 --yy 90 -d n39_height_.tif
-l 4 -v 0.1 -o myterrain.ive -a myterrain.osga

The height field tif file comes from a 1 degree by 1 degree of DTED that is
3 arc second level 1, hence the reason for my spacing of 90 meters. If I
increase the -v option scaling factor from 0.1 to 50, the terrain height
shows up but it is totally uncorrelated with the texture.

 

If anyone has any input on what I'm doing wrong or missing, it would be most
appreciated if you could point it out.

 

-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