[osg-users] How could i zoomin/out by mouse?

zhu liangxiong osgforum at tevs.eu
Wed Mar 11 02:02:15 PDT 2009


i get a example to roam about in the scene. but it only support move left/right/forward/backward by keyboard and rotate by mouse.

my client is familiar with 2D gis software,so he want to zoom in/out by mouse like what he does in a 2D scene. 

he wants to drag a rectangle box in the screen and then the software zoom In the view to that area. and for zoom out,he also wants to drag a rectangle box, and then the view will be zoom out as the ratio of the size of rectangle box divided the size of the view(window).

i am a beginner in 3D and OSG so that i am not sure whether it is possible .
if possible,how can i do it?

hope i have explain what i want. AHa
appreciate for any comments!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8211#8211








More information about the osg-users mailing list