Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2012-03-07 Thread Ethan Fahy
So I've been successfully placing objects using the methods in this thread for 
geocentric terrains, but now I need to start using UTM terrains so I have to 
rethink some of this object placement code.  Before I was able to get my 
local-to-world matrix by using 
ellipsoid::computerLocalToWorldTransformFromLatLonHeight, but with UTM I can't 
use the ellipsoid model from my terrain's coordinatesystemnode.  I am aware of 
the osg::computeLocalToWorld function but I'm not sure how to correctly 
implement this.  Any tips on this?  Thanks.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46085#46085





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2012-03-07 Thread Glenn Waldron
If you are placing objects on a UTM terrain using UTM coords, then the
localToWorld matrix is a simple osg::Matrix::translate(x,y,z). If you're
trying to use lat/long coords, you need to reproject then to UTM before
creating this matrix. PROJ4 is the library for this, or something with
PROJ4 wrappers like GDAL/OGR or osgEarth.

Ideally the CoordinateSystemNode will encode the UTM information (like the
proj4 initialization string), but I don't know whether it does.

Glenn Waldron / @glennwaldron
On Mar 7, 2012 8:57 AM, Ethan Fahy ethanf...@gmail.com wrote:

 So I've been successfully placing objects using the methods in this thread
 for geocentric terrains, but now I need to start using UTM terrains so I
 have to rethink some of this object placement code.  Before I was able to
 get my local-to-world matrix by using
 ellipsoid::computerLocalToWorldTransformFromLatLonHeight, but with UTM I
 can't use the ellipsoid model from my terrain's coordinatesystemnode.  I am
 aware of the osg::computeLocalToWorld function but I'm not sure how to
 correctly implement this.  Any tips on this?  Thanks.

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=46085#46085





 ___
 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] [vpb] Placing an object on a UTM file generated with osgdem

2012-03-07 Thread Ethan Fahy
Thanks Glenn that worked like a charm.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46088#46088





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2012-03-07 Thread Ethan Fahy
For the record, it looks like the camera up vector when using an 
osgdem-generated terrain with UTM coordinates should be (0,0,1) as opposed to 
the (0,1,0) that is often seen.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46090#46090





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-12-13 Thread Christiansen, Brad
Hi,

I do something similar to what I think you want to do.
To calcluate the rotation to be applied I use osg Matrix method 
'makeRotate(Vec3 from, Vec4 to)'. For the from I use the up axis of the model 
(in your case +ve x) and for the to I use the local up provided by the 
Ellipsoid used for the terrain.

Cheers,
Brad

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ethan Fahy
Sent: Monday, 12 December 2011 11:38 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] [vpb] Placing an object on a UTM file generated with 
osgdem

Object rotation is the last piece of this puzzle.  When on object is placed on 
a geocentric terrain using the methods outlined in this thread, the object 
always appears to be oriented correctly upwards with respect to the center of 
the earth.  However I'm not sure how it is being oriented with respect to its 
rotation.  Does anyone have any insight into this?  For example if I know that 
my object's internal coordinate system specifies that positive x is north and 
positive y is west and I place that object on an arbitrary WGS84, geocentric 
terrain, how will I know how to rotate the object to line up the north 
orientation?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44344#44344





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


-
DISCLAIMER: This e-mail transmission and any documents, files and 
previous e-mail messages attached to it are private and confidential.  
They may contain proprietary or copyright material or information that 
is subject to legal professional privilege.  They are for the use of 
the intended recipient only.  Any unauthorised viewing, use, disclosure, 
copying, alteration, storage or distribution of, or reliance on, this 
message is strictly prohibited.  No part may be reproduced, adapted or 
transmitted without the written permission of the owner.  If you have 
received this transmission in error, or are not an authorised recipient, 
please immediately notify the sender by return email, delete this 
message and all copies from your e-mail system, and destroy any printed 
copies.  Receipt by anyone other than the intended recipient should not 
be deemed a waiver of any privilege or protection.  Thales Australia 
does not warrant or represent that this e-mail or any documents, files 
and previous e-mail messages attached are error or virus free.  

