Re: [osg-users] Slightly OT: coordinate system use for globe sized app.

2007-07-03 Thread Robert Osfield

Hi Chris,

On 7/3/07, Dorosky, Christopher G [EMAIL PROTECTED] wrote:

I need to pick a new coordinate system to expand my app to a single world
database, kinda like google earth.

I was thinking of using ECEF as my internal coordinate system.
Anybody have any hints / suggestions as to something better?


When you build an osgdem database with the --geocentric option it
builds the database in Earth Center Earth Fixed (ECEF) coordinate
system.  With a geocentric database the problems you have to deal with
are precision and which way is up (for simulator aspect).

To solve the precision issue use a MatrixTransform above each tile
that places the tile from its local origin (0,0,0 at the center of the
tile) to its final position in geocentric space.

To know which way is up decorate the database with a
osg::CoordinateSystemNode and attach an EllipsoidModel to it describe
the shape of the earth.  Manipulators like Drive, Flight and
TerrainManipulators all use the CoordinateSystemNode to know which way
is up and behave accoridingly.

Robert.
___
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


[osg-users] Slightly OT: coordinate system use for globe sized app.

2007-07-02 Thread Dorosky, Christopher G
Hi all,
 
I need to pick a new coordinate system to expand my app to a single
world database, kinda like google earth.
 
I was thinking of using ECEF as my internal coordinate system.
Anybody have any hints / suggestions as to something better?
 
Chris
___
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/