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

2012-03-07 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
OSG uses z-up...

-Shayne

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ethan
Fahy
Sent: Wednesday, March 07, 2012 9:08 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] [vpb] Placing an object on a UTM file
generatedwith osgdem

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.or
g
___
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 generatedwith osgdem

2011-10-12 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
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

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ethan
Fahy
Sent: Wednesday, October 12, 2011 9:53 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] [vpb] Placing an object on a UTM file
generatedwith osgdem

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.or
g
___
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 generatedwith osgdem

2011-10-12 Thread Chris 'Xenon' Hanson
On 10/12/2011 10:12 AM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC 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.

  Yes. And (I think I've already mentioned this) make sure you calculate your 
static
up-vector for the object. Technically you need to recalculate this anytime the 
object
moves, but it varies so slowly that unless you move far it's not a big deal.

-- 
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