-

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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-12-12 Thread Ethan Fahy
Object rotation is the last piece of this puzzle.  When on object is placed on 
a geocentric terrain using the methods outlined in this thread, the object 
always appears to be oriented correctly upwards with respect to the center of 
the earth.  However I'm not sure how it is being oriented with respect to its 
rotation.  Does anyone have any insight into this?  For example if I know that 
my object's internal coordinate system specifies that positive x is north and 
positive y is west and I place that object on an arbitrary WGS84, geocentric 
terrain, how will I know how to rotate the object to line up the north 
orientation?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44344#44344





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-12-12 Thread Chris 'Xenon' Hanson
On 12/12/2011 8:37 AM, Ethan Fahy wrote:
 Object rotation is the last piece of this puzzle.  When on object is placed 
 on a geocentric terrain using the methods outlined in this thread, the object 
 always appears to be oriented correctly upwards with respect to the center of 
 the earth.  However I'm not sure how it is being oriented with respect to its 
 rotation.  Does anyone have any insight into this?  For example if I know 
 that my object's internal coordinate system specifies that positive x is 
 north and positive y is west and I place that object on an arbitrary WGS84, 
 geocentric terrain, how will I know how to rotate the object to line up the 
 north orientation?


  Just try it. Make an object that points out the X Y and Z local axes 
graphically and
stick it in using the EllispoidModel to orient it to the local ground's 
upvector and such.
It will show you what the orientation ended up like, and then you can see what 
additional
rotations might be needed to get what you expect. I can't recall off the top of 
my head
which object local axis ends up pointed north.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-10-12 Thread Ethan Fahy
I got everything working but have one more question:

If the units of the object I am attaching to my terrain are in meters, and the 
original geotiffs that I started with before converting them using osgdem were 
also in meters, is any further scaling of the attached object necessary?  I am 
worried that by converting the geotiffs to ive files using the --geocentric 
osgdem flag I may have changed the units of the terrain and may need some sort 
of ellipsoid model-based scaling equation for any objects that I attached to 
the terrain.  Anybody have an answer to this?  Much obliged.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43359#43359





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-10-12 Thread Ethan Fahy

S2LR wrote:
 The --geocentric flag in osgdem builds a round earth database in meters
 with the coordinate system origin being the center of the earth. When
 you place your models on the earth (position and orientation), you'll
 need to keep this in mind. If your models are in meters you should be
 good and no rescaling is needed.
 
 Hopefully this addresses your question.
 
 -Shayne
 
 


This is exactly what I needed to know, thanks so much!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43361#43361





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-15 Thread Ethan Fahy

Chris 'Xenon' Hanson wrote:
 On 9/14/2011 7:55 AM, Ethan Fahy wrote:
 
  To answer my own question, yes, the code snippet that I posted does work 
  and allows me to attach an object to the terrain using lat lon elevation.  
  The next step is to be able to place an object on the terrain by only 
  giving it a lat lot and having it figure out the elevation automatically...
  
 
 http://eckhart.stderr.org/doc/openscenegraph-doc/openscenegraph/classosgSim_1_1HeightAboveTerrain.html
 
 Use that to query the terrain elevation at a given location.
 


Thanks!  Just to document my method for anyone else that stumbles upon this:
I read in a terrain.ive file that was converted using osgdem with the 
--geocentric flag (mandatory step).  In order to gain access to the ellipsoid 
model in the terrain.ive file, I did this:

Code:
osg::CoordinateSystemNode*  terrainTemp = 
dynamic_castosg::CoordinateSystemNode* (terrain);
osg::ref_ptrosg::EllipsoidModel ellipsoid = 
terrainTemp-getEllipsoidModel();




Then I wrote this function that accepts a lat lon in degrees plus the terrain:

