WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-16-2016, 12:46 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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())
In your UpdateMovement function the joystick data should be used to update navigationNode rather than viz.MainView.

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.
Reply With Quote
  #2  
Old 03-17-2016, 12:01 AM
prilpi prilpi is offline
Member
 
Join Date: Feb 2016
Posts: 11
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
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 05:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC