#1
|
|||
|
|||
Link vizconnect display to Viz.mainview
Hey,
I want to link vizconnect display to viz.mainview so it inherits the same actions as whats being done for the mainview. However, I cannot figure out how to do this. Code:
vizconnect.go('vizconnect_config.py') ## Vizconnect movement movement = vizconnect.getTransport('main_transport') ## links movement to the walking transport in viz connect movement.setMovementSpeed(0) ## set movement speed to 0 for main menu scene newobject = viz.add('beachball.osgb',scene=viz.Scene2) newobject.setPosition([.5,50,0]) #viz.link(movement.getNode3d,newobject) ## this links movement but I cannot set a new Y position for the object at all. #viz.link(vizconnect.getDisplay,viz.MainView) ## does not work either |
#2
|
|||
|
|||
The display has a view associated with it, which is the mainview by default. If you parent the display to a tracker or transport the view will move with that tracker or transport. If you don't need to change the hierarchy on the fly then you can set the display's parent in the scenegraph of the vizconnect GUI.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vizconnect Display Issue | ghostx | Vizard | 3 | 07-31-2016 08:46 PM |
apply transformations on vizconnect link | dcnieho | Vizard | 2 | 06-14-2016 07:11 AM |
Zspace display in Vizconnect | JB_HP_Viz | Vizard | 5 | 06-05-2015 04:28 PM |
Switching between input devices setup in vizconnect and not using vizconnect | JB_HP_Viz | Vizard | 1 | 01-20-2015 06:19 AM |
Duplicate HMD display on primary monitor, with eyetracking info | performlabrit | Vizard | 3 | 09-19-2014 11:44 AM |