Code:
double GetHeightOnTerrain(double lat, double lon, osg::CoordinateSystemNode* 
terrain)
{
double X,Y,Z;
double maxElevation = 10.0;//arbitrarily large number way above terrain 
[meters]
terrain-getEllipsoidModel()-convertLatLongHeightToXYZ(osg::DegreesToRadians(lat),

osg::DegreesToRadians(lon),

maxElevation, X,Y,Z);
double hat = 
osgSim::HeightAboveTerrain::computeHeightAboveTerrain(terrain,osg::Vec3(X,Y,Z), 
-1);
return (maxElevation - hat);
} 



When I want to get a terrain height from a lat lon, I do this:

Code:
//Find Terrain Elevation Based on Lat Lon
float treeLat = 50.0;
float treeLon = 50.0;

// Place Tree on Ellipsoid Model Based on Lat Lon
double treeAltitude = GetHeightOnTerrain(treeLat, treeLon, terrainTemp);
osg::ref_ptrosg::MatrixTransform treePlacer = new 
osg::MatrixTransform();
osg::Matrixd treePosition;

ellipsoid-computeLocalToWorldTransformFromLatLongHeight(osg::DegreesToRadians(treeLat),osg::DegreesToRadians(treeLon),
 treeAltitude, treePosition);
treePlacer-setMatrix(treePosition);  



The treePlacer can be attached to the root alongside the terrain itself, then 
the tree object can be attached to the treePotision as a child in order to 
position the tree on the terrain.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42797#42797





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-15 Thread Ethan Fahy
The next thing I wanted to do after placing a tree on my terrain was to set my 
osgviewer camera to a predefined location to look at my tree.  I was able to 
run through the same steps as my last post to create a new position matrix that 
was a certain height above the terrain.  I extracted the Vec3d from the 
position matrix using:

Code:

osg::Vec3d cameraPositionXZY = cameraPosition.getTrans();
osg:Vec3d cameraCenterXYZ = treePosition.getTrans();



I then used the code:


Code:

viewer.getCameraManipulator()-setHomePosition(cameraPositionXZY,cameraCenterXYZ,???);
viewer.home();



to set the camera to look at my tree from a preset position.

My question is, how can I extract the Up vector (3rd argument labeled ???) 
based on my camera position while in my geocentric reference frame?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42799#42799





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-15 Thread Ethan Fahy
I think I got it:

Code:

osg::Vec3d cameraUp = 
ellipsoid-computeLocalUpVector(cameraPositionXZY.x(),cameraPositionXZY.y(),cameraPositionXZY.z());


then insert the cameraUp as the third argument to setHomePosition.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42801#42801





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-15 Thread Chris 'Xenon' Hanson
On 9/15/2011 8:52 AM, Ethan Fahy wrote:
 My question is, how can I extract the Up vector (3rd argument labeled ???) 
 based on my camera position while in my geocentric reference frame?


http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00217.html#36e58965115c04aaff366c984c2eab40

  Which actually just normalizes the XYZ passed to it, but best to use the 
method in case
it ever gets more sophisticated.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-14 Thread Ethan Fahy

Chris 'Xenon' Hanson wrote:
 On 9/13/2011 12:44 PM, Ethan Fahy wrote:
 
  Now I just need to find a forum post I saw that shows how to place an 
  object on the terrain based on an  lat/lot...
  
 
 http://forum.openscenegraph.org/viewtopic.php?t=6734
 


After reading those postings it looks like the relevant part to my case would 
be the following:

Code:

This is how you would place your model...

osg::Matrixd position;
ellipsoid-computeLocalToWorldTransformFromLatLongHeight(osg::DegreesToRadia
ns(lat),
osg::DegreesToRadians(lon), altitude, position);
transform-setMatrix(position);

where transform is an osg::MatrixTransform node that has your model as a
child node.

The X,Y,Z geocentric Cartesian coordinates from the lat,lon,alt can be
extracted by:

