Page 1 of 1

Catching mouse events with Ubuntu 64bit [Solved]

Posted: Mon 25. Jan 2010, 18:29
by stratosgear
Hi,

I am having some troubles catching some mouse events on an Ubuntu 9.10 64 bit machine.

The behavior, in one file in particular (de.jreality.tutorial.tool.TextureDragExample) is as follows:

When I click and drag at any point outside the Helicoid I can rotate the object. When I click right on top of it (trying to drag the texture) the behavior I am getting is that the object gets rotated, instead!

I've tried the examples on another similar Ubuntu 9.10 32bit machine and it works fine. It also works fine inside a VirtualBox windows XP machine that I have (hosted on the Ubuntu 64bit machine)

Where should I look to try to debug this issue....?

Thanks...


Stratos

Re: Catching mouse events with Ubuntu 64bit

Posted: Tue 26. Jan 2010, 02:54
by Andre
Ubuntu 32bit and normaly windows XP also are running with 32bit, maybe you forgot to change the nativelibs to 64bit.

If you are using eclipse, I can recommend this tutorial to you:
http://www3.math.tu-berlin.de/jreality/ ... p_tutorial

If the problem still occurs after trying the tutorial, pls post again.


EDIT: I've also Ubuntu 9.10 64bit at home and the tutorial runs well!

Re: Catching mouse events with Ubuntu 64bit

Posted: Tue 26. Jan 2010, 16:32
by stratosgear
Andre,

I have run the tutorial that you mentioned, along with many others and they all work fine.

Still, the TextureDragExample does NOT work correctly. I cannot drag the texture. It will just rotate the object instead.

In comparison, DragEventTool01 for example is working fine. Weird...

I am trying to find which class handles the mouse events and see why the event is not recognized correctly, but I just can't find it...

Any ideas what else I might be missing...?

Thanks!

Re: Catching mouse events with Ubuntu 64bit

Posted: Tue 26. Jan 2010, 16:55
by Andre
Maybe you disabled the dragging tool and saved the settings as you closed the programm.

Then you have 2 possibilities:
1)
Start the Programm again and enable the draggingtool
Content -> Tools -> [x] Drag
and save the settings
Properties ->Save Properties-> foo.xml

2)
remove the old .xml-settingfile, normaly it should be anywhere in your jreality-project-folder
and start then the prog again.

If this is also not the Problem then pls try to launch den Webstart of the dragging_tool and tell me if the same problem occurs
http://www3.math.tu-berlin.de/jreality/ ... gging_tool

Re: Catching mouse events with Ubuntu 64bit

Posted: Tue 26. Jan 2010, 17:27
by stratosgear
Thanks Andre,

That was a push to the right direction...

The Content -> Tools -> [x] Drag was already checked but I was missing the Content -> Picking -> [x] Pick Faces.

I have no idea how this got unchecked and saved as default, but I'm sure it's my fault somehow.

Thanks for your persistence...