PDA

View Full Version : Multi-screen Projection


hzlergn
04-09-2015, 11:44 AM
Hello everybody,

I will be glad to see your help with my vizard problem. I need to project my model on two screens and I already have calibration code for the system; but my problem is uploading my own model on both screens. I can just see on one and control through that. What kind of a code can help me to solve this problem ? And also I am just a beginner for coding.

Jeff
04-09-2015, 07:07 PM
Are you trying to duplicate the view on both screens or is this a CAVE setup with two walls. Can you post example code you are testing with?

hzlergn
04-09-2015, 07:12 PM
I have a CAVE setup and I am trying to use it, but it is approximately 800 lines I guess I can't copy. When I run it with the demo vizard models it works but I can't use it with my own building model.

Jeff
04-09-2015, 07:20 PM
Are you using a vizconnect configuration file to load the CAVE display and tracking?

hzlergn
04-09-2015, 08:00 PM
As a summary I have one CAVE and one launcher file that works properly. I tried to copy some configuration codes from the launcher file as follows;
I tried to do the same but it gave an error like there is no config file and the problem is that original code depend on that launcher. Since my coding experience is too limited how can I do this in a simple way ?

import Config
viz.requireVersion(R5_REQUIRED_VIZARD_VERSION)
if Config.MULTISAMPLE != 0:
viz.setMultiSample(Config.MULTISAMPLE)
if os.path.exists( trackerPath ):
fileList = os.listdir( trackerPath )
vizconnectLauncher = None
for file in fileList:
if 'vizconnect_config' in file.lower() and '.pyc' not in file.lower():
if 'desktop' in file.lower():
userTrackers.insert(0, file.split('_')[-1].replace('.py', '' ))
else:
userTrackers.append( file.split('_')[-1].replace('.py', '' ) )

elif 'Launch_vizconnect_Control_Interface.py' == file:
vizconnectLauncher = file

if vizconnectLauncher is not None:
userTrackers.append( vizconnectLauncher )

Jeff
04-10-2015, 06:48 PM
If a vizconnect config file has been configured for your CAVE then you can import that file in your script and add any Vizard code after that:

import viz
import vizconnect

vizconnect.go('vizconnect_config_CAVE')

viz.addChild('gallery.osgb')