View Single Post
  #4  
Old 01-18-2010, 04:34 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If you want to send messages to another machine running Vizard and then display them on that machine or do something else like update a text file take a look at the networking tutorials in the Vizard docs.

If you want to do something like your original question then take a look at the following example that sets up two windows. You will need display set to horizontal span to get each window going to a different output.
Code:
import viz
viz.go(viz.FULLSCREEN)

#set up window for emagin with quad buffered stereo
#and correct FOV
win = viz.MainWindow
win.fov(24,1.333)
win.stereo(viz.QUAD_BUFFER)

#add view and window for monitor and set view of monitor
#to scene 2
view2 = viz.addView()
view2.setScene(2)
win2 = viz.addWindow()
win2.setView(view2)

#link view2 to MainView
viz.link(viz.MainView, view2)
view2.eyeheight(0)

#size and place each window
win.setSize(0.5,1.0)
win.setPosition(0,1)
win2.setSize(0.5,1.0)
win2.setPosition(0.5,1)

#add gallery to both scenes
gallery = viz.add('gallery.ive')
gallery2 = viz.add('gallery.ive',scene=2)

#put some text on monitor but not in HMD
text = viz.addText('TEXT',parent=viz.SCREEN,scene=2)
text.setPosition(0.8,0.8)
Reply With Quote