Hi Cory,

If you set the value of interpolateTerrain=false in the call to
readHeightField in Dataset.cpp, things will hopefully work out for you.
I've looked through the code and I can't see anything glaringly obvious
as to why files with embedded geospatial coordinates work fine but it
inverts terrain when specifying the geotransform on the command line.

Jason

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason
Beverage
Sent: Monday, January 15, 2007 8:39 P
To: osg users
Subject: RE: [osg-users] OSG DEM Question

Hi Cory,

Does your dem file have geospatial coordinates associated with it?  I
think there was a problem with specifying the geotransform on the
command line using the -xx -yy switches rather than embedding the
information in the input file but it never got resolved.  I'll take a
quick look at it and see if I can figure anything out and get back to
you.

Jason


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Weber, Cory C.
Sent: Mon 1/15/2007 5:45 PM
To: osg users
Subject: [osg-users] OSG DEM Question
 
osgdem question.... I'm sure this has been asked 10,000,000 times; I
have a tiff 32bit grayscale image that I'm using as the DEM and a 24 bit
tiff that I'm using for the texture, but when I run osgdem it creates
the terrain vertically inverse of the texture... what am I doing wrong?
(they match in my image viewer).

 

I'm using:

osgdem --xx 9.183 --yy 9.177 -d
t:\visualization\Cory_data_070112\Area1_DEM.tif -v 2.5 -t
t:\Visualization\Cory_data_0701012\Area1_img.tif --PagedLOD -l 7 -o
t:\Visualization\GraphicsData\Terrain\Area1Color_071501\AreaColor_071501
.ive

 

 

Cory C Weber
Visual Spatial Technician
Environmental Science Division 
Argonne National Laboratory
9700 South Cass Avenue
Argonne, IL 60439
[EMAIL PROTECTED]
630-252-7498 

 




_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to