WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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
  #2  
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 11:48 PM.


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