WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-12-2010, 01:32 AM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
IPD question

Hello.
I'm trying to get the ipd information.
When I use this code, ipd is changed and printed when I push key '1' or '2'.

viz.go(viz.STEREO)
ipd=.06
def key_count(key):
global ipd
if key=='1':
ipd=ipd+.005
viz.ipd(ipd)
print viz.MainWindow.getIPD()
if key=='2':
ipd=ipd-.005
viz.ipd(ipd)
print viz.MainWindow.getIPD()
viz.callback(viz.KEYDOWN_EVENT,key_count)

But when I change viz.go(viz.STEREO)---->viz.go(viz.HMD), ipd isn't changed(same ipd value is printed everytime).

What is the reason for this, please let me know.
And how can I know the value of ipd when I use viz.go(viz.HMD)?

Thank you very much.
Reply With Quote
 


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
how to invoke command line question billjarrold Vizard 2 01-11-2010 08:51 AM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
Stereo Overlap question JMOwens Vizard 2 01-08-2008 08:54 AM
to rephrase my question... shai Vizard 2 10-27-2004 10:55 AM
Basic Joystick Navigation Question Plasma Vizard 2 01-29-2004 07:08 PM


All times are GMT -7. The time now is 03:45 AM.


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