osg::Vec3d pos = position.getTrans(); 



I'm a little unclear on the full implementation of this though.  Do I wrap that 
code up into something like this after reading in both the terrain and a tree 
for example:


Code:

osg::ref_ptrosg::EllipsoidModel ellipsoid = new osg::EllipsoidModel();
osg::ref_ptrosg::MatrixTransform transform = new 
osg::MatrixTransform();
float lat = 50.0;
float lon = 50.0;
float altitude = 1000.0;
osg::Matrixd position;

ellipsoid-computeLocalToWorldTransformFromLatLongHeight(osg::DegreesToRadians(lat),osg::DegreesToRadians(lon),
 altitude, position);
transform-setMatrix(position);

osg::ref_ptrosg::Group root = new osg::Group();
root-addChild(terrain);
root-addChild(transform);
transform-addChild(tree);




--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42745#42745





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-14 Thread Ethan Fahy
To answer my own question, yes, the code snippet that I posted does work and 
allows me to attach an object to the terrain using lat lon elevation.  The next 
step is to be able to place an object on the terrain by only giving it a lat 
lot and having it figure out the elevation automatically...

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42753#42753





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-14 Thread Chris 'Xenon' Hanson
  Looks about right to me. Try it and see if it works for you.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-14 Thread Chris 'Xenon' Hanson
On 9/14/2011 7:55 AM, Ethan Fahy wrote:
 To answer my own question, yes, the code snippet that I posted does work and 
 allows me to attach an object to the terrain using lat lon elevation.  The 
 next step is to be able to place an object on the terrain by only giving it a 
 lat lot and having it figure out the elevation automatically...

http://eckhart.stderr.org/doc/openscenegraph-doc/openscenegraph/classosgSim_1_1HeightAboveTerrain.html

  Use that to query the terrain elevation at a given location.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-13 Thread Ethan Fahy
a gdalinfo on one of my geotiff files yielded:

Coordinate System is:
LOCAL_CS[unnamed,
UNIT[unknown,1]]
Origin = ([removed],[removed])

