#1
|
|||
|
|||
stereoscopic bug?
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) |
#2
|
|||
|
|||
Thanks for the post. We'll get back to you soon on this.
|
#3
|
|||
|
|||
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]) |
#4
|
|||
|
|||
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? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vizard 2.5 Stereoscopic | asfammlab | Vizard | 3 | 05-21-2007 06:06 PM |
Stereoscopic Vizard Question | mikestatic | Vizard | 7 | 03-20-2006 02:36 PM |