Hi Kim,
Sorry, I should mention that we only work with geocentric models, so I
forgot to consider flat terrain models in the naming:) A world without
elevation is just an Ellipsoid for us. Hence, a new TerrainManipulator
that ignores elevation altogether, would basically be an
"EllipsoidManipulator" for a geocentric world:)
Sorry for creating confusion...
//John
Kim C Bale wrote:
Hi John,
I'm not quite sure I understand the concept of an ellipsoid manipulator.
Do you mean form an bounding ellipse over the ocean surface from which
would be used to do the intersection?
Wouldn't this suffer from strange intersections nearer the edges?
Regards,
Kim.
-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of John
Vidar Larring
Sent: 19 June 2009 14:35
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgOcean : Integration intoexisting
Database/Application
Hi Kim and Adrian,
> As far as I can tell only two of the osgGA manipulators are
compatible
> - Trackball and FlightManipulator. Although you're right the
trackball
> implementation doesn't seem to work correctly, I suspect this is to
do
> with the fact that it doesn't have a node to focus on.
> TerrainManipulator and DriveManipulators aren't compatible because
the
> ocean surface is animated and they try to position themselves by
> intersecting with the surface below them, which in the case of the
> ocean surface, is moving up and down all the time so it creates a
> nasty camera juddering. I had a go at adding them but I simply
> couldn't get them to play nicely.
>
> If you manage to get them working I'd be interested to see how.
Just one idea I'd like to throw out there before I forget. One could
possibly make an EllipsoidManipulator quite easily. It would essentially
behave like a TerrainManipulator except that it would not take elevation
into account; just doing simple ray-ellipoid intersection testing
instead.
Even better, if there is a way to tell whether intersecting geometry is
static or dynamic, one could theoretically implement a manipulator which
behaves like the TerrainManipulator over land, and like an Ellipsoid
manipulator over the ocean.
Best regards,
John
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org