[osg-users] osgDEM usage...

Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC Shayne.Tueller at HILL.af.mil
Mon Jun 2 09:20:10 PDT 2008


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: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] 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 <Shayne.Tueller at hill.af.mil> 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6028 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080602/6954cb59/attachment.bin>


More information about the osg-users mailing list