![]() |
|
|
|
#1
|
|||
|
|||
|
nevermind about my first question, i was trying different things with artoolkit and i understand how it works now, about the second question i'm in the same problem.
i try the subwindow in an empty application and it works but when i add a 3d model "viz.add('room.wrl')" in the virtual application it starts to do what i told you, i cant move and it show the same view on both windows ( the main and the subwindow that i create) why i want to do this is mainly because i have like a virtual book story application where the main character is controlled by the user with the help of marks when he put marker A with B close enough, the main character play an action when he put A with C the character do another thing or when he puts A to the left of the B do another action and so on. So i was thinking in split the window in two in the main window where it runs the virtual application(the book story) and in the subwindow where i have the markers interaction(where the marker A shows the main character model and on the other marks words of the different actions). i hope you understand me. Last edited by Darkmax; 03-16-2010 at 11:28 PM. |
|
#2
|
|||
|
|||
|
Also i detect that when you active the anaglyphic something weird happens because doesn't refresh the screen also the vertical or horizontal stereo just one part of the window shows the video(maybe i need to add another webcam with the right distance to emulate the both eyes) , but the interlace doesn't show this problems.
|
|
#3
|
|||
|
|||
|
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)
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Documentation error (nonexistent examples) | JimC | Vizard | 1 | 10-08-2009 09:08 AM |
| Custom node and other examples? | moooh | Plug-in development | 1 | 03-10-2009 04:04 PM |
| Which software can be used to edit .cfg (CAL3D) files | luakt | Vizard | 4 | 09-12-2008 08:18 AM |
| more advanced network examples? | halley | Vizard | 0 | 04-05-2006 08:07 AM |