[osg-users] Overriding the mouse pan up/down

Adrian Jelffs adrian.jelffs at makai.com
Thu Mar 15 19:16:34 PDT 2018


I think I have figured out what is happening here. The problem is that I am using osgEarth and the mouse up and down movements are linked to the x and y of the earth, a bit like latitude and longitude. So if you look down at the earth from above then the panning works great. However if you zoom in to a panoramic view then the mouse is still hooked up to the x and y, so when you pan up and down it appears to be zooming in and out but really you are moving in the y direction and not the z direction.

I think the only way around this is to capture the mouse events myself and move the scene based on my own math.

If anybody has any ideas about how to capture the mouse events that would be great.



Read this topic online here:

More information about the osg-users mailing list