Hi Joakim,

There is support in the OSG for handling geocentric databases, and
this is what osg::CoordinateSystemNode is about - you decorate the
geocentric database with it and then you can use it to compute
lat/longs as well as work out which way is up.

However, there isn't any code that takes a flat database and curvers
into into geocentric.  You could convert your models across yourself,
or perhaps us a vertex shader to warp the database on the fly.
Personally I'd just process the database so its in geocentric coords
to begin with.   FYI, osgdem/VirtualPlanetBuilder creates geocentric
databases.

Robert.

On 6/26/07, Joakim Simonsson <[EMAIL PROTECTED]> wrote:

Hi,

I have a pretty large terrain model (250000x250000 meters). The terrain is
used for marine simulation. What I am looking for is the effect that makes
objects desapering "bellow" the horizon.

Does osg povide functionality to project my flat terrain model onto an
elepsoid?

I have glanced quickly through the CoordinateSystemNode code. But it seems
that it is just used for making it possible to provide osg with lat/lon
and get the result in xyz. Or has it other purposes aswell?

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

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

Reply via email to