View Single Post
  #12  
Old 06-30-2014, 04:48 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Each camera will display the model correctly according to it's own point of view. Viewing the models in 2 windows, each with a different camera view will look correct:

Code:
import viz
import vizshape
viz.go()

ar = viz.add('artoolkit.dle')

viz.MainWindow.setSize(0.5,1)
subWindow = viz.addWindow(size=[0.5,1],pos=[0.5,1])

camera = ar.addWebCamera()
camera2 = ar.addWebCamera(window=subWindow)

marker1 = camera.addMarker('ar/patt.hiro',width=1000)
marker2 = camera2.addMarker('ar/patt.hiro',width=1000)

m1Axes = vizshape.addAxes()
axesLink1 = viz.link( marker1, m1Axes )
m2Axes = vizshape.addAxes()
axesLink2 = viz.link( marker2, m2Axes )
To increase the tracking space and use a single display with the data from multiple cameras it's necessary to calculate the relative pose between cameras and define a single coordinate system using that information.
Reply With Quote