WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-14-2011, 04:04 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
For the second camera you can create a second window using a different scene. Does the following work for you?
Code:
import viz
viz.go()
 
left_window = viz.MainWindow
left_window.setSize(0.5,1)
 
right_scene = viz.addScene()
right_view = viz.addView(scene=right_scene)
right_window = viz.addWindow(view=right_view,size=[.5,1],pos=[0.5,1])
 
#Add ARToolkit extension
ar = viz.add('artoolkit.dle')
 
#Create left camera
left_cam = ar.addWebCamera(window=left_window)
 
#Create right camera
right_cam = ar.addWebCamera(window=right_window)
 
avatar = viz.addAvatar('vcc_male.cfg')
avatar.duplicate(scene=right_scene)
 
#Create marker from pattern file
marker1 = left_cam.addMarker('ar/patt.worldviz',width=1000)
viz.link(marker1, avatar)
marker2 = right_cam.addMarker('ar/patt.worldviz',width=1000)
viz.link(marker2, avatar)

Last edited by Jeff; 04-14-2011 at 05:48 PM.
Reply With Quote
 


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
vizcave and quad-buffered stereo michaelrepucci Vizard 7 11-29-2011 11:15 AM
Application of Augmented Reality CRI Vizard 0 06-20-2010 08:39 AM
help with augmented reality and physics Darkmax Vizard 1 06-12-2010 03:26 PM
Vizard and Augmented Reality realvision Vizard 4 04-04-2008 10:59 AM
Stereo Overlap question JMOwens Vizard 2 01-08-2008 08:54 AM


All times are GMT -7. The time now is 12:52 AM.


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