WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-10-2008, 01:58 PM
v-Salik v-Salik is offline
Member
 
Join Date: Sep 2007
Posts: 20
I want to be able to switch the sensor data being sent to the HMD from the PPT

I have two sensors: ppt1, ppt2. I want to press a button and switch which sensor the HMD reads.
So what I do is define a function swap:
def swap:
temp = ppt1;
ppt1 = ppt2;
ppt2 = temp;

Now the problem is that the hmd still gets its position data from ppt1 regardless of whether I change the variables or not how do I override this?
Thanks
Reply With Quote
  #2  
Old 04-10-2008, 02:28 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
How are you applying the sensor data to the viewpoint? Do you have some sample code?
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
switch statement vrlab Vizard 1 08-04-2004 10:23 AM


All times are GMT -7. The time now is 01:02 PM.


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