WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

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 08:08 AM
Custom node and other examples? moooh Plug-in development 1 03-10-2009 03:04 PM
Which software can be used to edit .cfg (CAL3D) files luakt Vizard 4 09-12-2008 07:18 AM
more advanced network examples? halley Vizard 0 04-05-2006 07:07 AM


All times are GMT -7. The time now is 03:17 AM.


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