Dear Nick thanks a lot for your code snippet. I appreciate it. I am after
custom mouse event handling, I dont want TrackBallManipulator as I am more
interested to manage events from Qt.
On Thu, May 9, 2013 at 2:35 PM, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> wrote:
> Hi Sujan,
>
> vi
Hi Sujan,
viewerWid->getView()->getCamera()->setViewMatrix(::osg::Matrix::translate(1000.5,
0.0, 0.0));
this code is wrong. Also, you have attached TrackballCameraManipulator so
it will fight you against the translation you do.
If you want to translate an object in the scene, then use
osg::Matrix
I am trying to translate my objects in scene, when the right mouse button
is pressed. But it is not moving. Pls check the snippet.
[code]
//CSGraphicsView
//.h
class CSGraphicsView : public osgQt::GLWidget
{
Q_OBJECT
public:
CSGraphicsView(QWidget* parent=0);
~CSGraphicsView();
virtual void mouseP
3 matches
Mail list logo