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
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
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
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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo