WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-16-2010, 11:18 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
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.
Reply With Quote
  #2  
Old 03-17-2010, 02:59 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
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.
Reply With Quote
  #3  
Old 03-17-2010, 07: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
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
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


All times are GMT -7. The time now is 05:03 PM.


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