Re: [osg-users] Overriding the mouse pan up/down
"Adrian Jelffs" writes: > Hi, > > When I pan left and right with my mouse the scene moves left and > right. However, when I try to pan up and down the scene zooms in and > out. How can I change this so that the using the mouse to in an > up/down direction causes a pan in the up/down direction? Hi Adrian, it all comes down to inherit from your keyboard/mouse controller (Graphics Adapter, GA in OSG) and overwrite the parts you want to change. In your case, your GA is likely inheriting from OrbitManipulator, see src/osgGA/OrbitManipulator::handleMouseWheel Please have also a look to the osghangglide example, which has another custom manipulator use case. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Overriding the mouse pan up/down
Hi, When I pan left and right with my mouse the scene moves left and right. However, when I try to pan up and down the scene zooms in and out. How can I change this so that the using the mouse to in an up/down direction causes a pan in the up/down direction? Thank you! Cheers, Adrian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72987#72987 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Copy a region of an image x,y,w,h / s,t,r
Hi, Okay I found this in the docs int s () const Width of image. int t () const Height of image. int r () const Depth of image. However, the word Depth refers me to an osg class, which is like an enum / util thing or a state attribute of sorts. How can I specify x,y,w,h instead? Thank you! Cheers, Johny -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72986#72986 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Copy a region of an image x,y,w,h / s,t,r
Hi, I want to load an image and then cut a region of that loaded image (1) and turn it into another image (2). I don't understand the s_offset, t_offset and r_offset convention. Can you explain me what that is? I've tried to Google it. tl;dr...I think copySubImage is what I want, but I don't understand the parameters. Thank you! Cheers, Johny -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72985#72985 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org