WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 05-01-2009, 12:31 PM
Penguin Penguin is offline
Join Date: Mar 2009
Posts: 14
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?

import viz

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

leftSphere = viz.add('sphere.3ds', parent=viz.HEAD)

rightSphere = viz.add('sphere.3ds', parent=viz.WORLD)
Attached Thumbnails
Click image for larger version

Name:	spheres.png
Views:	494
Size:	29.4 KB
ID:	313  
Reply With Quote
Old 05-04-2009, 06:05 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,466
Thanks for the post. We'll get back to you soon on this.
Reply With Quote
Old 05-05-2009, 04:12 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
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:
import viz


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

rightNode = viz.add('ball.wrl')
viewLink =,rightNode)
Reply With Quote
Old 05-06-2009, 01:20 AM
Penguin Penguin is offline
Join Date: Mar 2009
Posts: 14
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?
Reply With Quote

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
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

All times are GMT -7. The time now is 05:05 PM.

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