#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
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. |
|
|
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 |