View Single Post
  #8  
Old 03-17-2010, 06:33 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
Ok now i'm going somewhere, this is my code right now:

Code:
import viz

viz.go()

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

#mainwindow in set scene 1
#viz.scene(1) #by default starts in scene 1

#Mainwindow size and position
#viz.MainWindow.setPosition([0,0.33])
#viz.MainWindow.setSize([1,0.66])

#Adding a window  and set scene 2
subWindow = viz.addWindow(pos =[0,0.33],size=(1,0.33))
subView = viz.addView()
subView.setScene(2)
subWindow.viewpoint(subView) 
cam = ar.addWebCamera(window=subWindow)

#Adding room in scene 1 (VR)
room = viz.add("../tutorials/gettingstarted/room.wrl",viz.WORLD, 1)

#Adding room in scene 2 (AR)
mark = cam.addMatrixMarker(10,width=1000)
logo = viz.add("logo.ive",viz.WORLD, 2)
viz.link(mark,logo)
but i'm having now a problem that i can't set the size of the main window because when i try to move the view of the VR app with the mouse also detects the when i click in the subwindow, so the main window its covering all the window and only the subwindow it over the main window.

PD. I don't know if vizard permits running the simulation with two windows of "Windows SO" so if i have two monitors move one window of the ar app to the left monitor and the other window of the vr app to the right monitor.

if someone knows how to resolve this i will be thankful.
Reply With Quote