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

2018-02-27 Thread Alberto Luaces
"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?

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

2018-02-27 Thread Adrian Jelffs
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

Re: [osg-users] Copy a region of an image x,y,w,h / s,t,r

2018-02-27 Thread Johny Canes
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

[osg-users] Copy a region of an image x,y,w,h / s,t,r

2018-02-27 Thread Johny Canes
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