(There was more to the result but I can't show that part for security reasons)  
I am guessing that this is the source of my problem...

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42686#42686





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-13 Thread Ethan Fahy
I found out that my geotif files were missing the .aux files that contain the 
coordinate system.  I was unable to use the --geocentric option with the tif 
files that were using UTM, but I retrieved a version of the geotiffs that had 
geographic coordinates and was able to successfully create ive files with the 
coordinate system embedded.   :D 

Now I just need to find a forum post I saw that shows how to place an object on 
the terrain based on an  lat/lot...

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42719#42719





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-13 Thread Chris 'Xenon' Hanson
On 9/13/2011 12:44 PM, Ethan Fahy wrote:
 Now I just need to find a forum post I saw that shows how to place an object 
 on the terrain based on an  lat/lot...

http://forum.openscenegraph.org/viewtopic.php?t=6734

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-12 Thread Ethan Fahy
I have looked through all of the forum posts related to this issue and they 
have implicitly but not explicitly told me how to solve my problem, but being 
such a newbie I think I need some explicit help  :-* 

I am starting with two geoTiff files, one dem and one terrain.  I convert to 
ive using the following command line structure:

osgdem -t terrain.GEOTIFF -d dem.GEOTIFF -l 1 -o terrain.ive

I am able to load terrain.ive into my osg application and view it just fine.  I 
then want to be able to add objects (e.g. tree osg files) onto the terrain.  At 
this point I should mention that the geotiff files are in UTM WGS84 format.  I 
have been trying to add a tree onto the terrain with the following osg code:


Code:

/*
Load Scene Components from Files
*/
osg::ref_ptrosg::Node terrain = 
osgDB::readNodeFile(data\\terrain\\terrain.ive);
osg::ref_ptrosg::Node tree = 
osgDB::readNodeFile(data\\tree\\Tree1.osg);


/*
Group Scene Components
*/

/*Tree Transform*/
osg::ref_ptrosg::PositionAttitudeTransform treeXform = new 
osg::PositionAttitudeTransform;
osg::Vec3 treePosit(?,?,?);
treeXform-setPosition( treePosit ); 
osg::Vec3 treeScale(1,1,1);
treeXform-setScale(treeScale);
/*Tree Rotation*/
osg::ref_ptrosg::MatrixTransform treeRotation = new 
osg::MatrixTransform;
const double angle = osg::DegreesToRadians(0.0);
const Vec3d axis(1, 0, 0);
treeRotation-setMatrix(Matrix::rotate(angle, axis));

osg::ref_ptrosg::Group root = new osg::Group();
root-addChild(terrain);//add terrain to root
root-addChild(treeXform);//add translation to root
treeXform-addChild(treeRotation);//add rotation to translation
treeRotation-addChild(tree);//add tree to rotation




My question is whether this osg command / osg code is on track and I simply 
need to figure out appropriate values for my treePosit variable or whether I 
need to take a fundamentally different approach.  I have read about attaching 
objects to geotiffs that were converted using the --geocentric flag, but if I 
add the --geocentric flag I get the following error:
ERROR 1: No PROJ.4 translation for source SRS, coordinate transformation 
initialization has failed.  I have also seen the --TERRAIN flag for osgdem, but 
I definitely don't know if that's what I need.  

I have also looked into using osgEarth, which from what I've read might take 
care of more of this stuff automatically, but I'd rather figure this out using 
VPB/osgdem since I think I'm really close to a solution.  Thanks in advance for 
any help!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42652#42652





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-12 Thread Chris 'Xenon' Hanson
On 9/12/2011 11:19 AM, Ethan Fahy wrote:
 I have looked through all of the forum posts related to this issue and they 
 have implicitly but not explicitly told me how to solve my problem, but being 
 such a newbie I think I need some explicit help  :-* 
 My question is whether this osg command / osg code is on track and I simply 
 need to figure out appropriate values for my treePosit variable or whether I 
 need to take a fundamentally different approach. 

  I think (I may be wrong) that placement this way will not be successful for 
UTM-based
terrain.

  While I think PROJ4 can be convinced to reproject your UTM for you, it's 
probably easier
to use GIS tools to reproject it yourself up front and then feed that to VPB.

  If you don't have the ability to do so, I might be able to help you out.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-12 Thread Ethan Fahy
Chris,

Your offer to help convert my geotiff files is most kind, but unfortunately the 
files themselves are confidential and can't be posted here.  However I can 
request geotiff files in another projection.  When I go to my geotiff source 
and ask for more files, is there a preferred format that I should ask for?  If 
I say WGS84 geocentric will they know what I'm talking about?  I apologize if 
that's a stupid question, I am currently boning up on projection terminology as 
this is pretty far from my area of expertise.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42654#42654





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


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-12 Thread Chris 'Xenon' Hanson
On 9/12/2011 12:23 PM, Ethan Fahy wrote:
 Chris,
 Your offer to help convert my geotiff files is most kind, but unfortunately 
 the files themselves are confidential and can't be posted here.  However I 
 can request geotiff files in another projection.  When I go to my geotiff 
 source and ask for more files, is there a preferred format that I should ask 
 for?  If I say WGS84 geocentric will they know what I'm talking about?  I 
 apologize if that's a stupid question, I am currently boning up on projection 
 terminology as this is pretty far from my area of expertise.

  Geographic WGS84 would be the most common term, in my experience.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-09-12 Thread Ethan Fahy

Chris 'Xenon' Hanson wrote:
 On 9/12/2011 12:23 PM, Ethan Fahy wrote:
 Geographic WGS84 would be the most common term, in my experience.
 


Thanks so much, I'll try to get geographic WGS84 geotiff files and reconvert 
them using osgdem then follow the instructions that I found in other posts 
about how to attach objects correctly.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42656#42656





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