WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 05-12-2010, 11:26 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
I used your code with the viz.HMD flag and the ipd value that was printed changed. This will not be noticeable unless both eyes are rendered using a flag like viz.STEREO in combination. The viz.HMD flag displays the window in fullscreen and sets symmetric view frustums for both eyes.

In the future please use the code tags when posting code to preserve indentation.
Reply With Quote
  #3  
Old 05-13-2010, 12:31 AM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
Hello, thank you for your help. OK, I'm going to try your ideas.
I am sorry that I didn't use code tags.

Thank you again.
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
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 04:18 AM.


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