Spacenav?

Have jReality programming problems or questions? Post them here.
Post Reply
dunmatt
Posts: 22
Joined: Sat 28. Jul 2012, 02:36

Spacenav?

Post by dunmatt » Thu 2. Aug 2012, 04:04

Hello all, I was wondering if any of you could help me get Spacenav going. I have spacenavd running, and I can get values out via the example app that came with the Java API.

I'm not really sure where to go from here. I opened up the toolconfig-split.xml file inside jReality.jar and uncommented the import statement for chunks/toolconfig-Spacenav.xml, but when I rebooted my app nothing seemed to change.

Any idea what I'm missing? Are there docs for this that I haven't found yet?

dunmatt
Posts: 22
Joined: Sat 28. Jul 2012, 02:36

Re: Spacenav?

Post by dunmatt » Sun 19. Aug 2012, 20:53

Bump. I did a bit of digging and it looks like the class mentioned in toolconfig-Spacenav.xml doesn't exist in jReality.jar.

Just to make sure I wasn't missing anything I changed the name of the class in the config file to something I was sure wasn't in the jar, saved everything and no error was generated. When I undid that change and created a problem with the config file's xml and saved that it failed as expected, so it is reading the file, but failing silently when the class is not found.

Given that has anyone here successfully run jReality with a spacenav device?

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Spacenav?

Post by Andre » Mon 20. Aug 2012, 11:26

A couple of years ago we had an running spacenav. As far as I know Stefan still have one running at his desk. As soon as I find one flying around I'll do some tests.

best
andre

dunmatt
Posts: 22
Joined: Sat 28. Jul 2012, 02:36

Re: Spacenav?

Post by dunmatt » Mon 20. Aug 2012, 18:44

Cool, thanks. If it helps, I found that the .java source is indeed in the jReality src, so I'm not sure why the .class isn't in the release jar I downloaded. When I get some time I'm going to try building my own jar from source, but that might be a bit, this is a fairly low priority feature.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Spacenav?

Post by Andre » Wed 22. Aug 2012, 08:25

With this I can help you directly. The spacenavigator-classes are excluded from the release. If you want to work with the spacenavigator you should work with an eclipse project:

http://www3.math.tu-berlin.de/jreality/ ... p_tutorial

dunmatt
Posts: 22
Joined: Sat 28. Jul 2012, 02:36

Re: Spacenav?

Post by dunmatt » Sat 25. Aug 2012, 19:58

Alrighty, so I got jReality building from source, uncommented that line in toolconfig-split.xml, and now when I run the Icosahedron.java tutorial file I get the following error:

java.lang.NullPointerException
at de.jreality.plugin.basic.ToolSystemPlugin.updateScenePaths(ToolSystemPlugin.java:165)
at de.jreality.plugin.basic.ToolSystemPlugin.install(ToolSystemPlugin.java:184)
at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.activatePlugin(SimpleController.java:549)
at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController$1.run(SimpleController.java:352)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:216)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Any ideas? Is it worth my time to download the JTEM source and get it going?

ted
Posts: 57
Joined: Wed 25. Jul 2012, 22:53

Re: Spacenav?

Post by ted » Sun 26. Aug 2012, 07:26

Space navigator would be good to support as a standard tool. We use them at UTSA, and when I get back to the lab in Texas, I may want to hook one up as well. Was it developed for cross-platform, or platform-specific? I may be interested in about a month from now. :)

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Spacenav?

Post by Andre » Fri 31. Aug 2012, 10:40

Haven't found time yet to continue with the spacenavigater, but have it still in mind.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Spacenav?

Post by Andre » Tue 11. Sep 2012, 13:37

I've started with the tutorial:
http://www3.math.tu-berlin.de/jreality/ ... eNavigator
Unfortunately I don't get the spacenavigator running with java, getting the following error:
java: symbol lookup error: /home/heydt/libspnav_java-0.1/libSpaceNav.so: undefined symbol: spnav_open
Anyone a clue? I'm not to used to C/C++ ...

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Spacenav?

Post by steffen » Sat 29. Sep 2012, 12:22

The thing only works when spacenavd is installed. Thus, it will only work on linux. You should try to compile the code, which is under native/libspnav_java.tar.gz

Post Reply