WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   stereoscopic bug? (https://forum.worldviz.com/showthread.php?t=1994)

Penguin 05-01-2009 12:31 PM

stereoscopic bug?
 
1 Attachment(s)
Hi, in the following code example I detected that in the stereoscopic view the red/green offset of the left sphere is greater than of the right one although the distance between the spheres and the head position is the same. Did I miss something or is this a bug?

Code:

import viz
viz.go(viz.ANAGLYPHIC)

viz.translate(viz.HEAD_POS, 0,-viz.get(viz.HEAD_POS)[1],-1)

leftSphere = viz.add('sphere.3ds', parent=viz.HEAD)
leftSphere.setScale(0.02,0.02,0.02)
leftSphere.setPosition(-0.1,0,1)

rightSphere = viz.add('sphere.3ds', parent=viz.WORLD)
rightSphere.setScale(0.02,0.02,0.02)
rightSphere.setPosition(0.1,0,0)


Jeff 05-04-2009 06:05 PM

Thanks for the post. We'll get back to you soon on this.

farshizzo 05-05-2009 04:12 PM

Objects attached to the head will behave differently in stereo. If you want the separation to be computed similar to objects added to viz.WORLD, then you can link the object to the viewpoint instead. Here is some sample code:
Code:

import viz
viz.go(viz.ANAGLYPHIC)

viz.MainView.setPosition(0,0,0)

leftNode = viz.add('ball.wrl',pos=(-1,0,5))

rightNode = viz.add('ball.wrl')
viewLink = viz.link(viz.MainView,rightNode)
viewLink.preTrans([1,0,5])


Penguin 05-06-2009 01:20 AM

Thank you for your solution: this will do it for me.

But why is the stereo representation different when attaching objects to the head? Is this because of head mounted displays to keep the visible object always in front of the user?


All times are GMT -7. The time now is 01:31 AM.

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