Re: [osg-users] MousepressEvent not able to capture from osg::Viewer by Qt

2013-05-08 Thread Robert Milharcic
On 8.5.2013 7:04, Sujan Dasmahapatra wrote: I am trying to implement a mouse press event with QT and OSG but unable to do it. Pls help. Below is my ViewerWidget class which is derived from QWidget and osg::CompositeViewer..In the constructor I got gView which is a osg::GLWidget, I am

[osg-users] switch off mouse press events

2013-05-08 Thread Sujan Dasmahapatra
In every example I see in the viewer that left mouse press and move cause it to rotate 3d, middle mouse press move cause it to pan, and left mouse press and move forward backward cause it zoom in and zoom out. How can I override this events. For example I dont want anything to happen on my left

Re: [osg-users] MousepressEvent not able to capture from osg::Viewer by Qt

2013-05-08 Thread Sujan Dasmahapatra
Thanks Robert. It is working fine... On the left mouse press I am showing a message using QMessagBox. But on the middle mouse press was having pan and right mouse press was having zoom in zoom out. How can I retain those functionalities. With this these functionalities are gone. void

Re: [osg-users] switch off mouse press events

2013-05-08 Thread Trajce Nikolov NICK
Hi Sujan, what you are describing is the normal behavior of the Trackball CameraManipulator. There are many ways how you can change processing of mouse events. Either remove the CameraManipulator (view-getCamera()-setCameraManipulator(0)) or inherit from the one CameraMainpulator that most suit

Re: [osg-users] switch off mouse press events

2013-05-08 Thread Sujan Dasmahapatra
Thanks Trajce for your nice suggestions I am looking into it. Thanks a lot. On Wed, May 8, 2013 at 4:40 PM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Sujan, what you are describing is the normal behavior of the Trackball CameraManipulator. There are many ways how you can

Re: [osg-users] MousepressEvent not able to capture from osg::Viewer by Qt

2013-05-08 Thread Robert Milharcic
On 8.5.2013 10:16, Sujan Dasmahapatra wrote: Thanks Robert. It is working fine... On the left mouse press I am showing a message using QMessagBox. But on the middle mouse press was having pan and right mouse press was having zoom in zoom out. How can I retain those functionalities. With this

Re: [osg-users] MousepressEvent not able to capture from osg::Viewer by Qt

2013-05-08 Thread Sujan Dasmahapatra
Thats right Robert. Thanks a lot for your suggestions I appreciate it. Thanks Sujan On Wed, May 8, 2013 at 5:40 PM, Robert Milharcic robert.milhar...@ib-caddy.si wrote: On 8.5.2013 10:16, Sujan Dasmahapatra wrote: Thanks Robert. It is working fine... On the left mouse press I am showing

[osg-users] PointSprite Texture orientation

2013-05-08 Thread Daniel Schmid
Hi all I use pointsprites to simulate precipitation (rain/snow). The implementation is completed and works very well. Now the end user decided to rotate the viewport about 90 degrees. The problem is now that the pointsprite texture coordinates to not take into accout the rotated viewport and

Re: [osg-users] Wish: convert osgGA::GUIEventAdapter to QKeySequence

2013-05-08 Thread Thomas Lerman
I found Ctrl+Shift+0 is eaten by Windows to switch keyboards and may be disabled. I still wish the unmodified key was passed through for many purposes!!! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53960#53960

Re: [osg-users] PointSprite Texture orientation

2013-05-08 Thread Sebastian Messerschmidt
Hello Daniel, I don't know if I get the problem correctly. So what you want is essentially to rotate the texture on the pointsprite. I can think of various solutions: 1. Setup the TextureMatrix to represent your rotation in texture space. 2. Use a vertex shader to do the rotation your-self

[osg-users] OcclusionQueryNode and Depth Splitting

2013-05-08 Thread Pablo Carneiro Elias
Hi all, I am facing a problem when trying to use the occlusion query node while implementing Z splitting for rendering large scenes. I know osg has z splitting but I had to implement by my self since I have a separated frustum and projection system (projection matrices are placed within osg

[osg-users] OpenCL context creation

2013-05-08 Thread Sajjadul Islam
Hi forum, I believe that there are similar threads almost about this issue, but they did not answer the problem i am having now. I have been the going through the source of osgCuda and took the hint from it about context creation. I created a separate class that handles all the OpenCL context

[osg-users] Translate problem

2013-05-08 Thread Sujan Dasmahapatra
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