WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-01-2009, 12:31 PM
Penguin Penguin is offline
Member
 
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?

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)
Attached Thumbnails
Click image for larger version

Name:	spheres.png
Views:	777
Size:	29.4 KB
ID:	313  
Reply With Quote
  #2  
Old 05-04-2009, 06:05 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Thanks for the post. We'll get back to you soon on this.
Reply With Quote
  #3  
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:
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])
Reply With Quote
  #4  
Old 05-06-2009, 01:20 AM
Penguin Penguin is offline
Member
 
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
Reply

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 10:36 AM.


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