![]() |
|
|
|
#1
|
|||
|
|||
|
In the following code the Oculus sensor data is applied to the viewpoint and the viewpoint is linked to a navigation node:
Code:
# Setup navigation node and link to main view navigationNode = viz.addGroup() viewLink = viz.link(navigationNode, viz.MainView) viewLink.preMultLinkable(hmd.getSensor()) If you want to set this up directly through the code, I would recommend you start with the oculusExample.py script. Then swap out the lines that check for key events with joystick events in the UpdateView function. The Vizconnect Introduction page describes the advantages of using vizconnect. The Vizconnect Tutorials are useful for learning vizconnect. To accomplish this same task in vizconnect, parent the display to the oculus tracker and then parent the tracker to a transport that's driven by joystick data. |
|
#2
|
|||
|
|||
|
Hi Jeff,
I tried to set this up directly through the code, start with the oculusExample.py script. I Then swap out the lines for key events with joystick events in the UpdateView function. still, no response from controller (probably as you said, the oculus linked to viewpoint and view linked to navigation node..) Again, when disable the oculus code the controller works. I also tried to config them thru the vizconnect, but i couldn't parent the controller since its not shown in the root map (?) (i set oculus DK2 as tracker and display and the xbox controller as input) I understand that i can either write the code for the devices directly in vizard or config them in vizconnect and import to vizard.. I will dive deeper into vizconnect but at this moment i only need some basic features (oculus and controller) for testing architectural walk thrus (the wireless controller is just for easier walking instead of mouse / keypad ) Regarding this, what do you think is better (code scripting or vizconnect) ? I would really appreciate it if you can provide me with the full vizard code for the oculus plus xbox controller since i cant solve that viewlink / navigation node issue.. ![]() Thanks, Ofri |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Turn using keyboard when using Oculus | Seadna | Vizard | 9 | 01-12-2016 10:54 PM |
| Oculus setZoom | mshukun | Vizard | 3 | 10-24-2014 08:04 AM |