PDA

View Full Version : IPD question


atamasan
05-12-2010, 01:32 AM
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.

Jeff
05-12-2010, 11:26 AM
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.

atamasan
05-13-2010, 12:31 AM
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.