Re: [osg-users] Disable the Mouse default event in osg

2010-10-29 Thread Lalit Manchwari
Hi, ... Thanks for reply.. If i comment the manipulator then data is not displaying. I m using code... ... ... lasGeometry-setVertexArray( lasVertices); lasGeometry-setColorArray(colors); lasGeometry-setColorBinding(osg::Geometry::BIND_PER_VERTEX);

Re: [osg-users] Disable the Mouse default event in osg

2010-10-29 Thread Ulrich Hertlein
On 29/10/10 18:30 , Lalit Manchwari wrote: ... Thanks for reply.. If i comment the manipulator then data is not displaying. I m using code... That's because your camera isn't positioned properly which means it's not actually looking at the object. You have to setup the camera view matrix

Re: [osg-users] Disable the Mouse default event in osg

2010-10-29 Thread Mourad Boufarguine
Hi Lalit, If i comment the manipulator then data is not displaying. When you don't use a camera manipulator, you should take care of the the view matrix of the viewer. You can use something like viewer.getCamera()-setViewMatrixAsLookAt(eye, center, up); For more information about this

[osg-users] Disable the Mouse default event in osg

2010-10-28 Thread Lalit Manchwari
Hi, ... I am new in OpenSceneGraph. I want to disable the mouse event and use these event (Rotate, Zoom, Pan ) in separate buttons. Thank you! Cheers, Lalit Manchwari -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33198#33198

Re: [osg-users] Disable the Mouse default event in osg

2010-10-28 Thread Ulrich Hertlein
Hi, On 29/10/10 3:50 , Lalit Manchwari wrote: ... I am new in OpenSceneGraph. I want to disable the mouse event and use these event (Rotate, Zoom, Pan ) in separate buttons. What do you mean 'disable the mouse event'? If you don't attach a manipulator then no events will be processed. You