# visibility table # format: A : { B : bool} # interpretation: does display with tag A see representation of tool in displays with tag B? tool_visibility_table = { "dlp_wall" : {"table" : False, "portal" : True} , "table" : {"dlp_wall" : True, "portal" : False} , "portal" : {"dlp_wall" : False, "table" : False, "portal" : False} } vr_lab_rear.create_ray_pointer( POINTER_TRACKING_STATION = 'tracking-dlp-pointer1' , POINTER_DEVICE_STATION = 'device-pointer1' , VISIBILITY_TABLE = tool_visibility_table) vr_lab_rear.create_portal_cam( CAMERA_TRACKING_STATION = 'tracking-portal-camera-32' , CAMERA_DEVICE_STATION = 'device-portal-camera-32' , VISIBILITY_TABLE = tool_visibility_table) ## Create portal navigations. ## #''' tower_portal_1_nav = StaticNavigation() tower_portal_1_nav.my_constructor(STATIC_ABS_MAT = avango.gua.make_trans_mat(-12.0, 17.3, -7.0) , STATIC_SCALE = 1.0) tower_portal_2_nav = StaticNavigation() tower_portal_2_nav.my_constructor(STATIC_ABS_MAT = avango.gua.make_trans_mat(-23.0, 1.3, 21.0) * avango.gua.make_rot_mat(-90, 0, 1, 0) , STATIC_SCALE = 1.0) ## Create portal displays. ## tower_portal_1 = VirtualDisplay(ENTRY_MATRIX = avango.gua.make_trans_mat(-23.0, 1.3, 21.0) * avango.gua.make_rot_mat(90, 0, 1, 0) , WIDTH = 4.0
"dlp_wall": True, "portal": False }, "portal": { "dlp_wall": True, "lcd_wall": True } } vr_lab_rear.create_ray_pointer( POINTER_TRACKING_STATION='tracking-dlp-pointer1', POINTER_DEVICE_STATION='device-pointer1', VISIBILITY_TABLE=tool_visibility_table) vr_lab_rear.create_portal_cam( CAMERA_TRACKING_STATION='tracking-portal-camera-32', CAMERA_DEVICE_STATION='device-portal-camera-32', VISIBILITY_TABLE=tool_visibility_table) ## Create portal navigations. ## #''' tower_portal_1_nav = StaticNavigation() tower_portal_1_nav.my_constructor(STATIC_ABS_MAT=avango.gua.make_trans_mat( -12.0, 17.3, -7.0), STATIC_SCALE=1.0) tower_portal_2_nav = StaticNavigation() tower_portal_2_nav.my_constructor( STATIC_ABS_MAT=avango.gua.make_trans_mat(-23.0, 1.3, 21.0) * avango.gua.make_rot_mat(-90, 0, 1, 0), STATIC_SCALE=1.0)