[osg-users] Weirdness with TerrainManipulator

2009-02-25 Thread Brad Huber
I've noticed some weirdness with the TerrainManipulator.  I assume this is a
bug but maybe not?

 

The simplest way to produce this behavior is to run osgviewer and feed it
something.  I've been feeding it a globe of the blue marble data created
using the osgdem tutorial page.  This is the older vpb/osgdem format.  I
assume the behavior is the same with the new stuff.

 

Ok next I have my globe and everything is hunky dory.  Now I zoom in to look
somewhere on the earth surface.  I rotate the camera using left mouse so
that the camera is BELOW the terrain of the point I was looking out.  Now I
zoom out so that the camera comes out the opposite side of the earth.  I'm
now looking at a point directly on the other side of the earth from where I
was looking at a second ago.

 

Now if I try to pan the terrain (middle mouse) things are screwed up and
directions are reversed.  It looks like the math is not able to handle this
type of scenario.

 

I have a recent version of Open Scene Graph (v 2.9.0) from the trunk (about
a week or so old).

 

Thanks

-Brad

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


Re: [osg-users] Weirdness with TerrainManipulator

2009-02-25 Thread Robert Osfield
Hi Brad,

It does kinda sound like you are pushing the manipulator to far,
expecting too much from it.

One could write your own manipulator that is more application specifc
and adds more intelligence about how it should behave when going near
the terrain or looking from the far side of the earth.  The
osgGA::TerrainManipulator can't do too much as it's just so general
purpose - it works for flat terrains and was a whole earth ones.

Robert.

On Wed, Feb 25, 2009 at 8:55 PM, Brad Huber br...@procerusuav.com wrote:
 I’ve noticed some weirdness with the TerrainManipulator.  I assume this is a
 bug but maybe not?



 The simplest way to produce this behavior is to run osgviewer and feed it
 something.  I’ve been feeding it a globe of the blue marble data created
 using the osgdem tutorial page.  This is the older vpb/osgdem format.  I
 assume the behavior is the same with the new stuff.



 Ok next I have my globe and everything is hunky dory.  Now I zoom in to look
 somewhere on the earth surface.  I rotate the camera using left mouse so
 that the camera is BELOW the terrain of the point I was looking out.  Now I
 zoom out so that the camera comes out the opposite side of the earth.  I’m
 now looking at a point directly on the other side of the earth from where I
 was looking at a second ago.



 Now if I try to pan the terrain (middle mouse) things are screwed up and
 directions are reversed.  It looks like the math is not able to handle this
 type of scenario…



 I have a recent version of Open Scene Graph (v 2.9.0) from the trunk (about
 a week or so old).



 Thanks

 -Brad

 ___
 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